ClassFlowControll.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #ifndef __FLOWCONTROLL__
  2. #define __FLOWCONTROLL__
  3. #include <string>
  4. #include "ClassFlow.h"
  5. #include "ClassFlowMakeImage.h"
  6. #include "ClassFlowAlignment.h"
  7. #include "ClassFlowCNNGeneral.h"
  8. #include "ClassFlowPostProcessing.h"
  9. #ifdef ENABLE_MQTT
  10. #include "ClassFlowMQTT.h"
  11. #endif //ENABLE_MQTT
  12. #ifdef ENABLE_INFLUXDB
  13. #include "ClassFlowInfluxDB.h"
  14. #endif //ENABLE_INFLUXDB
  15. #include "ClassFlowCNNGeneral.h"
  16. #include "ClassFlowWriteList.h"
  17. class ClassFlowControll :
  18. public ClassFlow
  19. {
  20. protected:
  21. std::vector<ClassFlow*> FlowControll;
  22. ClassFlowPostProcessing* flowpostprocessing;
  23. ClassFlowAlignment* flowalignment;
  24. ClassFlowCNNGeneral* flowanalog;
  25. ClassFlowCNNGeneral* flowdigit;
  26. // ClassFlowDigit* flowdigit;
  27. ClassFlowMakeImage* flowmakeimage;
  28. ClassFlow* CreateClassFlow(std::string _type);
  29. bool AutoStart;
  30. float AutoIntervall;
  31. bool SetupModeActive;
  32. void SetInitialParameter(void);
  33. std::string aktstatus;
  34. int aktRunNr;
  35. public:
  36. void InitFlow(std::string config);
  37. bool doFlow(string time);
  38. void doFlowMakeImageOnly(string time);
  39. bool getStatusSetupModus(){return SetupModeActive;};
  40. string getReadout(bool _rawvalue, bool _noerror);
  41. string getReadoutAll(int _type);
  42. string UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern);
  43. string GetPrevalue(std::string _number = "");
  44. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  45. string getJSON();
  46. string getNumbersName();
  47. string TranslateAktstatus(std::string _input);
  48. #ifdef ENABLE_MQTT
  49. string GetMQTTMainTopic();
  50. #endif //ENABLE_MQTT
  51. esp_err_t GetJPGStream(std::string _fn, httpd_req_t *req);
  52. esp_err_t SendRawJPG(httpd_req_t *req);
  53. std::string doSingleStep(std::string _stepname, std::string _host);
  54. bool isAutoStart(long &_intervall);
  55. std::string* getActStatus();
  56. std::vector<HTMLInfo*> GetAllDigital();
  57. std::vector<HTMLInfo*> GetAllAnalog();
  58. t_CNNType GetTypeDigital();
  59. t_CNNType GetTypeAnalog();
  60. #ifdef ENABLE_MQTT
  61. bool StartMQTTService();
  62. #endif //ENABLE_MQTT
  63. int CleanTempFolder();
  64. string name(){return "ClassFlowControll";};
  65. };
  66. #endif