Changeset 216 in pacpusframework for trunk/src/_NewComponent/NewComponent.cpp.in


Ignore:
Timestamp:
Nov 8, 2013, 12:20:22 PM (11 years ago)
Author:
Marek Kurdej
Message:

Modified: NewComponent: using pimpl to separate interface from implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/_NewComponent/NewComponent.cpp.in

    r194 r216  
    55
    66#include "@PACPUS_COMPONENT_NAME@.h"
     7#include "@PACPUS_COMPONENT_NAME@Impl.h"
    78
    89#include <Pacpus/kernel/ComponentFactory.h>
     
    1213using namespace std;
    1314
    14 DECLARE_STATIC_LOGGER("pacpus.base.@PACPUS_COMPONENT_NAME@");
     15DECLARE_STATIC_LOGGER("pacpus.@PACPUS_COMPONENT_NAME@");
    1516
    1617/// Constructs a static component factory
    1718static ComponentFactory<@PACPUS_COMPONENT_NAME@> sFactory("@PACPUS_COMPONENT_NAME@");
    18 
    19 static const int kDefaultVerboseLevel = 1;
    2019
    2120//////////////////////////////////////////////////////////////////////////
     
    2524    LOG_TRACE("constructor(" << name << ")");
    2625   
    27     namespace po = boost::program_options;
    2826    //addParameters()
    29     //("parameter-name", po::value<ParameterType>(&mParameterVariable)->required(), "parameter description")
    30     //("parameter-name", po::value<ParameterType>(&mParameterVariable)->default_value(0), "parameter description")
     27    //("parameter-name", value<ParameterType>(&mImpl->mParameterVariable)->required(), "parameter description")
     28    //("parameter-name", value<ParameterType>(&mImpl->mParameterVariable)->default_value(0), "parameter description")
    3129    //;
    3230}
     
    5351void @PACPUS_COMPONENT_NAME@::startActivity()
    5452{
     53    mImpl->start();
    5554}
    5655
    5756void @PACPUS_COMPONENT_NAME@::stopActivity()
    5857{
     58    mImpl->stop();
    5959}
    6060
     
    6464    return ComponentBase::CONFIGURED_OK;
    6565}
     66
     67//////////////////////////////////////////////////////////////////////////
     68//void @PACPUS_COMPONENT_NAME@::processInput(InputType const& input)
     69//{
     70//    mImpl->processInput(input);
     71//}
Note: See TracChangeset for help on using the changeset viewer.