ClassFlowControll.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. int aktRunNr;
  27. void UpdateAktStatus(std::string _flow);
  28. public:
  29. void InitFlow(std::string config);
  30. bool doFlow(string time);
  31. void doFlowMakeImageOnly(string time);
  32. bool getStatusSetupModus(){return SetupModeActive;};
  33. string getReadout(bool _rawvalue, bool _noerror);
  34. string UpdatePrevalue(std::string _newvalue);
  35. string GetPrevalue();
  36. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  37. esp_err_t GetJPGStream(std::string _fn, httpd_req_t *req);
  38. esp_err_t SendRawJPG(httpd_req_t *req);
  39. std::string doSingleStep(std::string _stepname, std::string _host);
  40. bool isAutoStart(long &_intervall);
  41. std::string getActStatus();
  42. std::vector<HTMLInfo*> GetAllDigital();
  43. std::vector<HTMLInfo*> GetAllAnalog();
  44. int CleanTempFolder();
  45. string name(){return "ClassFlowControll";};
  46. };