StoryHandle Class
The class used to manage all Story-specific data access ChronoLog APIs such as recording.
int StoryHandle::log_event(std::string const &event_record)
- Record Events to ChronoLog
- Return
CL_SUCCESSon success, error code otherwise
int StoryHandle::playback_story(uint64_t start, uint64_t end, std::vector<Event> &playback_events)
- Retrieve all Events in the Story within the timestamp range
[start, end]. - The Events are stored in
playback_events. - Returns
CL_SUCCESSon success, an error code otherwise. - If
startorendtimestamps are out of range, an error codeCL_ERR_OUT_OF_RANGEwill be returned.