#include <iostream>
#endif
-
Config_WidgetReader::Config_WidgetReader(const std::string& theXmlFile)
: Config_XMLReader(theXmlFile)
return myDescriptionCache[theFeatureName];
}
-
void Config_WidgetReader::processNode(xmlNodePtr theNode)
{
if (isNode(theNode, NODE_FEATURE, NULL)) {
{
xmlNodePtr aNode = xmlFirstElementChild(theNode);
std::list<xmlNodePtr> aSourceNodes;
- while(aNode != NULL) {
+ while (aNode != NULL) {
if (isNode(aNode, NODE_SOURCE, NULL)) {
Config_XMLReader aSourceReader = Config_XMLReader(getProperty(aNode, SOURCE_FILE));
xmlNodePtr aSourceRoot = aSourceReader.findRoot();
}
xmlNodePtr aSourceNode = xmlFirstElementChild(aSourceRoot);
xmlNodePtr aTargetNode = xmlDocCopyNodeList(aNode->doc, aSourceNode);
- while(aTargetNode != NULL) {
+ while (aTargetNode != NULL) {
xmlNodePtr aNextNode = xmlNextElementSibling(aTargetNode);
xmlAddPrevSibling(aNode, aTargetNode);
aTargetNode = aNextNode;
}
//Remove "SOURCE" node.
std::list<xmlNodePtr>::iterator it = aSourceNodes.begin();
- for(; it != aSourceNodes.end(); it++) {
+ for (; it != aSourceNodes.end(); it++) {
xmlUnlinkNode(*it);
xmlFreeNode(*it);
}