MOOS 0.2375
/home/toby/moos-ivp/MOOS-2375-Oct0611/Tools/Graphical/uIndexedPlayBack/ALogIndexWrapper.h
Go to the documentation of this file.
00001 #ifndef _ALogIndexWrapper_h_
00002 #define _ALogIndexWrapper_h_
00003 
00004 #include <alogTools/indexedAlogReader.h>
00005 
00006 // wraps indexed alog reader so that uPlayBack can use this new
00007 // indexed class without any modifications
00008 
00009 class ALogIndexWrapper
00010 {
00011     public:
00012 
00013         bool m_bInitialized;
00014         int m_nLineCount;
00015         indexedAlogReader m_ALog;
00016         std::string m_sFileName;
00017 
00018         ALogIndexWrapper();
00019         ~ALogIndexWrapper();
00020         bool Open(const std::string & sfName);
00021         std::string GetFileName();
00022         bool IsOpen();
00023         void Close();
00024         std::string GetLine(int nLine);
00025         bool GetNextToken(const std::string & s,int & nPos,std::string & sTk);
00026         int GetLineCount();
00027         int SeekToFindTime(double dfT);
00028         double GetEntryTime(int i);
00029         double GetStartTime();
00030         const std::set<std::string>& GetSourceNames();
00031 };
00032 
00033 #endif // _ALogIndexWrapper_h_
00034 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines