From c3151c48068b61107911d4080fc611cfa70e58e8 Mon Sep 17 00:00:00 2001 From: Ruud Overeem <overeem@astron.nl> Date: Mon, 5 Mar 2007 15:40:03 +0000 Subject: [PATCH] BugID: 1000 Solved bug in making parameterSets. Always exporting Observation and PIC as extra info now i.s.o. whole file. --- MAC/APL/APLCommon/src/ChildControl.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MAC/APL/APLCommon/src/ChildControl.cc b/MAC/APL/APLCommon/src/ChildControl.cc index fe9556b11b3..3ffad058ff2 100644 --- a/MAC/APL/APLCommon/src/ChildControl.cc +++ b/MAC/APL/APLCommon/src/ChildControl.cc @@ -191,7 +191,15 @@ bool ChildControl::startChild (uint16 aCntlrType, ", position=" << position); ParameterSet cntlrSet = wholeSet.makeSubset(position+nodeName+"."); // 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 cntlrSet.add("prefix", prefix+position+nodeName+"."); cntlrSet.add("_instanceNr", lexical_cast<string>(instanceNr)); -- GitLab