diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-01-20 15:39:23 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-01-20 15:39:23 +0000 |
| commit | 6ae7506f595d45e752ffd0cebb6392c707db2d3c (patch) | |
| tree | 761d0cf5f42a1c14bb4ce9d2023ab65d59b77520 /NT/src/rotor.cpp | |
| parent | 344e9b1a484b361cac7b07500cb7d2699cc93c29 (diff) | |
making json loader
Diffstat (limited to 'NT/src/rotor.cpp')
| -rw-r--r-- | NT/src/rotor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index 8fdec07..d280029 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -1,8 +1,9 @@ #include <stdio.h> #include "rotor.h" -#include "nodes.h" #include "factory.h" +#include "nodes.h" +#include "graph.h" using namespace std; using namespace Rotor; @@ -81,6 +82,9 @@ int main(){ delete m; delete p; */ +Rotor::Graph g; +cerr<<(g.load_file("testgraph.json","./")?"loaded ":"could not load ")<<"testgraph.json"<<endl; +/* Json::Value js; f.list_node("time",js); Json::StyledWriter writer; @@ -89,5 +93,6 @@ f.list_node("multiply",js); cerr<<writer.write(js)<<endl; f.list_node("print",js); cerr<<writer.write(js)<<endl; +*/ } |
