Changeset 100 in pacpusframework
- Timestamp:
- Jun 2, 2013, 10:10:12 AM (11 years ago)
- Location:
- branches/2.0-beta1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/include/Pacpus/kernel/inputOutputBase.h
r96 r100 29 29 void addConnection(ConnectionBase connection) { _connection.append(connection);} 30 30 bool removeConnection(ConnectionBase connection) { return _connection.removeOne(connection);} 31 32 bool hasConnection() { return _connection.size() > 0;} 31 33 32 34 protected: -
branches/2.0-beta1/src/PacpusLib/XmlComponentConfig.cpp
r89 r100 46 46 { 47 47 LOG_ERROR("cannot add component property:" 48 << " component '" << component_. tagName() << "'"48 << " component '" << component_.attribute(kPropertyComponentName.c_str()) << "'" 49 49 << " already contains property '" << name << "'" 50 50 << " and its value is '" << component_.attribute(name) << "'" … … 56 56 component_.setAttribute(name, 0); 57 57 LOG_INFO("property '" << name << "'" 58 << " was added to the component " << component_. tagName() << "'"58 << " was added to the component " << component_.attribute(kPropertyComponentName.c_str()) << "'" 59 59 << " and set to '" << component_.attribute(name) << "'" 60 60 ); … … 66 66 { 67 67 LOG_WARN("cannot delete compoenent property '" << name << "'" 68 << " of component '" << component_. tagName() << "'"68 << " of component '" << component_.attribute(kPropertyComponentName.c_str()) << "'" 69 69 << ". Component does not contain this property." 70 70 ); … … 75 75 component_.removeAttribute(name); 76 76 LOG_INFO("property '" << name << "' " 77 << " of component '" << component_. tagName() << "'"77 << " of component '" << component_.attribute(kPropertyComponentName.c_str()) << "'" 78 78 << " was deleted" 79 79 ); … … 87 87 { 88 88 LOG_WARN("cannot retrieve component property '" << name << "'" 89 << " of component '" << component_. tagName() << "'"89 << " of component '" << component_.attribute(kPropertyComponentName.c_str()) << "'" 90 90 << ". Component does not contain this property." 91 91 ); … … 116 116 component_.setAttribute(name, value); 117 117 LOG_INFO("property " << name 118 << " of the component " << component_. tagName()118 << " of the component " << component_.attribute(kPropertyComponentName.c_str()) 119 119 << " was set to : " << value 120 120 ); … … 138 138 QString const XmlComponentConfig::getComponentName() const 139 139 { 140 //return component_. tagName();140 //return component_.attribute(kPropertyComponentName.c_str()); 141 141 return getProperty(kPropertyComponentName.c_str()); 142 142 } -
branches/2.0-beta1/src/PacpusLib/XmlConfigFile.cpp
r89 r100 74 74 { 75 75 _mutex.lock(); 76 76 // TODO change .tagName => .attribute(kPropertyComponentName.c_str()) 77 77 if (_document.documentElement().namedItem(componentSection).namedItem(component.tagName()).isNull()) { 78 78 LOG_WARN("component " << component.tagName() << " exists already in the document");
Note:
See TracChangeset
for help on using the changeset viewer.