]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.h
Add a way to combine multiple loaders
[libs/datafile.git] / source / loader.h
index 604886125614728c2552d486decfa01afa19c804..3ab6d28fcfd194b2029588a03383ddf53adc7194 100644 (file)
@@ -50,6 +50,7 @@ private:
        ActionMap actions;
        const Statement *cur_st;
        bool sub_loaded;
+       std::list<Loader *> aux_loaders;
 protected:
        bool check_sub_loads;
 
@@ -131,6 +132,11 @@ protected:
 private:
        void add(const std::string &, LoaderAction *);
 
+protected:
+       void add_auxiliary_loader(Loader &);
+
+private:
+       bool has_keyword(const std::string &) const;
        LoaderAction *find_action(const ActionKey &) const;
 
 protected: