17 #ifndef _GAZEBO_UTIL_LOGPLAY_HH_ 18 #define _GAZEBO_UTIL_LOGPLAY_HH_ 64 public:
void Open(
const std::string &_logFile);
68 public:
bool IsOpen()
const;
73 public: std::string LogVersion()
const;
78 public: std::string GazeboVersion()
const;
83 public: uint32_t RandSeed()
const;
95 public: std::string Filename()
const;
99 public: std::string FullPathFilename()
const;
103 public: uintmax_t FileSize()
const;
107 public:
bool Step(std::string &_data);
111 public:
bool StepBack(std::string &_data);
116 public:
bool Step(
const int _step, std::string &_data);
127 public:
bool Rewind();
131 public:
bool Forward();
135 public:
unsigned int ChunkCount()
const;
141 public:
bool Chunk(
const unsigned int _index, std::string &_data)
const;
147 public: std::string Encoding()
const;
152 public: std::string Header()
const;
156 public: uint64_t InitialIterations()
const;
162 public:
bool HasIterations()
const;
165 private:
void ReadHeader();
169 private:
void ReadLogTimes();
175 private:
bool ReadIterations();
180 private:
bool NextChunk();
185 private:
bool PrevChunk();
189 private: std::unique_ptr<LogPlayPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
Singleton template class.
Definition: SingletonT.hh:33
util
Definition: LogPlay.hh:28
Definition: LogPlay.hh:50
#define GZ_SINGLETON_DECLARE(visibility, n1, n2, singletonType)
Helper to declare typed SingletonT.
Definition: SingletonT.hh:61
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:47