|
Last change
on this file since 120 was 2, checked in by DHERBOMEZ Gérald, 12 years ago |
|
correction of minor bugs (include and link). Build on Windows OK.
|
|
File size:
1.5 KB
|
| Rev | Line | |
|---|
| [1] | 1 | /*********************************************************************
|
|---|
| 2 | // created: 2011/04/26
|
|---|
| 3 | // filename: DbtRawCanReader.h
|
|---|
| 4 | //
|
|---|
| 5 | // author: Gerald Dherbomez
|
|---|
| 6 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
|---|
| 7 | //
|
|---|
| 8 | // version: $Id: $
|
|---|
| 9 | //
|
|---|
| 10 | // purpose:
|
|---|
| 11 | *********************************************************************/
|
|---|
| 12 |
|
|---|
| 13 | #ifndef __DbtRawCanReader_H__
|
|---|
| 14 | #define __DbtRawCanReader_H__
|
|---|
| 15 |
|
|---|
| 16 | #include <QThread>
|
|---|
| 17 |
|
|---|
| [2] | 18 | #include "Pacpus/kernel/ComponentBase.h"
|
|---|
| 19 | #include "Pacpus/kernel/DbiteFile.h"
|
|---|
| [1] | 20 |
|
|---|
| 21 | using namespace pacpus;
|
|---|
| 22 |
|
|---|
| 23 | #include "CanSubscription.h"
|
|---|
| 24 |
|
|---|
| 25 | // Export macro for DummyPacpusComponent DLL for Windows only
|
|---|
| 26 | #ifdef WIN32
|
|---|
| 27 | # ifdef DBTRAWCANREADER_EXPORTS
|
|---|
| 28 | // make DLL
|
|---|
| 29 | # define DBTRAWCANREADER_API __declspec(dllexport)
|
|---|
| 30 | # else
|
|---|
| 31 | // use DLL
|
|---|
| 32 | # define DBTRAWCANREADER_API __declspec(dllimport)
|
|---|
| 33 | # endif
|
|---|
| 34 | #else
|
|---|
| 35 | // On other platforms, simply ignore this
|
|---|
| 36 | # define DBTRAWCANREADER_API
|
|---|
| 37 | #endif
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 | namespace pacpus {
|
|---|
| 41 |
|
|---|
| 42 | class DBTRAWCANREADER_API DbtRawCanReader
|
|---|
| 43 | : public QThread
|
|---|
| 44 | , public ComponentBase
|
|---|
| 45 | , public CanSubscription
|
|---|
| 46 | {
|
|---|
| 47 | Q_OBJECT
|
|---|
| 48 |
|
|---|
| 49 | public:
|
|---|
| 50 | DbtRawCanReader(QString name);
|
|---|
| 51 | ~DbtRawCanReader();
|
|---|
| 52 |
|
|---|
| 53 | protected:
|
|---|
| 54 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
|---|
| 55 | virtual void startActivity();
|
|---|
| 56 | virtual void stopActivity();
|
|---|
| 57 |
|
|---|
| 58 | void run();
|
|---|
| 59 |
|
|---|
| 60 | private:
|
|---|
| 61 | QString dbtFileName_;
|
|---|
| 62 | pacpus::DbiteFile dbtFile_;
|
|---|
| 63 |
|
|---|
| 64 | };
|
|---|
| 65 |
|
|---|
| 66 | }
|
|---|
| 67 |
|
|---|
| 68 | #endif // DbtRawCanReader_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.