source: pacpustutorials/template/component_template/ComponentTemplate.cpp@ 1

Last change on this file since 1 was 1, checked in by DHERBOMEZ Gérald, 9 years ago

add first tutorials exercises

File size: 2.0 KB
Line 
1// *********************************************************************
2//
3// created: 2015/09/18
4// filename: ComponentTemplate.cpp
5//
6// author: Gerald Dherbomez
7// Copyright Heudiasyc (c) UMR UTC/CNRS 7253
8//
9// license: CECILL-C
10//
11// version: $Id: $
12//
13// brief: Pacpus template component source file
14//
15// *********************************************************************
16
17#include "Pacpus/kernel/ComponentFactory.h"
18#include "Pacpus/kernel/DbiteFileTypes.h"
19
20#include "ComponentTemplate.h"
21
22using namespace pacpus;
23
24
25////////////////////////////////////////////////////////////////////////////////
26/// Construct the factory
27ComponentFactory<ComponentTemplate> sFactory("ComponentTemplate");
28
29
30
31/************************************************************************/
32/* Constructor
33/************************************************************************/
34ComponentTemplate::ComponentTemplate(QString name)
35 : ComponentBase(name)
36{
37
38}
39
40
41/************************************************************************/
42/* Destructor
43/************************************************************************/
44ComponentTemplate::~ComponentTemplate()
45{
46}
47
48/************************************************************************/
49/* Start function
50/************************************************************************/
51void ComponentTemplate::startActivity()
52{
53
54}
55
56
57
58/************************************************************************/
59/* Stop function
60/************************************************************************/
61void ComponentTemplate::stopActivity()
62{
63
64}
65
66
67
68/************************************************************************/
69/* Configuration of the component
70/************************************************************************/
71ComponentBase::COMPONENT_CONFIGURATION ComponentTemplate::configureComponent(XmlComponentConfig config)
72{
73
74 return ComponentBase::CONFIGURED_OK;
75}
76
Note: See TracBrowser for help on using the repository browser.