Changeset 176 in pacpusframework for trunk/examples/ProducerConsumerExample/ProducerExample.cpp
- Timestamp:
- Oct 11, 2013, 2:10:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/ProducerConsumerExample/ProducerExample.cpp
r165 r176 22 22 { 23 23 LOG_TRACE("constructor(" << name << ")"); 24 25 namespace po = boost::program_options; 26 27 addParameters() 28 ("output-path", po::value<std::string>(&mOutputFileName)->default_value("producer.txt"), "set output file path") 29 ; 24 30 } 25 31 … … 32 38 ProducerExample::configureComponent(XmlComponentConfig /*config*/) 33 39 { 34 LOG_TRACE(Q_FUNC_INFO);40 PACPUS_LOG_FUNCTION(); 35 41 36 LOG_INFO("component '" << name() << "' configured");42 LOG_INFO("component '" << getName() << "' configured"); 37 43 return ComponentBase::CONFIGURED_OK; 38 44 } … … 57 63 setActive(true); 58 64 setState(MONITOR_OK); 59 LOG_INFO("started component '" << name() << "'");65 LOG_INFO("started component '" << getName() << "'"); 60 66 } 61 67 … … 66 72 setActive(false); 67 73 setState(STOPPED); 68 LOG_INFO("stopped component '" << name() << "'");74 LOG_INFO("stopped component '" << getName() << "'"); 69 75 } 70 76
Note:
See TracChangeset
for help on using the changeset viewer.