]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parsermode.h
Add a flag to return also internal statements
[libs/datafile.git] / source / parsermode.h
index 824525d66aeeddaa0347e1848b18f409d8e82f91..58a7e27de1704a2ab0aee90aa13a5b14c0145a0a 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_
 
@@ -15,17 +8,20 @@ namespace DataFile {
 
 class Input;
 
+/**
+Base class for parse modes.
+*/
 class ParserMode
 {
 protected:
        Input ∈
-       std::string src;
+       const std::string &src;
 
        ParserMode(Input &i, const std::string &s): in(i), src(s) { }
 public:
        virtual ~ParserMode() { }
 
-       virtual Statement parse() =0;
+       virtual Statement parse(bool) = 0;
 };
 
 } // namespace DataFile