ClassFlowControll.h 1.7 KB

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