#define MSP_DATAFILE_PARSER_H_
#include <string>
+#include <msp/core/noncopyable.h>
#include "input.h"
namespace Msp {
class Loader;
class LoaderAction;
class ParserMode;
-class Statement;
+struct Statement;
struct StatementKey;
/**
formats. A Parser evaluates into a boolean value indicating whether more
statements may be read.
*/
-class Parser
+class Parser: private NonCopyable
{
private:
Input in;
statement's signature. */
bool parse_and_load(unsigned, Loader &, const LoaderAction &);
- operator bool() const { return good && in; }
+ explicit operator bool() const { return good && in; }
};
} // namespace DataFile