This commit is contained in:
michael
2026-01-17 02:49:32 +01:00
parent a1ccda2e88
commit 4905663933
283 changed files with 32074 additions and 15759 deletions

View File

@@ -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