source: pacpussensors/trunk/CanGateway/CanDecoderBase.h@ 19

Last change on this file since 19 was 4, checked in by guyardro, 11 years ago

add igep can driver for CanGateway and add support for igep compilation

File size: 1.1 KB
RevLine 
[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
23namespace pacpus {
24
25class CANGATEWAY_API CanDecoderBase : public ComponentBase
26{
27public:
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
37protected:
38 TimestampedCanFrame d_;
39 virtual void process() = 0;
40
41private:
42 //CanGateway * gateway_;
43};
44
45} // namespace pacpus
46
47#endif // CANDECODERBASE
Note: See TracBrowser for help on using the repository browser.