Changeset 152 in pacpusframework for branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
- Timestamp:
- Aug 1, 2013, 10:45:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
r146 r152 254 254 } else { 255 255 component->param.localCopy(cfg.qDomElement()); 256 component-> configuration_ = component->configureComponent(cfg);256 component->setConfigurationState(component->configureComponent(cfg)); 257 257 } 258 258 } // for … … 267 267 LOG_WARN("component '" << componentName << "' does not exist"); 268 268 } else { 269 // Pacpus 2.0 : add input and output270 component->addInput ();271 component->addOutput ();272 273 if ( component->configuration_ == ComponentBase::CONFIGURATION_DELAYED) {269 // Pacpus 2.0 : add inputs and outputs 270 component->addInputs(); 271 component->addOutputs(); 272 273 if (ComponentBase::CONFIGURATION_DELAYED == component->configurationState()) { 274 274 LOG_DEBUG("try to configure component '" << componentName << "'"); 275 275 276 276 // copy locally the config parameters of the component 277 277 component->param.localCopy(cfg.qDomElement()); 278 component-> configuration_ = component->configureComponent(cfg);278 component->setConfigurationState(component->configureComponent(cfg)); 279 279 } 280 280 281 if ( component->configuration_ == ComponentBase::CONFIGURED_OK) {281 if (ComponentBase::CONFIGURED_OK == component->configurationState()) { 282 282 --componentsToConfigureCount; 283 283 } else { … … 286 286 << ". It was not configured, please review your configuration and/or your component" 287 287 ); 288 component-> configuration_ = ComponentBase::CONFIGURED_FAILED;288 component->setConfigurationState(ComponentBase::CONFIGURED_FAILED); 289 289 } 290 290 }
Note:
See TracChangeset
for help on using the changeset viewer.