]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.h
More efficient way of loading binary files
[libs/datafile.git] / source / loader.h
index bb1292cc7b3c2740adc14a6c596bde54c4a59678..8a1103d11f14d4c251033a20a1189a2a886599e8 100644 (file)
@@ -38,8 +38,11 @@ private:
        typedef std::map<StatementKey, LoaderAction *> ActionMap;
 
        ActionMap actions;
+       Parser *cur_parser;
+       unsigned cur_level;
        const Statement *cur_st;
        bool sub_loaded;
+       bool direct;
        std::list<Loader *> aux_loaders;
 protected:
        bool check_sub_loads;
@@ -55,6 +58,9 @@ private:
        /** Loads data from a statement. */
        void load(const Statement &st);
 
+       /** Loads statemsnts from a parser, feeding them directly to actions. */
+       void load_direct(Parser &, unsigned);
+
        /** Processes a single statement */
        void load_statement(const Statement &st);