Changeset 176 in pacpusframework for trunk/src/PacpusLib/ComponentManager.cpp


Ignore:
Timestamp:
Oct 11, 2013, 2:10:06 PM (11 years ago)
Author:
Marek Kurdej
Message:

Added: addParameters() method in ComponentBase using Boost.Program_Options.
Each component can declare its parameters and they will be read automatically before configureComponent() method.
See example ProducerConsumerExample constructors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusLib/ComponentManager.cpp

    r162 r176  
    255255        } else {
    256256            component->param.localCopy(cfg.qDomElement());
     257            component->parseParameters(cfg);
    257258            component->setConfigurationState(component->configureComponent(cfg));
    258259        }
Note: See TracChangeset for help on using the changeset viewer.