Changeset 110 in pacpusframework for branches/2.0-beta1/src/PacpusLib/XmlConfigFile.cpp


Ignore:
Timestamp:
06/13/13 13:43:39 (11 years ago)
Author:
morasjul
Message:

Beta-2 : Fix CMakeList (link), remove useless code and add improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/src/PacpusLib/XmlConfigFile.cpp

    r100 r110  
    7575    _mutex.lock();
    7676// TODO change .tagName => .attribute(kPropertyComponentName.c_str())
    77     if (_document.documentElement().namedItem(componentSection).namedItem(component.tagName()).isNull()) {
    78         LOG_WARN("component " << component.tagName() << " exists already in the document");
     77    if (_document.documentElement().namedItem(componentSection).namedItem(component.attribute(nameAttribute)/*.tagName()*/).isNull()) {
     78        LOG_WARN("component " << component.attribute(nameAttribute)/*tagName()*/ << " exists already in the document");
    7979    } else {
    8080        QDomNode node = _document.documentElement().namedItem(componentSection).appendChild(component);
     
    9292    QDomNode node = _document.documentElement().namedItem(componentSection).removeChild(component);
    9393    if (node.isNull()) {
    94         LOG_WARN("component " << component.tagName() << " doesn't exist in the document.");
     94        LOG_WARN("component " << component.attribute(nameAttribute)/*tagName()*/ << " doesn't exist in the document.");
    9595    } else {
    9696        LOG_INFO("component " << node.nodeName() << " has been removed from the section "
Note: See TracChangeset for help on using the changeset viewer.