diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-26 19:18:26 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-26 20:13:30 +0100 |
commit | 6132135ec1e9a9f22df426f9362371ff9dcf43e4 (patch) | |
tree | 19c63d868129c7dd532f9f2c154617ba458043d7 /project2/common/variables | |
parent | Compat fix (diff) | |
download | project2-6132135ec1e9a9f22df426f9362371ff9dcf43e4.tar.bz2 project2-6132135ec1e9a9f22df426f9362371ff9dcf43e4.tar.xz project2-6132135ec1e9a9f22df426f9362371ff9dcf43e4.zip |
Use AdHoc plugins for variable implementations
Diffstat (limited to 'project2/common/variables')
-rw-r--r-- | project2/common/variables/config.cpp | 4 | ||||
-rw-r--r-- | project2/common/variables/literal.cpp | 5 | ||||
-rw-r--r-- | project2/common/variables/localparam.cpp | 2 | ||||
-rw-r--r-- | project2/common/variables/lookup.cpp | 2 | ||||
-rw-r--r-- | project2/common/variables/param.cpp | 2 | ||||
-rw-r--r-- | project2/common/variables/session.cpp | 2 |
6 files changed, 8 insertions, 9 deletions
diff --git a/project2/common/variables/config.cpp b/project2/common/variables/config.cpp index e134d07..273b5aa 100644 --- a/project2/common/variables/config.cpp +++ b/project2/common/variables/config.cpp @@ -32,7 +32,7 @@ class VariableConfig : public VariableImplDyn { const Glib::ustring name; }; -class VariableConfigLoader : public VariableLoader::For<VariableConfig> { +class VariableConfigLoader : public VariableFactory::For<VariableConfig> { public: class AppSettings : public Options::Option { public: @@ -88,5 +88,5 @@ class VariableConfigLoader : public VariableLoader::For<VariableConfig> { Options * opts; }; -DECLARE_CUSTOM_COMPONENT_LOADER("config", VariableConfigLoader, VariableConfigLoader, VariableLoader); +NAMEDPLUGIN("config", VariableConfigLoader, VariableFactory); diff --git a/project2/common/variables/literal.cpp b/project2/common/variables/literal.cpp index 529be6e..4f8e029 100644 --- a/project2/common/variables/literal.cpp +++ b/project2/common/variables/literal.cpp @@ -72,8 +72,7 @@ VariableLiteral::VarPart::value(ExecContext * ec) const return (*this)(ec); } -DECLARE_COMPONENT_LOADER("literal", VariableLiteral, VariableLoader); -DECLARE_CUSTOM_COMPONENT_LOADER("", VariableLiteralDef, VariableLoader::For<VariableLiteral>, VariableLoader); - +NAMEDFACTORY("literal", VariableLiteral, VariableFactory); +NAMEDFACTORY("", VariableLiteral, VariableFactory); diff --git a/project2/common/variables/localparam.cpp b/project2/common/variables/localparam.cpp index cf2f165..63d6f55 100644 --- a/project2/common/variables/localparam.cpp +++ b/project2/common/variables/localparam.cpp @@ -28,5 +28,5 @@ class VariableLocalParam : public VariableImplDyn { private: const Glib::ustring name; }; -DECLARE_COMPONENT_LOADER("local", VariableLocalParam, VariableLoader); +NAMEDFACTORY("local", VariableLocalParam, VariableFactory); diff --git a/project2/common/variables/lookup.cpp b/project2/common/variables/lookup.cpp index 42ddff2..eac3317 100644 --- a/project2/common/variables/lookup.cpp +++ b/project2/common/variables/lookup.cpp @@ -70,4 +70,4 @@ class VariableLookup : public VariableImplDyn, public RowProcessor { RowSets rowSets; const Glib::ustring name; }; -DECLARE_COMPONENT_LOADER("lookup", VariableLookup, VariableLoader); +NAMEDFACTORY("lookup", VariableLookup, VariableFactory); diff --git a/project2/common/variables/param.cpp b/project2/common/variables/param.cpp index a1ef9b7..8e4125a 100644 --- a/project2/common/variables/param.cpp +++ b/project2/common/variables/param.cpp @@ -27,5 +27,5 @@ class VariableParam : public VariableImplDyn { private: const VariableType name; }; -DECLARE_COMPONENT_LOADER("param", VariableParam, VariableLoader); +NAMEDFACTORY("param", VariableParam, VariableFactory); diff --git a/project2/common/variables/session.cpp b/project2/common/variables/session.cpp index ed2077d..d3331c0 100644 --- a/project2/common/variables/session.cpp +++ b/project2/common/variables/session.cpp @@ -27,5 +27,5 @@ class VariableSession : public VariableImplDyn { private: const Glib::ustring name; }; -DECLARE_COMPONENT_LOADER("session", VariableSession, VariableLoader); +NAMEDFACTORY("session", VariableSession, VariableFactory); |