ClassFlow.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. bool isNewParagraph(string input);
  22. bool GetNextParagraph(FILE* pfile, string& aktparamgraph);
  23. bool getNextLine(FILE* pfile, string* rt);
  24. std::vector<ClassFlow*>* ListFlowControll;
  25. ClassFlow *previousElement;
  26. virtual void SetInitialParameter(void);
  27. std::string GetParameterName(std::string _input);
  28. bool disabled;
  29. public:
  30. ClassFlow(void);
  31. ClassFlow(std::vector<ClassFlow*> * lfc);
  32. ClassFlow(std::vector<ClassFlow*> * lfc, ClassFlow *_prev);
  33. virtual bool ReadParameter(FILE* pfile, string &aktparamgraph);
  34. virtual bool doFlow(string time);
  35. virtual string getHTMLSingleStep(string host);
  36. virtual string name(){return "ClassFlow";};
  37. };
  38. #endif //CLASSFLOW_H