source: pacpustutorials/template/component_template/ComponentTemplate.h@ 12

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

update tutorials

File size: 1.5 KB
Line 
1// *********************************************************************
2//
3// created: 2015/09/18
4// filename: ComponentTemplate.h
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 header file
14//
15// *********************************************************************
16
17
18#ifndef __ComponentTemplate_h__
19#define __ComponentTemplate_h__
20
21#include "PluginTemplateConfig.h"
22
23#include <Pacpus/kernel/ComponentBase.h>
24#include <Pacpus/kernel/InputOutputInterface.h>
25#include <Pacpus/kernel/DbiteFile.h>
26
27namespace pacpus
28{
29
30 class PLUGINTEMPLATE_API ComponentTemplate
31 : public QObject
32 , public ComponentBase
33 {
34 Q_OBJECT
35
36 public:
37 // Specific constructor for pacpus component
38 ComponentTemplate(QString name);
39 ~ComponentTemplate();
40
41 // 3 inherited virtual pure methods
42 virtual void startActivity();
43 virtual void stopActivity();
44 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
45
46 virtual void addInputs();
47 virtual void addOutputs();
48
49 // void produceOutput();
50 // void processInput(const int& value);
51
52
53 private:
54 // Add here your private variables
55 unsigned long var_;
56 unsigned long parameter_;
57
58 // Declaration of an output
59 // OutputInterface<int, ComponentTemplate>* out1_;
60
61 }; // end class ComponentTemplate
62
63} // end namespace pacpus
64
65#endif
Note: See TracBrowser for help on using the repository browser.