diff options
Diffstat (limited to 'project2/common/scriptLoader.h')
-rw-r--r-- | project2/common/scriptLoader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/common/scriptLoader.h b/project2/common/scriptLoader.h index d916821..6878983 100644 --- a/project2/common/scriptLoader.h +++ b/project2/common/scriptLoader.h @@ -13,7 +13,6 @@ #include <map> #include <vector> -enum UnsupportedHandling { ErrorOnUnsupported, WarnOnUnsupported, IgnoreUnsupported }; class ElementLoader; class ComponentLoader; class CommonObjects; @@ -31,6 +30,7 @@ class LoaderBase { void collectAll(const CommonObjects * co, bool childrenOnly, ScriptNodePtr script); void addLoadTarget(ScriptNodePtr src, boost::intrusive_ptr<Storer> target); + void addLoadTargetSub(ScriptNodePtr src, const Glib::ustring & name, bool required, boost::intrusive_ptr<Storer> target); static void onAllComponents(const boost::function1<void, ComponentLoader *> &); @@ -86,6 +86,7 @@ class LoaderBase { private: void collectAll(ScriptNodePtr script, bool childrenOnly, const StorerPtrs & sts) const; + static ScriptNodePtr getSub(ScriptNodePtr root, const Glib::ustring & name, bool required); Targets targets; static unsigned int depth; template <class X> friend class ElementLoaderImpl; |