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
-
first | first timestamp |
speed | slow-down factor: 1.0 = real time, 2.0 = twice as slow etc... |
quiet | if true, do not output warnings if we can not keep up with the desired playback speed |
precision | expected precision from the sleep function |
Member Function Documentation
void wait |
( |
const boost::posix_time::ptime & |
time | ) |
|
wait until a timestamp
- Parameters
-
Referenced by play::wait().
void wait |
( |
const std::string & |
iso_time | ) |
|
wait until a timestamp
- Parameters
-
isoTime | timestamp in iso format |
References play::wait().
The documentation for this class was generated from the following files: