source: pacpusframework/trunk/src/_NewComponent/NewComponent.h.in

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

Minor: 2013 -> 2014 in licenses.

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/// @file
6/// @date created @CURRENT_DATETIME@
7/// @author @USERNAME@ <firstname.surname@utc.fr>
8/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2014. All rights reserved.
9/// @version $Id: $
10///
11/// @todo Brief description of @PACPUS_COMPONENT_NAME@.h.
12///
13/// @todo Detailed description of @PACPUS_COMPONENT_NAME@.h.
14
15#ifndef @PACPUS_COMPONENT_NAME_CAPS@_H
16#define @PACPUS_COMPONENT_NAME_CAPS@_H
17
18#include "@PACPUS_COMPONENT_NAME@Config.h"
19
20#include <Pacpus/kernel/ComponentBase.h>
21
22#include <boost/scoped_ptr.hpp>
23#include <QObject>
24
25namespace pacpus
26{
27
28class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@
29 : public QObject
30 , public ComponentBase // must be after QObject
31{
32 Q_OBJECT
33
34public:
35 @PACPUS_COMPONENT_NAME@(QString name);
36 ~@PACPUS_COMPONENT_NAME@();
37
38 /// Starts the component
39 virtual void startActivity() /* override */;
40 /// Stops the component
41 virtual void stopActivity() /* override */;
42 /// Configures components
43 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config) /* override */;
44
45//public Q_SLOTS:
46protected:
47 /// Adds component inputs
48 virtual void addInputs() /* override */;
49 /// Adds component outputs
50 virtual void addOutputs() /* override */;
51
52private:
53 //void processInput(InputType const& input);
54
55private:
56 class Impl;
57 boost::scoped_ptr<Impl> mImpl;
58};
59
60} // namespace pacpus
61
62#endif // @PACPUS_COMPONENT_NAME_CAPS@_H
Note: See TracBrowser for help on using the repository browser.