Ignore:
Timestamp:
06/02/13 10:10:12 (11 years ago)
Author:
morasjul
Message:

beta 2.0 : fix some bug with xml reading function

File:
1 edited

Legend:

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

    r89 r100  
    4646    {
    4747        LOG_ERROR("cannot add component property:"
    48                   << " component '" << component_.tagName() << "'"
     48                  << " component '" << component_.attribute(kPropertyComponentName.c_str()) << "'"
    4949                  << " already contains property '" << name << "'"
    5050                  << " and its value is '" << component_.attribute(name) << "'"
     
    5656    component_.setAttribute(name, 0);
    5757    LOG_INFO("property '" << name << "'"
    58               << " was added to the component " << component_.tagName() << "'"
     58              << " was added to the component " << component_.attribute(kPropertyComponentName.c_str()) << "'"
    5959              << " and set to '" << component_.attribute(name) << "'"
    6060              );
     
    6666    {
    6767        LOG_WARN("cannot delete compoenent property '" << name << "'"
    68                  << " of component '" << component_.tagName() << "'"
     68                 << " of component '" << component_.attribute(kPropertyComponentName.c_str()) << "'"
    6969                 << ". Component does not contain this property."
    7070                 );
     
    7575    component_.removeAttribute(name);
    7676    LOG_INFO("property '" << name << "' "
    77       << " of component '" << component_.tagName() << "'"
     77      << " of component '" << component_.attribute(kPropertyComponentName.c_str()) << "'"
    7878      << " was deleted"
    7979      );
     
    8787    {
    8888        LOG_WARN("cannot retrieve component property '" << name << "'"
    89                  << " of component '" << component_.tagName() << "'"
     89                 << " of component '" << component_.attribute(kPropertyComponentName.c_str()) << "'"
    9090                 << ". Component does not contain this property."
    9191                 );
     
    116116    component_.setAttribute(name, value);
    117117    LOG_INFO("property " << name
    118              << " of the component " << component_.tagName()
     118             << " of the component " << component_.attribute(kPropertyComponentName.c_str())
    119119             << " was set to : " << value
    120120             );
     
    138138QString const XmlComponentConfig::getComponentName() const
    139139{
    140     //return component_.tagName();
     140    //return component_.attribute(kPropertyComponentName.c_str());
    141141    return getProperty(kPropertyComponentName.c_str());
    142142}
Note: See TracChangeset for help on using the changeset viewer.