diff options
Diffstat (limited to 'NodeFactory.h')
-rw-r--r-- | NodeFactory.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/NodeFactory.h b/NodeFactory.h new file mode 100644 index 0000000..b5757d4 --- /dev/null +++ b/NodeFactory.h @@ -0,0 +1,21 @@ +#pragma once + +#include <string> + +#include "Node.h" + +using std::string; + +class NodeFactory { +public: + NodeFactory() = default; + virtual ~NodeFactory() = default; + +public: + static bool has_type(const char * type); + static bool has_type(string type); + +private: + friend Node; +}; + |