Changeset 141 in pacpusframework for branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
- Timestamp:
- Jul 30, 2013, 5:48:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp
r120 r141 343 343 344 344 LOG_INFO("starting component '" << componentName << "'..."); 345 if (!component->startComponent()) 345 if (!component->startComponent()) { 346 346 LOG_WARN("cannot start component '" << componentName << "'. It can already be started"); 347 } 347 348 348 349 return true; … … 372 373 373 374 LOG_INFO("stopping component '" << componentName << "'..."); 374 if (!component->stopComponent()) 375 if (!component->stopComponent()) { 375 376 LOG_WARN("cannot stop component '" << componentName << "'" << ". It can be already stopped"); 377 } 376 378 377 379 return true; … … 383 385 384 386 ComponentMap::iterator it = componentMap_.find(name); 385 if (it != componentMap_.end()) 387 if (it != componentMap_.end()) { 386 388 return *it; 389 } 387 390 388 391 LOG_WARN("cannot retrieve component '" << name << "'" << ". It does not exist");
Note:
See TracChangeset
for help on using the changeset viewer.