Files
AI-on-the-edge-device/code/components/jomjol_flowcontroll/ClassFlow.h
michael 4905663933 test1
2026-01-17 02:49:32 +01:00

53 lines
1.2 KiB
C++

#pragma once
#ifndef CLASSFLOW_H
#define CLASSFLOW_H
#include <fstream>
#include <string>
#include <vector>
#include "Helper.h"
#include "CImageBasis.h"
using namespace std;
struct HTMLInfo
{
float val;
CImageBasis *image = NULL;
CImageBasis *image_org = NULL;
std::string filename;
std::string filename_org;
};
class ClassFlow
{
protected:
std::vector<ClassFlow *> *ListFlowControll;
ClassFlow *previousElement;
virtual void SetInitialParameter(void);
std::string GetParameterName(std::string _input);
bool disabled;
public:
ClassFlow(void);
ClassFlow(std::vector<ClassFlow *> *lfc);
ClassFlow(std::vector<ClassFlow *> *lfc, ClassFlow *_prev);
bool isNewParagraph(std::string input);
bool GetNextParagraph(FILE *pFile, std::string &aktparamgraph);
// bool GetNextParagraph(FILE *pFile, std::string &aktparamgraph, bool &disabled, bool &eof);
bool getNextLine(FILE *pFile, std::string *rt);
// bool getNextLine(FILE *pFile, std::string *rt, bool &disabled, bool &eof);
virtual bool ReadParameter(FILE *pFile, std::string &aktparamgraph);
virtual bool doFlow(std::string time);
virtual std::string getHTMLSingleStep(std::string host);
virtual std::string name() { return "ClassFlow"; };
};
#endif // CLASSFLOW_H