Changeset 110 in pacpusframework for branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
- Timestamp:
- Jun 13, 2013, 1:43:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
r96 r110 7 7 #include <Pacpus/kernel/ComponentManager.h> 8 8 #include <Pacpus/kernel/ComponentBase.h> 9 #include <Pacpus/kernel/ConnectionBase.h> 9 10 #include <Pacpus/kernel/Log.h> 10 #include <Pacpus/kernel/ConnectionBase.h>11 11 #include <QObject> 12 12 … … 227 227 QString componentType = cfg.getComponentType(); 228 228 QString componentName = cfg.getComponentName(); 229 //LOG_DEBUG("try to create component '" << componentName << "'"); 229 LOG_DEBUG("try to create component '" << componentName << "'"); 230 230 231 // create the component and automatically add it to the component manager list 231 232 if (!createComponent(componentType, componentName)) { … … 239 240 // Second, try to configure the components without regarding the dependencies 240 241 for (int i = 0; i < componentsNodeList.size(); ++i) { 241 //LOG_DEBUG("try to configure component '" << (*it) << "'");242 242 cfg.localCopy(componentsNodeList.item(i).toElement()); 243 243 QString componentName = cfg.getComponentName(); 244 LOG_DEBUG("try to configure component '" << componentName << "'"); 244 245 245 246 // copy locally the config parameters of the component … … 250 251 component->param.localCopy(cfg.qDomElement()); 251 252 component->configuration_ = component->configureComponent(cfg); 252 253 253 } 254 254 } // for … … 264 264 } else { 265 265 if (component->configuration_ == ComponentBase::CONFIGURATION_DELAYED) { 266 //LOG_DEBUG("try to configure component '" << (*it)<< "'");266 LOG_DEBUG("try to configure component '" << componentName << "'"); 267 267 268 268 // copy locally the config parameters of the component … … 274 274 --componentsToConfigureCount; 275 275 } else { 276 /*LOG_ERROR("cannot configure component '" << (*it)<< "'"276 LOG_ERROR("cannot configure component '" << componentName << "'" 277 277 << ". Dependencies with other components are too complex" 278 278 << ". It was not configured, please review your configuration and/or your component" 279 ); */279 ); 280 280 component->configuration_ = ComponentBase::CONFIGURED_FAILED; 281 281 }
Note:
See TracChangeset
for help on using the changeset viewer.