Timetabler
parser.h
Go to the documentation of this file.
1 
3 #ifndef PARSER_H
4 #define PARSER_H
5 
6 #include "CSVparser.hpp"
7 #include "data.h"
8 #include "time_tabler.h"
9 #include <string>
10 #include <yaml-cpp/yaml.h>
11 
18 class Parser {
22  TimeTabler *timeTabler;
23  Day getDayFromString(std::string);
24 
25  public:
26  Parser(TimeTabler *);
27  void parseFields(std::string file);
28  void parseInput(std::string file);
29  void addVars();
30 };
31 
32 #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:18
void parseInput(std::string file)
Parses the input given in a file.
Definition: parser.cpp:136
void addVars()
Requests for variables to be added to the solver and stores the data.
Definition: parser.cpp:259
Class for parser.
Definition: parser.h:18
Class for time tabler.
Definition: time_tabler.h:44