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