diff options
Diffstat (limited to 'NodeFactory.h')
-rw-r--r-- | NodeFactory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/NodeFactory.h b/NodeFactory.h index 7790b4a..3c8c4f4 100644 --- a/NodeFactory.h +++ b/NodeFactory.h @@ -17,10 +17,13 @@ public: public: static bool has_type(const char * type); static bool has_type(string type); + static Node * create(string type); private: static void assign(const char * type, const Node * node); static NodeFactoryMap & get_map(); + static string normalize_type(string type); + static const Node * find_type(string type); private: friend Node; |