ClassFlowControll.h 1.7 KB

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