MOOS 0.2375
|
00001 #ifndef _indexReader_h_ 00002 #define _indexReader_h_ 00003 00004 #include "recordTypes.h" 00005 00006 #include <vector> 00007 #include <string> 00008 00009 class indexReader 00010 { 00011 public: 00012 indexReader(); 00013 ~indexReader(); 00014 00015 void clear(); 00016 00017 void ReadIndexFile( std::string alogIndexFilename ); 00018 00019 const aloglib::idxRec& GetLineRecord( unsigned int lineNum ) const; 00020 void GetMsgTypes(std::vector<std::string> & msgTypes); 00021 00022 double GetTime( int i ) const; 00023 double GetStartTime() const; 00024 int GetNumRecords() const; 00025 const aloglib::idxMsgList& GetMsgList() const; 00026 const aloglib::idxSrcList& GetSrcList() const; 00027 const std::vector<aloglib::idxRec>& GetRecordList() const; 00028 00029 private: 00030 aloglib::idxHeader m_alogHeader; 00031 aloglib::idxMsgList m_alogMsgList; 00032 aloglib::idxSrcList m_alogSrcList; 00033 std::vector<aloglib::idxRec> m_alogRecords; 00034 00035 }; 00036 00037 #endif // _indexReader_h_ 00038