| 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 - 2013. 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 <QObject>
 | 
|---|
| 23 | 
 | 
|---|
| 24 | namespace pacpus {
 | 
|---|
| 25 | 
 | 
|---|
| 26 | class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@
 | 
|---|
| 27 |     : public QObject
 | 
|---|
| 28 |     , public ComponentBase // must be after QObject
 | 
|---|
| 29 | {
 | 
|---|
| 30 |     Q_OBJECT
 | 
|---|
| 31 | 
 | 
|---|
| 32 | public:
 | 
|---|
| 33 |     @PACPUS_COMPONENT_NAME@(QString name);
 | 
|---|
| 34 |     ~@PACPUS_COMPONENT_NAME@();
 | 
|---|
| 35 | 
 | 
|---|
| 36 |     /// Starts the component
 | 
|---|
| 37 |     virtual void startActivity() /* override */;
 | 
|---|
| 38 |     /// Stops the component
 | 
|---|
| 39 |     virtual void stopActivity() /* override */;
 | 
|---|
| 40 |     /// Configures components
 | 
|---|
| 41 |     virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config) /* override */;
 | 
|---|
| 42 | 
 | 
|---|
| 43 | //public Q_SLOTS:
 | 
|---|
| 44 | protected:
 | 
|---|
| 45 |     /// Adds component inputs
 | 
|---|
| 46 |     virtual void addInputs() /* override */;
 | 
|---|
| 47 |     /// Adds component outputs
 | 
|---|
| 48 |     virtual void addOutputs() /* override */;
 | 
|---|
| 49 |     
 | 
|---|
| 50 | private:
 | 
|---|
| 51 |     //void processInput(const InputType & input);
 | 
|---|
| 52 | 
 | 
|---|
| 53 | private:
 | 
|---|
| 54 | };
 | 
|---|
| 55 | 
 | 
|---|
| 56 | } // namespace pacpus
 | 
|---|
| 57 | 
 | 
|---|
| 58 | #endif // @PACPUS_COMPONENT_NAME_CAPS@_H
 | 
|---|
| 59 | 
 | 
|---|