]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parsermode.h
Remove the loaded flag from PackSource files
[libs/datafile.git] / source / parsermode.h
index 339bdb78e4bc66536dab675a0517fc748a9a5824..491647e4b09a0b9c307d4f4aa32a6078403ed9a5 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_DATAFILE_PARSERMODE_H_
 #define MSP_DATAFILE_PARSERMODE_H_
 
@@ -14,6 +7,8 @@ namespace Msp {
 namespace DataFile {
 
 class Input;
+class Loader;
+class LoaderAction;
 
 /**
 Base class for parse modes.
@@ -29,6 +24,10 @@ public:
        virtual ~ParserMode() { }
 
        virtual Statement parse() = 0;
+       virtual void process_control_statement(const Statement &) { }
+
+       virtual const StatementKey *peek(unsigned) { return 0; }
+       virtual bool parse_and_load(unsigned, Loader &, const LoaderAction &) { return false; }
 };
 
 } // namespace DataFile