From 874194d055d0c90a7874a06be95ca2e087616a9d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 14 Jan 2014 17:00:14 +0000 Subject: converting settings initiaiers to json --- NT/src/factory.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'NT/src/factory.cpp') diff --git a/NT/src/factory.cpp b/NT/src/factory.cpp index dd39533..c02bcee 100644 --- a/NT/src/factory.cpp +++ b/NT/src/factory.cpp @@ -9,6 +9,7 @@ Node_factory::Node_factory(){ add_type(new Multiply(),"nodes"); add_type(new Print(),"nodes"); } +/* bool Node_factory::list_node(const string &t,xmlIO XML){ for (auto& type: type_map) { if (type.first==t) { @@ -19,6 +20,7 @@ bool Node_factory::list_node(const string &t,xmlIO XML){ XML.addValue("error","Node /"+t+"/ not found"); return false; }; +*/ bool Node_factory::list_node(const string &t,Json::Value &JSON){ for (auto& type: type_map) { if (type.first==t) { @@ -30,7 +32,7 @@ bool Node_factory::list_node(const string &t,Json::Value &JSON){ return false; }; - +/* void Node_factory::list_node(Rotor::Node* type,xmlIO XML,int i){ XML.addTag("node"); XML.addAttribute("node","output_type",type->output_type(),i); @@ -40,7 +42,7 @@ void Node_factory::list_node(Rotor::Node* type,xmlIO XML,int i){ XML.addAttribute("node","node_id",type->node_id,i); XML.addAttribute("node","ui_type",type->ui_type,i); XML.pushTag("node",i); -/* + //if (type->description!="") { // XML.addTag("description"); // XML.setValue("description",type->description,0); @@ -103,6 +105,8 @@ void Node_factory::list_node(Rotor::Node* type,xmlIO XML,int i){ } j++; } -*/ + XML.popTag(); } + +*/ -- cgit v1.2.3