X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floader.h;h=bb1292cc7b3c2740adc14a6c596bde54c4a59678;hb=0d8df25704366f3576c417436c90fbac2e479632;hp=604886125614728c2552d486decfa01afa19c804;hpb=011bd4dabaddc6c2739f14a427929bbb6191fea7;p=libs%2Fdatafile.git diff --git a/source/loader.h b/source/loader.h index 6048861..bb1292c 100644 --- a/source/loader.h +++ b/source/loader.h @@ -35,21 +35,12 @@ See also classes ObjectLoader and CollectionObjectLoader in objectloader.h. class Loader { private: - struct ActionKey - { - std::string keyword; - std::string signature; - - ActionKey(const std::string &, const std::string &); - - bool operator<(const ActionKey &) const; - }; - - typedef std::map ActionMap; + typedef std::map ActionMap; ActionMap actions; const Statement *cur_st; bool sub_loaded; + std::list aux_loaders; protected: bool check_sub_loads; @@ -131,7 +122,12 @@ protected: private: void add(const std::string &, LoaderAction *); - LoaderAction *find_action(const ActionKey &) const; +protected: + void add_auxiliary_loader(Loader &); + +private: + bool has_action(const StatementKey &) const; + LoaderAction *find_action(const StatementKey &) const; protected: /** Returns the source of the statement being processed. This can be used