// ********************************************************************* // created: 2014-02-11 - 16:51 // filename: DbtPlySickLDMRSManager.h // // author: Cyril Fougeray // Copyright Heudiasyc UMR UTC/CNRS 6599 // // version: $Id: $ // // purpose: // ********************************************************************* #ifndef DBTPLYSICKLDMRSMANAGER_H #define DBTPLYSICKLDMRSMANAGER_H #include #include "Pacpus/DbitePlayer/DbtPlyFileManager.h" #include #include "../Sick/SickLDMRSData.h" // Export macro for DbtPlySick DLL for Windows only #ifdef WIN32 # ifdef DBTPLYSICK_EXPORTS // make DLL # define DBTPLYSICK_API __declspec(dllexport) # else // use DLL # define DBTPLYSICK_API __declspec(dllimport) # endif #else // On other platforms, simply ignore this # define DBTPLYSICK_API #endif namespace pacpus { class ShMem; class DBTPLYSICK_API DbtPlySickLDMRSManager : public DbtPlyFileManager { public: DbtPlySickLDMRSManager(QString name); ~DbtPlySickLDMRSManager(); virtual void startActivity(); virtual void stopActivity(); virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); virtual void addInputs(); virtual void addOutputs(); protected: void processData(road_time_t t, road_timerange_t tr, void * buffer); void displayUI(); private: SickLDMRS_dbt mSickDbt; // .dbt file ("sickldmrs_0.dbt") std::ifstream mDataFile; // .utc data file ("sickldmrs_0_data.utc") QString mDataFilename; // local copy of each scan SickLDMRSScan mScan; // Declaration of outputs OutputInterface* outScan; }; } // namespace pacpus #endif