[65] | 1 | // *********************************************************************
|
---|
| 2 | // created: 2007/11/13 - 16:51
|
---|
| 3 | // filename: DbtPlyAlascaManager.h
|
---|
| 4 | //
|
---|
| 5 | // author: Gerald Dherbomez
|
---|
| 6 | // Copyright Heudiasyc UMR UTC/CNRS 6599
|
---|
| 7 | //
|
---|
| 8 | // version: $Id: $
|
---|
| 9 | //
|
---|
| 10 | // purpose:
|
---|
| 11 | // *********************************************************************
|
---|
| 12 |
|
---|
| 13 | #ifndef DBTPLYALASCAMANAGER_H
|
---|
| 14 | #define DBTPLYALASCAMANAGER_H
|
---|
| 15 |
|
---|
| 16 | #include <fstream>
|
---|
| 17 |
|
---|
| 18 | #include "DbitePlayer/DbtPlyFileManager.h"
|
---|
| 19 | #include "structure/structure_telemetre.h"
|
---|
| 20 |
|
---|
| 21 | // Export macro for DbtPlyAlasca DLL for Windows only
|
---|
| 22 | #ifdef WIN32
|
---|
| 23 | # ifdef DBTPLYALASCA_EXPORTS
|
---|
| 24 | // make DLL
|
---|
| 25 | # define DBTPLYALASCA_API __declspec(dllexport)
|
---|
| 26 | # else
|
---|
| 27 | // use DLL
|
---|
| 28 | # define DBTPLYALASCA_API __declspec(dllimport)
|
---|
| 29 | # endif
|
---|
| 30 | #else
|
---|
| 31 | // On other platforms, simply ignore this
|
---|
| 32 | # define DBTPLYALASCA_API
|
---|
| 33 | #endif
|
---|
| 34 |
|
---|
| 35 | namespace pacpus {
|
---|
| 36 |
|
---|
| 37 | class ShMem;
|
---|
| 38 |
|
---|
| 39 | class DBTPLYALASCA_API DbtPlyAlascaManager
|
---|
| 40 | : public DbtPlyFileManager
|
---|
| 41 | {
|
---|
| 42 | public:
|
---|
| 43 | DbtPlyAlascaManager(QString name);
|
---|
| 44 | ~DbtPlyAlascaManager();
|
---|
| 45 |
|
---|
| 46 | protected:
|
---|
| 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 |
|
---|
| 54 | private:
|
---|
| 55 | ShMem * mShMem;
|
---|
| 56 | ScanAlascaData mAlascaData;
|
---|
| 57 |
|
---|
| 58 | std::ifstream mDataFile;
|
---|
| 59 | QString mDataFilename;
|
---|
| 60 | };
|
---|
| 61 |
|
---|
| 62 | } // namespace pacpus
|
---|
| 63 |
|
---|
| 64 | #endif // DBTPLYALASCAMANAGER_H
|
---|