source: pacpustutorials/solutions/project_exercises/plugin_exercise_1/component_fizzbuzz/FizzBuzz.h

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

update solutions of tutorials

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