ClassFlow.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #include <fstream>
  3. #include <string>
  4. #include <vector>
  5. #include "Helper.h"
  6. #include "CImageBasis.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. CImageBasis *image = NULL;
  15. CImageBasis *image_org = NULL;
  16. std::string filename;
  17. std::string filename_org;
  18. };
  19. class ClassFlow
  20. {
  21. protected:
  22. bool isNewParagraph(string input);
  23. bool GetNextParagraph(FILE* pfile, string& aktparamgraph);
  24. bool getNextLine(FILE* pfile, string* rt);
  25. std::vector<ClassFlow*>* ListFlowControll;
  26. ClassFlow *previousElement;
  27. virtual void SetInitialParameter(void);
  28. std::string GetParameterName(std::string _input);
  29. bool disabled;
  30. public:
  31. ClassFlow(void);
  32. ClassFlow(std::vector<ClassFlow*> * lfc);
  33. ClassFlow(std::vector<ClassFlow*> * lfc, ClassFlow *_prev);
  34. virtual bool ReadParameter(FILE* pfile, string &aktparamgraph);
  35. virtual bool doFlow(string time);
  36. virtual string getHTMLSingleStep(string host);
  37. virtual string getReadout();
  38. virtual string name(){return "ClassFlow";};
  39. };