source: pacpussensors/trunk/StdDbtPlayerComponents/DbtPlySickLMSManager.h@ 104

Last change on this file since 104 was 99, checked in by nguyenhu, 9 years ago

compilation under linux with 0.2.X framework

File size: 1.5 KB
Line 
1// *********************************************************************
2// created: 2014-02-11 - 16:51
3// filename: DbtPlySickLMSManager.h
4//
5// author: Cyril Fougeray
6// Copyright Heudiasyc UMR UTC/CNRS 6599
7//
8// version: $Id: $
9//
10// purpose:
11// *********************************************************************
12
13#ifndef DBTPLYSICKLMSMANAGER_H
14#define DBTPLYSICKLMSMANAGER_H
15
16#include <fstream>
17
18#include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
19#include "../Sick/SickLMSData.h"
20
21// Export macro for DbtPlySick DLL for Windows only
22#ifdef WIN32
23# ifdef DBTPLYSICK_EXPORTS
24 // make DLL
25# define DBTPLYSICK_API __declspec(dllexport)
26# else
27 // use DLL
28# define DBTPLYSICK_API __declspec(dllimport)
29# endif
30#else
31 // On other platforms, simply ignore this
32# define DBTPLYSICK_API
33#endif
34
35namespace pacpus {
36
37class ShMem;
38
39class DBTPLYSICK_API DbtPlySickLMSManager
40 : public DbtPlyFileManager
41{
42public:
43 DbtPlySickLMSManager(QString name);
44 ~DbtPlySickLMSManager();
45
46protected:
47 void processData(road_time_t t, road_timerange_t tr, void * buffer);
48 void displayUI();
49
50 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
51 virtual void startActivity();
52 virtual void stopActivity();
53
54private:
55 // ShMem * mShMem;
56 SickLMS_dbt mSickDbt;
57
58 std::ifstream mDataFile;
59 QString mDataFilename;
60
61 QStringList mDataFilenameList;
62};
63
64} // namespace pacpus
65
66#endif
Note: See TracBrowser for help on using the repository browser.