source: pacpussensors/trunk/ExampleComponent/ExampleComponent.cpp@ 12

Last change on this file since 12 was 12, checked in by morasjul, 11 years ago

[script] NewComponent.bat.

File size: 1.2 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 "${<PROJECT_NAME>}.h"
7
8using namespace pacpus;
9using namespace std;
10
11DECLARE_STATIC_LOGGER("pacpus.base.${<PROJECT_NAME>}");
12
13/// Constructs a static component factory
14static ComponentFactory<${<PROJECT_NAME>}> sFactory("${<PROJECT_NAME>}");
15
16//////////////////////////////////////////////////////////////////////////
17${<PROJECT_NAME>}::${<PROJECT_NAME>}(QString name)
18 : ComponentBase(name)
19{
20 LOG_TRACE("constructor(" << name << ")");
21}
22
23//////////////////////////////////////////////////////////////////////////
24${<PROJECT_NAME>}::~${<PROJECT_NAME>}()
25{
26 LOG_TRACE("destructor");
27}
28
29//////////////////////////////////////////////////////////////////////////
30void ${<PROJECT_NAME>}::startActivity()
31{
32}
33
34//////////////////////////////////////////////////////////////////////////
35void ${<PROJECT_NAME>}::stopActivity()
36{
37}
38
39//////////////////////////////////////////////////////////////////////////
40ComponentBase::COMPONENT_CONFIGURATION ${<PROJECT_NAME>}::configureComponent(XmlComponentConfig config)
41{
42 return ComponentBase::CONFIGURED_OK;
43}
44
Note: See TracBrowser for help on using the repository browser.