YAMLParser
DataHolder.h
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include <string>
4 class DataHolder
5 {
6 public:
7  DataHolder();
8  ~DataHolder();
9  DataHolder(std::string);
10 
11  //Define comment signs. This is, for now, hard-coded to be the comment signs in USFOS.
12  std::vector<std::string> comment_signs;
13 
14  std::vector<std::string> tokens; //contains the tokens generated from the input file
15  std::vector<std::vector<std::string>> tokens2D; //Two-dimensional vector containing lines from the input with their respective sub-tokens.
16 
17  void readInput(std::string filename);
18  void printTokens2D();
19 
20 private:
21  void tokenizeString(std::string s);
22  void tokenizeString2D(std::string s);
23  void printTokens();
24 };
25 
std::vector< std::string > tokens
Definition: DataHolder.h:14
std::vector< std::vector< std::string > > tokens2D
Definition: DataHolder.h:15
~DataHolder()
Definition: DataHolder.cpp:107
std::vector< std::string > comment_signs
Definition: DataHolder.h:12
Definition: DataHolder.h:4
void readInput(std::string filename)
Definition: DataHolder.cpp:55
void printTokens2D()
Definition: DataHolder.cpp:92
DataHolder()
Definition: DataHolder.cpp:9