ClassFlowMQTT.h 787 B

1234567891011121314151617181920212223242526272829303132
  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, topicUptime, topicFreeMem;
  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. string GetMQTTMainTopic();
  21. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  22. bool doFlow(string time);
  23. string name(){return "ClassFlowMQTT";};
  24. };