]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parser.h
Add a flag to return also internal statements
[libs/datafile.git] / source / parser.h
index 814fd2771b1240ccb14a86c4c8d5576f26c99d4b..aeab71d2d3fbd4022e30a9c8b26b0ab3d14a31ed 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006-2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_DATAFILE_PARSER_H_
 #define MSP_DATAFILE_PARSER_H_
 
@@ -26,10 +19,11 @@ statements may be read.
 class Parser
 {
 private:
-       Input       in;
+       Input in;
+       std::string main_src;
        std::string src;
-       bool        good;
-       ParserMode  *mode;
+       bool good;
+       ParserMode *mode;
 
 public:
        Parser(IO::Base &i, const std::string &s);
@@ -41,7 +35,7 @@ public:
        marked as bad and no more statements may be read, even if the exception was
        caught.
        */
-       Statement parse();
+       Statement parse(bool raw = false);
 
        operator bool() const { return good && in; }
 };