ClassFlowWebhook.h 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifndef CLASSFWEBHOOK_H
  3. #define CLASSFWEBHOOK_H
  4. #include <string>
  5. #include "ClassFlow.h"
  6. #include "ClassFlowPostProcessing.h"
  7. #include "ClassFlowAlignment.h"
  8. typedef struct
  9. {
  10. bool enabled;
  11. std::string uri;
  12. std::string apikey;
  13. int uploadImg;
  14. std::string oldValue;
  15. } Webhook_controll_config_t;
  16. extern Webhook_controll_config_t Webhook_controll_config;
  17. class ClassFlowWebhook : public ClassFlow
  18. {
  19. protected:
  20. ClassFlowPostProcessing *flowpostprocessing;
  21. ClassFlowAlignment *flowAlignment;
  22. void SetInitialParameter(void);
  23. void handleMeasurement(std::string _decsep, std::string _value);
  24. public:
  25. ClassFlowWebhook();
  26. ClassFlowWebhook(std::vector<ClassFlow *> *lfc);
  27. ClassFlowWebhook(std::vector<ClassFlow *> *lfc, ClassFlow *_prev);
  28. bool ReadParameter(FILE *pFile, std::string &aktparamgraph);
  29. bool doFlow(std::string temp_time);
  30. std::string name() { return "ClassFlowWebhook"; };
  31. };
  32. #endif // CLASSFWEBHOOK_H