blob: 9b07089d1f7665120a29373bb3fe5f73a186a315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "Parser.h"
#include "Exception.h"
void Parser::set_file(FileReader & file) {
this->file = &file;
}
FileReader & Parser::get_file() {
if (this->file == nullptr)
throw Exception("Parser: no file to read");
return *this->file;
}
|