Changeset 9 in pacpustutorials for template/component_template/ComponentTemplate.h
- Timestamp:
- 10/12/15 10:50:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
template/component_template/ComponentTemplate.h
r4 r9 21 21 #include "PluginTemplateConfig.h" 22 22 23 #include "Pacpus/kernel/ComponentBase.h" 24 #include "Pacpus/kernel/DbiteFile.h" 23 #include <Pacpus/kernel/ComponentBase.h> 24 #include <Pacpus/kernel/InputOutputInterface.h> 25 #include <Pacpus/kernel/DbiteFile.h> 25 26 26 namespace pacpus { 27 namespace pacpus 28 { 27 29 28 class PLUGINTEMPLATE_API ComponentTemplate 29 : public ComponentBase 30 { 31 Q_OBJECT 30 class PLUGINTEMPLATE_API ComponentTemplate 31 : public QObject 32 , public ComponentBase 33 { 34 Q_OBJECT 32 35 33 public:34 // Specific constructor for pacpus component35 ComponentTemplate(QString name);36 ~ComponentTemplate();36 public: 37 // Specific constructor for pacpus component 38 ComponentTemplate(QString name); 39 ~ComponentTemplate(); 37 40 38 // 3 inherited virtual pure methods 39 virtual void startActivity(); 40 virtual void stopActivity(); 41 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 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); 42 51 43 52 44 private: 45 // Add here your private variables 46 unsigned long var_; 47 unsigned long parameter_; 48 49 }; // end class ComponentTemplate 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 50 62 51 63 } // end namespace pacpus 52 64 53 #endif //__ComponentTemplate_h__65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.