OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TableReader.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <list>
5
6class Model;
7class EntityObserver;
8class ModelState;
9class ClassFactoryHandler;
10
12{
13public:
15 virtual ~TableReader();
16
17 void setModel(Model *mdl) { model = mdl; }
18
19 std::string readFromFile(const std::string fileName, const std::string &itemName, EntityObserver *obs, ModelState *ms, ClassFactoryHandler *factory, const std::string &owner);
20
21private:
22 bool readNextLine(std::ifstream &file, std::string &line);
23 std::list<std::string> separateLine(std::string &line, char separator);
24 void trimString(std::string &str);
25
26 Model *model;
27};
The Model class is the main interface to the model. There may be multiple instances of this class....
Definition Model.h:94
Definition TableReader.h:12
TableReader()
Definition TableReader.cpp:12
std::string readFromFile(const std::string fileName, const std::string &itemName, EntityObserver *obs, ModelState *ms, ClassFactoryHandler *factory, const std::string &owner)
Definition TableReader.cpp:23
void setModel(Model *mdl)
Definition TableReader.h:17
virtual ~TableReader()
Definition TableReader.cpp:18