ClassFlowControll.h 2.0 KB

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