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

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

Updated I/O for Sick LDMRS

File size: 1.8 KB
RevLine 
[43]1// *********************************************************************
2// created: 2014-02-11 - 16:51
3// filename: DbtPlySickLDMRSManager.h
4//
5// author: Cyril Fougeray
6// Copyright Heudiasyc UMR UTC/CNRS 6599
[99]7//
[43]8// version: $Id: $
9//
[99]10// purpose:
[43]11// *********************************************************************
12
13#ifndef DBTPLYSICKLDMRSMANAGER_H
14#define DBTPLYSICKLDMRSMANAGER_H
15
16#include <fstream>
17
[50]18#include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
[104]19#include <Pacpus/kernel/InputOutputInterface.h>
[43]20#include "../Sick/SickLDMRSData.h"
21
22// Export macro for DbtPlySick DLL for Windows only
23#ifdef WIN32
24# ifdef DBTPLYSICK_EXPORTS
25 // make DLL
26# define DBTPLYSICK_API __declspec(dllexport)
27# else
28 // use DLL
29# define DBTPLYSICK_API __declspec(dllimport)
30# endif
31#else
[99]32 // On other platforms, simply ignore this
33# define DBTPLYSICK_API
[43]34#endif
35
36namespace pacpus {
[99]37
[43]38class ShMem;
39
40class DBTPLYSICK_API DbtPlySickLDMRSManager
41 : public DbtPlyFileManager
42{
43public:
44 DbtPlySickLDMRSManager(QString name);
45 ~DbtPlySickLDMRSManager();
46
[104]47 virtual void startActivity();
48 virtual void stopActivity();
49 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
50
51 virtual void addInputs();
52 virtual void addOutputs();
53
[43]54protected:
55 void processData(road_time_t t, road_timerange_t tr, void * buffer);
56 void displayUI();
57
58private:
59 SickLDMRS_dbt mSickDbt;
60
[104]61 // .dbt file ("sickldmrs_0.dbt")
[43]62 std::ifstream mDataFile;
[104]63 // .utc data file ("sickldmrs_0_data.utc")
[43]64 QString mDataFilename;
65
[104]66 // local copy of each scan
67 SickLDMRSScan mScan;
68
69 // Declaration of outputs
70 OutputInterface<SickLDMRSScan, DbtPlySickLDMRSManager>* outScan;
[43]71};
72
73} // namespace pacpus
74
[99]75#endif
Note: See TracBrowser for help on using the repository browser.