60 public:
void Open(
const std::string &_logFile);
64 public:
bool IsOpen()
const;
69 public: std::string GetLogVersion()
const;
74 public: std::string GetGazeboVersion()
const;
79 public: uint32_t GetRandSeed()
const;
83 public:
bool Step(std::string &_data);
87 public:
unsigned int GetChunkCount()
const;
93 public:
bool GetChunk(
unsigned int _index, std::string &_data);
99 public: std::string GetEncoding()
const;
110 private:
bool GetChunkData(TiXmlElement *_xml, std::string &_data);
113 private:
void ReadHeader();
116 private: TiXmlDocument xmlDoc;
119 private: TiXmlElement *logStartXml;
122 private: TiXmlElement *logCurrXml;
125 private: std::string filename;
129 private: std::string logVersion;
132 private: std::string gazeboVersion;
135 private: uint32_t randSeed;
138 private: std::string encoding;
140 private: std::string currentChunk;
GAZEBO_VISIBLE msgs::Header * GetHeader(google::protobuf::Message &_message)
Get the header from a protobuf message.
Singleton template class.
Definition: SingletonT.hh:33
Definition: LogPlay.hh:47
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48