mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-27 12:50:39 +03:00
test1
This commit is contained in:
@@ -1,47 +1,47 @@
|
||||
#ifdef ENABLE_INFLUXDB
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef CLASSFINFLUXDB_H
|
||||
#define CLASSFINFLUXDB_H
|
||||
|
||||
#include "ClassFlow.h"
|
||||
#include <string>
|
||||
|
||||
#include "ClassFlow.h"
|
||||
#include "ClassFlowPostProcessing.h"
|
||||
#include "interface_influxdb.h"
|
||||
|
||||
#include <string>
|
||||
typedef struct
|
||||
{
|
||||
bool enabled;
|
||||
std::string uri;
|
||||
std::string database;
|
||||
std::string measurement;
|
||||
std::string user;
|
||||
std::string password;
|
||||
std::string oldValue;
|
||||
|
||||
class ClassFlowInfluxDB :
|
||||
public ClassFlow
|
||||
} influxDBv1_controll_config_t;
|
||||
|
||||
extern influxDBv1_controll_config_t influxDBv1_controll_config;
|
||||
|
||||
class ClassFlowInfluxDB : public ClassFlow
|
||||
{
|
||||
protected:
|
||||
std::string uri, database, measurement;
|
||||
std::string OldValue;
|
||||
ClassFlowPostProcessing* flowpostprocessing;
|
||||
std::string user, password;
|
||||
bool InfluxDBenable;
|
||||
|
||||
InfluxDB influxDB;
|
||||
|
||||
void SetInitialParameter(void);
|
||||
|
||||
void handleFieldname(string _decsep, string _value);
|
||||
void handleMeasurement(string _decsep, string _value);
|
||||
ClassFlowPostProcessing *flowpostprocessing;
|
||||
|
||||
|
||||
void SetInitialParameter(void);
|
||||
void handleFieldname(std::string _decsep, std::string _value);
|
||||
void handleMeasurement(std::string _decsep, std::string _value);
|
||||
|
||||
public:
|
||||
ClassFlowInfluxDB();
|
||||
ClassFlowInfluxDB(std::vector<ClassFlow*>* lfc);
|
||||
ClassFlowInfluxDB(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
|
||||
ClassFlowInfluxDB(std::vector<ClassFlow *> *lfc);
|
||||
ClassFlowInfluxDB(std::vector<ClassFlow *> *lfc, ClassFlow *_prev);
|
||||
|
||||
// string GetInfluxDBMeasurement();
|
||||
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
bool doFlow(string time);
|
||||
string name(){return "ClassFlowInfluxDB";};
|
||||
bool ReadParameter(FILE *pfile, std::string &aktparamgraph);
|
||||
bool doFlow(std::string temp_time);
|
||||
std::string name() { return "ClassFlowInfluxDB"; };
|
||||
};
|
||||
|
||||
#endif //CLASSFINFLUXDB_H
|
||||
#endif //ENABLE_INFLUXDB
|
||||
#endif // CLASSFINFLUXDB_H
|
||||
|
||||
Reference in New Issue
Block a user