17 #ifndef _GAZEBO_UTIL_LOGPLAY_HH_ 18 #define _GAZEBO_UTIL_LOGPLAY_HH_ 61 public:
void Open(
const std::string &_logFile);
65 public:
bool IsOpen()
const;
70 public: std::string LogVersion()
const;
75 public: std::string GazeboVersion()
const;
80 public: uint32_t RandSeed()
const;
92 public: std::string Filename()
const;
96 public: std::string FullPathFilename()
const;
100 public: uintmax_t FileSize()
const;
104 public:
bool Step(std::string &_data);
108 public:
bool StepBack(std::string &_data);
113 public:
bool Step(
const int _step, std::string &_data);
124 public:
bool Rewind();
128 public:
bool Forward();
132 public:
unsigned int ChunkCount()
const;
138 public:
bool Chunk(
const unsigned int _index, std::string &_data)
const;
144 public: std::string Encoding()
const;
149 public: std::string Header()
const;
153 public: uint64_t InitialIterations()
const;
159 public:
bool HasIterations()
const;
162 private:
void ReadHeader();
166 private:
void ReadLogTimes();
172 private:
bool ReadIterations();
177 private:
bool NextChunk();
182 private:
bool PrevChunk();
186 private: std::unique_ptr<LogPlayPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
Singleton template class.
Definition: SingletonT.hh:33
Definition: LogPlay.hh:47
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44