mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 12:06:58 +03:00
* Updated the web Installer page, removed all redudnant files in the docs folder, updated the main README * . * consolidate the 2 identical ZerlegeZeile() function and move it to Helper.cpp and add workaround for whitespace and equal sign in password fields * remove redundant code in HelperZerlegeZeile() * Updated the web Installer page, removed all redudnant files in the docs folder, updated the main README * . * consolidate the 2 identical ZerlegeZeile() function and move it to Helper.cpp and add workaround for whitespace and equal sign in password fields * remove redundant code in HelperZerlegeZeile()
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Helper.h"
|
|
#include "CImageBasis.h"
|
|
|
|
using namespace std;
|
|
|
|
#define LOGFILE_TIME_FORMAT "%Y%m%d-%H%M%S"
|
|
#define LOGFILE_TIME_FORMAT_DATE_EXTR substr(0, 8)
|
|
#define LOGFILE_TIME_FORMAT_HOUR_EXTR substr(9, 2)
|
|
|
|
struct HTMLInfo
|
|
{
|
|
float val;
|
|
CImageBasis *image = NULL;
|
|
CImageBasis *image_org = NULL;
|
|
std::string filename;
|
|
std::string filename_org;
|
|
};
|
|
|
|
|
|
class ClassFlow
|
|
{
|
|
protected:
|
|
bool isNewParagraph(string input);
|
|
bool GetNextParagraph(FILE* pfile, string& aktparamgraph);
|
|
bool getNextLine(FILE* pfile, string* rt);
|
|
|
|
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);
|
|
|
|
virtual bool ReadParameter(FILE* pfile, string &aktparamgraph);
|
|
virtual bool doFlow(string time);
|
|
virtual string getHTMLSingleStep(string host);
|
|
virtual string getReadout();
|
|
virtual string name(){return "ClassFlow";};
|
|
|
|
};
|
|
|