ClassFlow.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #include <fstream>
  3. #include <string>
  4. #include <vector>
  5. #include "Helper.h"
  6. #include "CFindTemplate.h"
  7. using namespace std;
  8. #define LOGFILE_TIME_FORMAT "%Y%m%d-%H%M%S"
  9. #define LOGFILE_TIME_FORMAT_DATE_EXTR substr(0, 8)
  10. #define LOGFILE_TIME_FORMAT_HOUR_EXTR substr(9, 2)
  11. struct HTMLInfo
  12. {
  13. float val;
  14. std::string filename;
  15. };
  16. class ClassFlow
  17. {
  18. protected:
  19. // std::vector<string> ZerlegeZeile(string input);
  20. std::vector<string> ZerlegeZeile(string input, string delimiter = " =, ");
  21. bool isNewParagraph(string input);
  22. bool GetNextParagraph(FILE* pfile, string& aktparamgraph);
  23. bool getNextLine(FILE* pfile, string* rt);
  24. std::vector<ClassFlow*>* ListFlowControll;
  25. virtual void SetInitialParameter(void);
  26. public:
  27. ClassFlow(void);
  28. ClassFlow(std::vector<ClassFlow*> * lfc);
  29. virtual bool ReadParameter(FILE* pfile, string &aktparamgraph);
  30. virtual bool doFlow(string time);
  31. virtual string getHTMLSingleStep(string host);
  32. virtual string getReadout();
  33. virtual string name(){return "ClassFlow";};
  34. };