]> git.tdb.fi Git - libs/datafile.git/blobdiff - tool/compiler.h
Add a shortcut for wrapping data for a collection file
[libs/datafile.git] / tool / compiler.h
index f77f04bdab2569ded7a82ba9520ac46e861f195d..046209929c336e14a62153ee9352693739c2a889 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2008  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef TOOL_COMPILER_H_
 #define TOOL_COMPILER_H_
 
@@ -20,6 +13,7 @@ class Compiler: public Msp::DataFile::Loader
 
 private:
        Msp::DataFile::Writer &writer;
+       bool reset_src;
 
 public:
        Compiler(Msp::DataFile::Writer &);
@@ -33,6 +27,7 @@ private:
        void process_file(const Msp::FS::Path &);
 };
 
+
 class File: public Msp::DataFile::Loader
 {
 private:
@@ -48,6 +43,7 @@ private:
        void write(const Msp::DataFile::Statement &);
 };
 
+
 class ForEach: public Msp::DataFile::Loader
 {
 private:
@@ -64,6 +60,8 @@ private:
 
        void exclude(const std::string &);
        void pattern(const std::string &);
+       void wrap();
+       void wrap_keyword(const std::string &);
        void write(const Msp::DataFile::Statement &);
 };