Rev | Line | |
---|
[1] | 1 | /*********************************************************************
|
---|
| 2 | // created: 2012/06/24
|
---|
| 3 | // filename: CanDecoderBase.h
|
---|
| 4 | //
|
---|
| 5 | // author: Gerald Dherbomez
|
---|
| 6 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 7 | //
|
---|
| 8 | // version: $Id: $
|
---|
| 9 | //
|
---|
| 10 | // purpose: Abstract class to interface with CanGateway.
|
---|
| 11 | //
|
---|
| 12 | *********************************************************************/
|
---|
| 13 |
|
---|
| 14 | #pragma once
|
---|
| 15 | #ifndef CANDECODERBASE
|
---|
| 16 | #define CANDECODERBASE
|
---|
| 17 |
|
---|
| 18 | #include "CanGatewayConfig.h"
|
---|
[2] | 19 | #include "Pacpus/kernel/ComponentBase.h"
|
---|
| 20 | #include "CanFrame.h"
|
---|
[4] | 21 | #include "structureCan.h"
|
---|
[1] | 22 |
|
---|
| 23 | namespace pacpus {
|
---|
| 24 |
|
---|
| 25 | class CANGATEWAY_API CanDecoderBase : public ComponentBase
|
---|
| 26 | {
|
---|
| 27 | public:
|
---|
| 28 | CanDecoderBase(QString name);
|
---|
| 29 | virtual ~CanDecoderBase();
|
---|
| 30 |
|
---|
| 31 | virtual void startActivity();
|
---|
| 32 | virtual void stopActivity();
|
---|
| 33 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
| 34 |
|
---|
| 35 | void setData(TimestampedCanFrame d) { d_ = d; process(); }
|
---|
| 36 |
|
---|
| 37 | protected:
|
---|
| 38 | TimestampedCanFrame d_;
|
---|
| 39 | virtual void process() = 0;
|
---|
| 40 |
|
---|
| 41 | private:
|
---|
| 42 | //CanGateway * gateway_;
|
---|
| 43 | };
|
---|
| 44 |
|
---|
| 45 | } // namespace pacpus
|
---|
| 46 |
|
---|
| 47 | #endif // CANDECODERBASE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.