summaryrefslogtreecommitdiff
path: root/rotord/graph.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-05-23 16:00:24 +0100
committerTim Redfern <tim@eclectronics.org>2013-05-23 16:00:24 +0100
commitb643511ff513aadbd0485afc6b264702aac41021 (patch)
tree1aad48b38f8aa7c4eb0b7aacac69b23e794f4510 /rotord/graph.cpp
parent55513473ca37841b40662e1a0221d7dd260a59b7 (diff)
portability
Diffstat (limited to 'rotord/graph.cpp')
-rw-r--r--rotord/graph.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/rotord/graph.cpp b/rotord/graph.cpp
index eedcd88..655badb 100644
--- a/rotord/graph.cpp
+++ b/rotord/graph.cpp
@@ -98,6 +98,13 @@ bool Graph::load(string &filename){
else cerr << "Rotor: linking parameter input " << i4 << " of node: '" << nodeID << "', cannot find target '" << fromID << "'" << endl;
}
nodes[nodeID]->link_params();
+ //extra key/value pairs that can be specific to sub-settings
+ int n5=xml.getNumTags("parameter");
+ for (int i5=0;i5<n5;i5++){
+ nodes[nodeID]->set_parameter(xml.getAttribute("parameter","name","",i5),xml.getAttribute("parameter","value","",i5));
+ }
+ if (n5>0) cerr << "Rotor: found " << n5 << " extra parameters for node '" << nodeID << "'" << endl;
+
xml.popTag();
}
}