ClassFlowControll.h 1.9 KB

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