Changeset 61 in pacpusframework for trunk/include/Pacpus/DbitePlayer/DbtPlyFileManager.h
- Timestamp:
- 01/09/13 13:40:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/DbitePlayer/DbtPlyFileManager.h
r31 r61 41 41 42 42 public: 43 // constructor43 /// constructor 44 44 DbtPlyFileManager(QString name); 45 // destructor45 /// destructor 46 46 virtual ~DbtPlyFileManager(); 47 47 48 // the player replays only the last data that has not been yet replayed 48 /// the player replays only the last data that has not been yet replayed 49 /// @todo Rename 49 50 void playMode1 (road_time_t tDbt, bool reverse); 50 // the player replays all the data that have not been yet replayed 51 /// the player replays all the data that have not been yet replayed 52 /// @todo Rename 51 53 void playMode2 (road_time_t tDbt, bool reverse); 52 54 53 // virtual method: call when new DBT data are replayed55 /// virtual method: call when new DBT data are replayed 54 56 virtual void processData(road_time_t time, road_timerange_t timeRange, void * data) = 0; 55 57 virtual void displayUI(); 56 58 57 // 3 Virtual methods relative to the ComponentBase inheritance59 /// 3 Virtual methods relative to the ComponentBase inheritance 58 60 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); 61 /// @todo Documentation 59 62 virtual void startActivity(); 63 /// @todo Documentation 60 64 virtual void stopActivity(); 61 65 62 // The loop of the thread66 /// The loop of the thread 63 67 virtual void run(); 64 68 65 69 public Q_SLOTS: 66 // slot activated by the engine when it computes new DBT time70 /// slot activated by the engine when it computes new DBT time 67 71 void playData(road_time_t tDbt,road_time_t tNow, bool reverse); 68 72 69 // put the file descriptor to the beginning of the file73 /// put the file descriptor to the beginning of the file 70 74 void beginfile(); 71 75 72 76 Q_SIGNALS: 73 // signal sent to the engine to provide to it the tmin and tmax of the file77 /// signal sent to the engine to provide to it the tmin and tmax of the file 74 78 void tMinMaxIs(road_time_t tmin, road_time_t tmax); 75 79 … … 78 82 int mVerbose; 79 83 80 // a pointer on the player engine84 /// a pointer on the player engine 81 85 DbtPlyEngine * mEngine; 82 86 83 // the absolute path of the DBT file87 /// the absolute path of the DBT file 84 88 QString dbtProperty_; 85 89 QStringList mDbtFilenameList; 86 90 87 // The directory where the DBT file is located91 /// The directory where the DBT file is located 88 92 QString mDbtDataPath; 89 93 90 // Display or not the graphical interface94 /// Display or not the graphical interface 91 95 bool mShowGui; 92 96 97 /// @todo Documentation 93 98 struct dbtStruct 94 99 { … … 98 103 }; 99 104 105 /// @todo Documentation 100 106 struct dbtStructFile 101 107 { … … 112 118 113 119 private: 120 /// @todo Documentation 114 121 bool processDbtFileHdfile(dbtStructFile & dbtFile, pacpus::DbiteFile::ReadDirection direction); 115 122 … … 118 125 bool reverse_; 119 126 120 // the estimated DBT time sent by the engine and computed relatively to the state of the player127 /// the estimated DBT time sent by the engine and computed relatively to the state of the player 121 128 road_time_t timeToRead_; 122 129 123 // The mode of replay124 // see playModeN method130 /// The mode of replay 131 /// @see playMode1, playMode2 methods 125 132 int mode_; 126 133 127 // The minimum and maximum time of the data contained in the file134 /// The minimum and maximum time of the data contained in the file 128 135 road_time_t tMin_, tMax_; 129 136 130 // the synchronization semaphore with the engine137 /// the synchronization semaphore with the engine 131 138 QSemaphore * sync_; 132 139 133 // For statistics purpose - delta time between the instant when the tDbt is computed and the instant when it is134 // taken into account by the file manager140 /// For statistics purpose - delta time between the instant when the tDbt is computed and the instant when it is 141 /// taken into account by the file manager 135 142 int deltaTDbtTab_[1000]; 136 143 int deltaTDbtTabLoop_;
Note:
See TracChangeset
for help on using the changeset viewer.