summaryrefslogtreecommitdiff
path: root/include/gras/factory.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-07-07 12:21:36 -0700
committerJosh Blum2013-07-07 12:21:36 -0700
commitcfd9e8146f7589f3f04fea979c741267b0454546 (patch)
treedb46f578e2ff93b104ed9270623926732ee5eb83 /include/gras/factory.hpp
parentc6373f53f4690d667e553ed7258e13c3b45aa323 (diff)
downloadsandhi-cfd9e8146f7589f3f04fea979c741267b0454546.tar.gz
sandhi-cfd9e8146f7589f3f04fea979c741267b0454546.tar.bz2
sandhi-cfd9e8146f7589f3f04fea979c741267b0454546.zip
gras: python hooks for factory
Diffstat (limited to 'include/gras/factory.hpp')
-rw-r--r--include/gras/factory.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/gras/factory.hpp b/include/gras/factory.hpp
index 926025e..13d1c2b 100644
--- a/include/gras/factory.hpp
+++ b/include/gras/factory.hpp
@@ -39,10 +39,8 @@ namespace gras
* Example call into the factory:
* gras::Element *my_block = gras::Factory::make("make_my_block", arg0, arg1);
*/
-class GRAS_API Factory : Callable
+struct GRAS_API Factory
{
-public:
-
/*******************************************************************
* Register API - don't look here, template magic, not helpful
******************************************************************/
@@ -73,9 +71,11 @@ public:
template <typename Arg0, typename Arg1, typename Arg2>
static Element *make(const std::string &name, const Arg0 &a0, const Arg1 &a1, const Arg2 &a2);
-private:
+ /*******************************************************************
+ * Private registration hooks
+ ******************************************************************/
static void _register_make(const std::string &, void *);
- static Element *_make(const std::string &, const PMCC &);
+ static Element *_handle_make(const std::string &, const PMCC &);
};
}