ClassFlowMQTT.h 728 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "ClassFlow.h"
  3. #include "ClassFlowPostProcessing.h"
  4. #include <string>
  5. class ClassFlowMQTT :
  6. public ClassFlow
  7. {
  8. protected:
  9. std::string uri, topic, topicError, clientname, topicRate, topicTimeStamp;
  10. std::string OldValue;
  11. ClassFlowPostProcessing* flowpostprocessing;
  12. std::string user, password;
  13. bool MQTTenable;
  14. std::string maintopic, mainerrortopic;
  15. void SetInitialParameter(void);
  16. public:
  17. ClassFlowMQTT();
  18. ClassFlowMQTT(std::vector<ClassFlow*>* lfc);
  19. ClassFlowMQTT(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
  20. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  21. bool doFlow(string time);
  22. string name(){return "ClassFlowMQTT";};
  23. };