Tomato
TomatoParser.h
Go to the documentation of this file.
1 
7 #ifndef Tomato_TomatoPARSER_H
8 #define Tomato_TomatoPARSER_H
9 
10 #include "CmakeConfigForTomato.h"
11 #ifdef USE_YAML
12 
13 #include <map>
14 #include <string>
15 #include <vector>
16 
17 #include "tomatolib_export.h"
18 
19 #include "yaml.h"
20 
21 #include "KWUtil.h"
22 
23 namespace Ox {
24 
25  template<typename MeasureType>
26  class TomatoParser {
27 
28  public:
29 
30  typedef std::map<std::string, std::string> ScalarMapType;
31  typedef std::map<std::string, std::vector<std::string> > SequenceMapType;
32 
33  std::string _filePath;
34  ScalarMapType _scalars;
35  SequenceMapType _sequences;
36 
41  int parse();
42 
43  void disp();
44 
45  template< typename TYPE >
46  void printVector(std::vector<TYPE> myVector, std::string myVectorName);
47 
48  };
49 } // namespace Ox
50 
51 #ifndef TOMATOLIB_COMPILED
52 #include "TomatoParser.hxx"
53 #endif //TOMATOLIB_COMPILED
54 
55 #endif //USE_YAML
56 
57 #endif //Tomato_TomatoPARSER_H
Definition: OxCalculator.h:19