diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-01-03 19:57:48 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-01-03 19:57:48 +0000 |
| commit | 815d1149f9fb6be2c1bc05fb04f574eb928e050e (patch) | |
| tree | 647ac891d00ab5561926a6566d37c70346df634a /NT/src/factory.cpp | |
| parent | 820b73f2abdf51bd59cb5b74739fb6f264b7c54e (diff) | |
updated refactored files
Diffstat (limited to 'NT/src/factory.cpp')
| -rw-r--r-- | NT/src/factory.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/NT/src/factory.cpp b/NT/src/factory.cpp new file mode 100644 index 0000000..6888a19 --- /dev/null +++ b/NT/src/factory.cpp @@ -0,0 +1,11 @@ +#include "factory.h" + +using namespace Rotor; + +Node_factory::Node_factory(){ + //for now, statically load prototype map in constructor + + add_type("time",new Time(),"nodes"); + add_type("multiply",new Multiply(),"nodes"); + add_type("print",new Print(),"nodes"); +}
\ No newline at end of file |
