|
group2 0.1.0
CSE 125 Group 2
|
Records per-frame state to a timestamped directory on disk. More...
#include <FrameRecorder.hpp>
Public Member Functions | |
| void | startRecording (const std::string &baseDir) |
Open a new session directory inside baseDir. | |
| void | stopRecording () |
| Flush CSV to disk and close the session. | |
| void | recordFrame (const FrameState &state) |
| Append one frame's state. No-op when not recording. | |
| bool | isRecording () const |
| const std::string & | sessionDir () const |
| double | startTimeSecs () const |
Records per-frame state to a timestamped directory on disk.
Usage:
|
inline |
| void FrameRecorder::recordFrame | ( | const FrameState & | state | ) |
Append one frame's state. No-op when not recording.
|
inline |
| void FrameRecorder::startRecording | ( | const std::string & | baseDir | ) |
Open a new session directory inside baseDir.
|
inline |
| void FrameRecorder::stopRecording | ( | ) |
Flush CSV to disk and close the session.