summaryrefslogtreecommitdiff
path: root/project2/common/scriptLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/scriptLoader.h')
-rw-r--r--project2/common/scriptLoader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/project2/common/scriptLoader.h b/project2/common/scriptLoader.h
index ccc7afb..776d0c5 100644
--- a/project2/common/scriptLoader.h
+++ b/project2/common/scriptLoader.h
@@ -140,6 +140,10 @@ class GenLoader : public ComponentLoader {
}
};
virtual Impl * create(const Params & ...) const = 0;
+ inline static Impl * createNew(const std::string & n, const Params & ... p)
+ {
+ return LoaderBase::getLoader<GenLoader<Impl, Params...>, NotSupported>(n)->create(p...);
+ }
inline static boost::shared_ptr<GenLoader<Impl, Params...>> getFor(const std::string & n)
{
return LoaderBase::getLoader<GenLoader<Impl, Params...>, NotSupported>(n);