| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef __FLOWCONTROLL__
- #define __FLOWCONTROLL__
- #include <string>
- #include "ClassFlow.h"
- #include "ClassFlowMakeImage.h"
- #include "ClassFlowAlignment.h"
- #include "ClassFlowCNNGeneral.h"
- #include "ClassFlowPostProcessing.h"
- #include "ClassFlowMQTT.h"
- #include "ClassFlowInfluxDB.h"
- #include "ClassFlowCNNGeneral.h"
- #include "ClassFlowWriteList.h"
- #define READOUT_TYPE_VALUE 0
- #define READOUT_TYPE_PREVALUE 1
- #define READOUT_TYPE_RAWVALUE 2
- #define READOUT_TYPE_ERROR 3
- class ClassFlowControll :
- public ClassFlow
- {
- protected:
- std::vector<ClassFlow*> FlowControll;
- ClassFlowPostProcessing* flowpostprocessing;
- ClassFlowAlignment* flowalignment;
- ClassFlowCNNGeneral* flowanalog;
- ClassFlowCNNGeneral* flowdigit;
- // ClassFlowDigit* flowdigit;
- ClassFlowMakeImage* flowmakeimage;
- ClassFlow* CreateClassFlow(std::string _type);
- bool AutoStart;
- float AutoIntervall;
- bool SetupModeActive;
- void SetInitialParameter(void);
- std::string aktstatus;
- int aktRunNr;
- public:
- void InitFlow(std::string config);
- bool doFlow(string time);
- void doFlowMakeImageOnly(string time);
- bool getStatusSetupModus(){return SetupModeActive;};
- string getReadout(bool _rawvalue, bool _noerror);
- string getReadoutAll(int _type);
- string UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern);
- string GetPrevalue(std::string _number = "");
- bool ReadParameter(FILE* pfile, string& aktparamgraph);
- string getJSON(std::string _id = "", std::string _mac = "");
- string getNumbersName();
- string TranslateAktstatus(std::string _input);
- string GetMQTTMainTopic();
- esp_err_t GetJPGStream(std::string _fn, httpd_req_t *req);
- esp_err_t SendRawJPG(httpd_req_t *req);
- std::string doSingleStep(std::string _stepname, std::string _host);
- bool isAutoStart(long &_intervall);
- int getAutoInterval();
- std::string* getActStatus();
- std::vector<HTMLInfo*> GetAllDigital();
- std::vector<HTMLInfo*> GetAllAnalog();
- t_CNNType GetTypeDigital();
- t_CNNType GetTypeAnalog();
- int CleanTempFolder();
- string name(){return "ClassFlowControll";};
- };
- #endif
|