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

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

Minor: 2013 -> 2014 in licenses.

File size: 1.7 KB
RevLine 
[147]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>
[282]8/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2014. All rights reserved.
[147]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
[194]18#include "@PACPUS_COMPONENT_NAME@Config.h"
19
[147]20#include <Pacpus/kernel/ComponentBase.h>
21
[216]22#include <boost/scoped_ptr.hpp>
[194]23#include <QObject>
[147]24
[216]25namespace pacpus
26{
[147]27
28class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@
[194]29 : public QObject
30 , public ComponentBase // must be after QObject
[147]31{
[194]32 Q_OBJECT
[147]33
34public:
35 @PACPUS_COMPONENT_NAME@(QString name);
36 ~@PACPUS_COMPONENT_NAME@();
37
38 /// Starts the component
[193]39 virtual void startActivity() /* override */;
[147]40 /// Stops the component
[193]41 virtual void stopActivity() /* override */;
[147]42 /// Configures components
[193]43 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config) /* override */;
[147]44
45//public Q_SLOTS:
46protected:
[193]47 /// Adds component inputs
48 virtual void addInputs() /* override */;
49 /// Adds component outputs
50 virtual void addOutputs() /* override */;
51
[147]52private:
[216]53 //void processInput(InputType const& input);
[193]54
55private:
[219]56 class Impl;
[216]57 boost::scoped_ptr<Impl> mImpl;
[147]58};
59
60} // namespace pacpus
61
62#endif // @PACPUS_COMPONENT_NAME_CAPS@_H
Note: See TracBrowser for help on using the repository browser.