source: pacpusframework/trunk/src/_NewComponent/NewComponent.cpp.in@ 192

Last change on this file since 192 was 192, checked in by Marek Kurdej, 11 years ago

Minor: NewComponent modifications.

File size: 1.7 KB
Line 
1// %pacpus:license{
2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
4// %pacpus:license}
5
6#include "@PACPUS_COMPONENT_NAME@.h"
7
8#include <Pacpus/kernel/ComponentFactory.h>
9#include <Pacpus/kernel/Log.h>
10
11using namespace pacpus;
12using namespace std;
13
14DECLARE_STATIC_LOGGER("pacpus.base.@PACPUS_COMPONENT_NAME@");
15
16/// Constructs a static component factory
17static ComponentFactory<@PACPUS_COMPONENT_NAME@> sFactory("@PACPUS_COMPONENT_NAME@");
18
19static const int kDefaultVerboseLevel = 1;
20
21//////////////////////////////////////////////////////////////////////////
22@PACPUS_COMPONENT_NAME@::@PACPUS_COMPONENT_NAME@(QString name)
23 : ComponentBase(name)
24{
25 LOG_TRACE("constructor(" << name << ")");
26
27 namespace po = boost::program_options;
28 //addParameters()
29 //("parameter-name", po::value<ParameterType>(&mParameterVariable)->required(), "parameter description")
30 //("parameter-name", po::value<ParameterType>(&mParameterVariable)->default_value(0), "parameter description")
31 //;
32}
33
34//////////////////////////////////////////////////////////////////////////
35@PACPUS_COMPONENT_NAME@::~@PACPUS_COMPONENT_NAME@()
36{
37 LOG_TRACE("destructor");
38}
39
40//////////////////////////////////////////////////////////////////////////
41void @PACPUS_COMPONENT_NAME@::startActivity()
42{
43}
44
45//////////////////////////////////////////////////////////////////////////
46void @PACPUS_COMPONENT_NAME@::stopActivity()
47{
48}
49
50//////////////////////////////////////////////////////////////////////////
51ComponentBase::COMPONENT_CONFIGURATION @PACPUS_COMPONENT_NAME@::configureComponent(XmlComponentConfig config)
52{
53 return ComponentBase::CONFIGURED_OK;
54}
Note: See TracBrowser for help on using the repository browser.