ClassFlow.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #pragma once
  2. #ifndef CLASSFLOW_H
  3. #define CLASSFLOW_H
  4. #include <fstream>
  5. #include <string>
  6. #include <vector>
  7. #include "Helper.h"
  8. #include "CImageBasis.h"
  9. using namespace std;
  10. struct HTMLInfo
  11. {
  12. float val;
  13. CImageBasis *image = NULL;
  14. CImageBasis *image_org = NULL;
  15. std::string filename;
  16. std::string filename_org;
  17. };
  18. class ClassFlow
  19. {
  20. protected:
  21. std::vector<ClassFlow *> *ListFlowControll;
  22. ClassFlow *previousElement;
  23. virtual void SetInitialParameter(void);
  24. std::string GetParameterName(std::string _input);
  25. bool disabled;
  26. public:
  27. ClassFlow(void);
  28. ClassFlow(std::vector<ClassFlow *> *lfc);
  29. ClassFlow(std::vector<ClassFlow *> *lfc, ClassFlow *_prev);
  30. bool isNewParagraph(std::string input);
  31. bool GetNextParagraph(FILE *pFile, std::string &aktparamgraph);
  32. // bool GetNextParagraph(FILE *pFile, std::string &aktparamgraph, bool &disabled, bool &eof);
  33. bool getNextLine(FILE *pFile, std::string *rt);
  34. // bool getNextLine(FILE *pFile, std::string *rt, bool &disabled, bool &eof);
  35. virtual bool ReadParameter(FILE *pFile, std::string &aktparamgraph);
  36. virtual bool doFlow(std::string time);
  37. virtual std::string getHTMLSingleStep(std::string host);
  38. virtual std::string name() { return "ClassFlow"; };
  39. };
  40. #endif // CLASSFLOW_H