snark
Public Member Functions | List of all members
play Class Reference

play back timestamped data in a real time manner More...

#include <play.h>

Public Member Functions

 play (double speed=1.0, bool quiet=false, const boost::posix_time::time_duration &precision=boost::posix_time::milliseconds(1))
 constructor
 play (const boost::posix_time::ptime &first, double speed=1.0, bool quiet=false, const boost::posix_time::time_duration &precision=boost::posix_time::milliseconds(1))
void wait (const boost::posix_time::ptime &time)
void wait (const std::string &iso_time)

Detailed Description

play back timestamped data in a real time manner

Constructor & Destructor Documentation

play ( const boost::posix_time::ptime &  first,
double  speed = 1.0,
bool  quiet = false,
const boost::posix_time::time_duration &  precision = boost::posix_time::milliseconds(1) 
)

constructor

Parameters
firstfirst timestamp
speedslow-down factor: 1.0 = real time, 2.0 = twice as slow etc...
quietif true, do not output warnings if we can not keep up with the desired playback speed
precisionexpected precision from the sleep function

Member Function Documentation

void wait ( const boost::posix_time::ptime &  time)

wait until a timestamp

Parameters
timetimestamp as ptime

Referenced by play::wait().

void wait ( const std::string &  iso_time)

wait until a timestamp

Parameters
isoTimetimestamp in iso format

References play::wait().


The documentation for this class was generated from the following files: