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

Last change on this file since 2 was 2, checked in by DHERBOMEZ Gérald, 11 years ago

correction of minor bugs (include and link). Build on Windows OK.

File size: 1.1 KB
Line 
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"
19#include "Pacpus/kernel/ComponentBase.h"
20#include "CanFrame.h"
21
22namespace pacpus {
23
24class CANGATEWAY_API CanDecoderBase : public ComponentBase
25{
26public:
27 CanDecoderBase(QString name);
28 virtual ~CanDecoderBase();
29
30 virtual void startActivity();
31 virtual void stopActivity();
32 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
33
34 void setData(TimestampedCanFrame d) { d_ = d; process(); }
35
36protected:
37 TimestampedCanFrame d_;
38 virtual void process() = 0;
39
40private:
41 //CanGateway * gateway_;
42};
43
44} // namespace pacpus
45
46#endif // CANDECODERBASE
Note: See TracBrowser for help on using the repository browser.