1 #ifndef MSP_DATAFILE_PARSER_H_
2 #define MSP_DATAFILE_PARSER_H_
15 Frontend for loading datafiles. Handles switching between text and binary
16 formats. A Parser evaluates into a boolean value indicating whether more
17 statements may be read.
29 Parser(IO::Base &i, const std::string &s);
33 Reads a statement from the input. If the end of input was reached, an empty
34 invalid statement will be returned. If an error occurs, the parser will be
35 marked as bad and no more statements may be read, even if the exception was
40 operator bool() const { return good && in; }
43 } // namespace DataFile