mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-27 12:50:39 +03:00
53 lines
1.2 KiB
C++
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
|