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 <string>
8 #include "CSVparser.hpp"
9 #include "data.h"
10 #include "time_tabler.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  bool verify();
31 };
32 
33 #endif
Day
Enum Class to represent a day of the week.
Definition: slot.h:15
Class for time tabler.
Definition: time_tabler.h:44
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:128
void addVars()
Requests for variables to be added to the solver and stores the data.
Definition: parser.cpp:306
Parser(Timetabler *)
Constructs the Parser object.
Definition: parser.cpp:11
Class for parser.
Definition: parser.h:18