Mads
Multi-Agent Distributed System
Loading...
Searching...
No Matches
Mads::Play Namespace Reference

Functions

bool try_restamp (std::vector< std::string > &parts)
 Best-effort –restamp rewrite of a raw record's parts, in place.
 

Function Documentation

◆ try_restamp()

bool Mads::Play::try_restamp ( std::vector< std::string > &  parts)
inline

Best-effort –restamp rewrite of a raw record's parts, in place.

Parameters
partsThe record's parts (as from BagRecord::parts / Agent::receive_raw_message()'s parts out-param), modified in place.
Returns
true if parts was rewritten, false if it was left untouched (more than one part, not valid JSON, or a JSON object without a "timestamp"/"timecode" field to rewrite).

Definition at line 43 of file play_restamp.hpp.