ClassFlowControll.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. #include <string>
  3. #include "ClassFlow.h"
  4. #include "ClassFlowMakeImage.h"
  5. #include "ClassFlowAlignment.h"
  6. #include "ClassFlowDigit.h"
  7. #include "ClassFlowAnalog.h"
  8. #include "ClassFlowPostProcessing.h"
  9. #include "ClassFlowMQTT.h"
  10. class ClassFlowControll :
  11. public ClassFlow
  12. {
  13. protected:
  14. std::vector<ClassFlow*> FlowControll;
  15. ClassFlowPostProcessing* flowpostprocessing;
  16. ClassFlowAlignment* flowalignment;
  17. ClassFlowAnalog* flowanalog;
  18. ClassFlowDigit* flowdigit;
  19. ClassFlowMakeImage* flowmakeimage;
  20. ClassFlow* CreateClassFlow(std::string _type);
  21. bool AutoStart;
  22. float AutoIntervall;
  23. bool SetupModeActive;
  24. void SetInitialParameter(void);
  25. std::string aktstatus;
  26. public:
  27. void InitFlow(std::string config);
  28. bool doFlow(string time);
  29. void doFlowMakeImageOnly(string time);
  30. bool getStatusSetupModus(){return SetupModeActive;};
  31. string getReadout(bool _rawvalue, bool _noerror);
  32. string UpdatePrevalue(std::string _newvalue);
  33. string GetPrevalue();
  34. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  35. ImageData* GetJPGStream(std::string _fn);
  36. esp_err_t SendRawJPG(httpd_req_t *req);
  37. std::string doSingleStep(std::string _stepname, std::string _host);
  38. bool isAutoStart(long &_intervall);
  39. std::string getActStatus();
  40. std::vector<HTMLInfo*> GetAllDigital();
  41. std::vector<HTMLInfo*> GetAllAnalog();
  42. int CleanTempFolder();
  43. string name(){return "ClassFlowControll";};
  44. };