#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; }