ClassFlowWebhook.h 927 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifdef ENABLE_WEBHOOK
  2. #pragma once
  3. #ifndef CLASSFWEBHOOK_H
  4. #define CLASSFWEBHOOK_H
  5. #include "ClassFlow.h"
  6. #include "ClassFlowPostProcessing.h"
  7. #include "ClassFlowAlignment.h"
  8. #include <string>
  9. class ClassFlowWebhook :
  10. public ClassFlow
  11. {
  12. protected:
  13. std::string uri, apikey;
  14. ClassFlowPostProcessing* flowpostprocessing;
  15. ClassFlowAlignment* flowAlignment;
  16. bool WebhookEnable;
  17. int WebhookUploadImg;
  18. void SetInitialParameter(void);
  19. void handleFieldname(string _decsep, string _value);
  20. void handleMeasurement(string _decsep, string _value);
  21. public:
  22. ClassFlowWebhook();
  23. ClassFlowWebhook(std::vector<ClassFlow*>* lfc);
  24. ClassFlowWebhook(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
  25. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  26. bool doFlow(string time);
  27. string name(){return "ClassFlowWebhook";};
  28. };
  29. #endif //CLASSFWEBHOOK_H
  30. #endif //ENABLE_WEBHOOK