Changeset 312 in pacpusframework for trunk/examples/ProducerConsumerExample


Ignore:
Timestamp:
Jul 28, 2014, 4:11:30 PM (10 years ago)
Author:
Marek Kurdej
Message:

ComponentBase: added addParameter.

Location:
trunk/examples/ProducerConsumerExample
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ProducerConsumerExample/ConsumerExample.cpp

    r293 r312  
    1717    LOG_TRACE("constructor(" << name << ")");
    1818
    19     addParameters()
    20         ("output-path", value<std::string>(&mOutputFileName)->default_value("consumer.txt"), "set output file path")
    21     ;
     19    addParameter("output-path", value<std::string>(&mOutputFileName)->default_value("consumer.txt"), "set output file path");
    2220}
    2321
  • trunk/examples/ProducerConsumerExample/ProducerExample.cpp

    r301 r312  
    2323    PACPUS_LOG_FUNCTION();
    2424
    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     ;
     25    addParameter("output-path", value<std::string>(&mOutputFileName)->default_value("producer.txt"), "set output file path");
    3026}
    3127
Note: See TracChangeset for help on using the changeset viewer.