Skip to content
Snippets Groups Projects
Commit c3151c48 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 1000

Solved bug in making parameterSets. Always exporting Observation and PIC
as extra info now i.s.o. whole file.
parent b6c88034
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,15 @@ bool ChildControl::startChild (uint16 aCntlrType, ...@@ -191,7 +191,15 @@ bool ChildControl::startChild (uint16 aCntlrType,
", position=" << position); ", position=" << position);
ParameterSet cntlrSet = wholeSet.makeSubset(position+nodeName+"."); ParameterSet cntlrSet = wholeSet.makeSubset(position+nodeName+".");
// always add Observation and all its children to the Parset. // always add Observation and all its children to the Parset.
cntlrSet.adoptCollection(wholeSet.makeSubset(wholeSet.locateModule("Observation"))); cntlrSet.adoptCollection(wholeSet.makeSubset(
wholeSet.locateModule("Observation")+"Observation","Observation"));
cntlrSet.adoptCollection(wholeSet.makeSubset(
wholeSet.locateModule("PIC")+"PIC","PIC"));
// is there a duplicate of the controller info?
string nodePos(cntlrSet.locateModule(nodeName));
cntlrSet.substractSubset(nodePos+nodeName);
// Add some comment lines and some extra fields to the file // Add some comment lines and some extra fields to the file
cntlrSet.add("prefix", prefix+position+nodeName+"."); cntlrSet.add("prefix", prefix+position+nodeName+".");
cntlrSet.add("_instanceNr", lexical_cast<string>(instanceNr)); cntlrSet.add("_instanceNr", lexical_cast<string>(instanceNr));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment