|
Last change
on this file since 183 was 176, checked in by Marek Kurdej, 12 years ago |
|
Added: addParameters() method in ComponentBase using Boost.Program_Options.
Each component can declare its parameters and they will be read automatically before configureComponent() method.
See example ProducerConsumerExample constructors.
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [163] | 1 | /**
|
|---|
| 2 | @file
|
|---|
| 3 | Purpose: Lidar Detection
|
|---|
| 4 |
|
|---|
| 5 | @date created 2010-06-03 16:13
|
|---|
| 6 | @author Julien Moras
|
|---|
| 7 | @version $Id: $
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef PRODUCEREXAMPLE_H
|
|---|
| 11 | #define PRODUCEREXAMPLE_H
|
|---|
| 12 |
|
|---|
| 13 | #include "ProducerConsumerExampleConfig.h"
|
|---|
| 14 |
|
|---|
| 15 | #include <Pacpus/kernel/ComponentBase.h>
|
|---|
| 16 | #include <Pacpus/kernel/road_time.h>
|
|---|
| 17 | //#include <Pacpus/structure/genericStructures.h>
|
|---|
| 18 | #include <QThread>
|
|---|
| 19 | #include <QImage>
|
|---|
| 20 |
|
|---|
| 21 | namespace pacpus {
|
|---|
| 22 |
|
|---|
| 23 | class PRODUCERCONSUMEREXAMPLE_API ProducerExample
|
|---|
| 24 | : public QThread
|
|---|
| 25 | , public ComponentBase
|
|---|
| 26 | {
|
|---|
| 27 | Q_OBJECT
|
|---|
| 28 |
|
|---|
| 29 | public:
|
|---|
| 30 | static const char * COMPONENT_TYPE;
|
|---|
| 31 |
|
|---|
| 32 | ProducerExample(QString name);
|
|---|
| 33 | ~ProducerExample();
|
|---|
| 34 |
|
|---|
| 35 | virtual void addInputs();
|
|---|
| 36 | virtual void addOutputs();
|
|---|
| 37 |
|
|---|
| 38 | virtual void startActivity();
|
|---|
| 39 | virtual void stopActivity();
|
|---|
| 40 |
|
|---|
| 41 | virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
|---|
| 42 |
|
|---|
| 43 | protected:
|
|---|
| 44 | void run();
|
|---|
| 45 |
|
|---|
| 46 | public Q_SLOTS:
|
|---|
| 47 |
|
|---|
| 48 | private:
|
|---|
| [176] | 49 | std::string mOutputFileName;
|
|---|
| [163] | 50 | //QThread thread;
|
|---|
| 51 | };
|
|---|
| 52 |
|
|---|
| 53 | } // namespace pacpus
|
|---|
| 54 |
|
|---|
| 55 | #endif // PRODUCEREXAMPLE_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.