Timetabler
parser.h
Go to the documentation of this file.
1 
3 #ifndef PARSER_H
4 #define PARSER_H
5 
6 #include <yaml-cpp/yaml.h>
7 #include "CSVparser.hpp"
8 #include "data.h"
9 #include "time_tabler.h"
10 #include <string>
11 
18 class Parser {
22  TimeTabler *timeTabler;
23  Day getDayFromString(std::string);
24 public:
25  Parser(TimeTabler *);
26  void parseFields(std::string file);
27  void parseInput(std::string file);
28  void addVars();
29 };
30 
31 #endif
Day
Enum Class to represent a day of the week.
Definition: slot.h:15
Parser(TimeTabler *)
Constructs the Parser object.
Definition: parser.cpp:11
void parseFields(std::string file)
Parse the fields given in a file.
Definition: parser.cpp:20
void parseInput(std::string file)
Parses the input given in a file.
Definition: parser.cpp:114
void addVars()
Requests for variables to be added to the solver and stores the data.
Definition: parser.cpp:227
Class for parser.
Definition: parser.h:18
Class for time tabler.
Definition: time_tabler.h:45