diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-01-27 12:24:41 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-01-27 12:24:41 +0000 |
| commit | 487fcf990f3c536d7e1d2f66daa0c34c0407eac5 (patch) | |
| tree | 4f0dd5aa9d74af5e3e7628fbe20e1f0af60f512a /NT/src/rotor.cpp | |
| parent | 1f2bc21fd5ee9bff4fce190d7bb0ee4462e76e87 (diff) | |
NT resinstated as HTTP server
Diffstat (limited to 'NT/src/rotor.cpp')
| -rw-r--r-- | NT/src/rotor.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index 6380f28..2909255 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -67,8 +67,9 @@ Json::Value Node::to_json(){ //factory generates linker errors if rotor.h implementation is seperated: why? -int main(){ - Node_factory f; + +//int main(){ +// Node_factory f; /* map<string,string> settings={{"node_type","time"}}; Node *t=f.create(settings); @@ -86,8 +87,8 @@ int main(){ delete m; delete p; */ - Rotor::Render_context r("dbbbb4ba-8430-11e3-9774-74d02b29f6a6"); - cerr<<(r.graph.load_file("testgraph.json","./")?"loaded ":"could not load ")<<"testgraph.json"<<endl; +// Rotor::Render_context r("dbbbb4ba-8430-11e3-9774-74d02b29f6a6"); +// cerr<<(r.graph.load_file("testgraph.json","./")?"loaded ":"could not load ")<<"testgraph.json"<<endl; /* Json::Value js; f.list_node("time",js); @@ -101,7 +102,7 @@ int main(){ //now need a way to grab output - printf("%s\n",r.text_render().c_str()); +// printf("%s\n",r.text_render().c_str()); -} +//} |
