47 #ifndef _MIRA_TAPEPLAYER_H_ 48 #define _MIRA_TAPEPLAYER_H_ 74 template <
typename Reflector>
133 bool stepTo(
const std::string& channelID);
145 bool stepToAnyOf(
const std::vector<std::string>& channelIDs);
179 assert(scaler >= 0.0f);
float getTimeScaler() const
Get the time scaling factor.
Definition: TapePlayer.h:187
void play()
Starts playing back the messages.
void setTimeScaler(float scaler)
Set the time scaling factor for play back.
Definition: TapePlayer.h:177
Duration getTimeOffset() const
Get the offset of the recording time for this message.
Definition: TapeVisitor.h:247
bool mPlayImmediately
Definition: TapePlayer.h:302
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
void stepTo(Duration time)
Do a step by playing back all messages between current message time and time.
Authority * getAuthority()
Return the authority of the player.
Definition: TapePlayer.h:285
boost::optional< Duration > mJumpTo
Definition: TapePlayer.h:306
boost::thread mThread
Definition: TapePlayer.h:298
bool isPaused() const
Is the playback paused.
Definition: TapePlayer.h:94
bool mLoop
Definition: TapePlayer.h:300
TapeVisitor * mVisitor
Definition: TapePlayer.h:310
iterator end()
Iterator to the end of visited messages.
Definition: TapeVisitor.h:425
Time getRelativeStartTime() const
Returns the relative time the player plays back messages to.
Definition: TapePlayer.h:269
Duration getLastMessageTimeOffset() const
Get the time offset of the last visited message.
Definition: TapeVisitor.h:362
Provides MIRA_CLASS_SERIALIZATION macro and includes the major headers of the serialization framework...
void setLoop(bool loop, int32 count=-1)
Turn the loop mode on/off.
Definition: TapePlayer.h:164
Iterator to iterate over all messages in all tapes visited by the visitor.
Definition: TapeVisitor.h:133
Duration getTZOffset() const
Get the time zone offset of the tape containing this message.
Definition: TapeVisitor.h:267
Wrapper class for boost::posix_time::ptime for adding more functionality to it.
Definition: Time.h:418
bool stepToAnyOf(const std::vector< std::string > &channelIDs)
Do a step by playing back all messages between current message time and the time of the next message ...
float mTimeScaler
Definition: TapePlayer.h:304
boost::optional< Duration > mStepTo
Definition: TapePlayer.h:307
Authority mAuthority
Definition: TapePlayer.h:297
boost::mutex mConditionMutex
Definition: TapePlayer.h:312
int32 mLoopCount
Definition: TapePlayer.h:299
Duration getCurrentMessageTZOffset() const
Get the recorded time zone offset of the tape containing the currently played or to be played message...
Definition: TapePlayer.h:256
Use this class to represent time durations.
Definition: Time.h:106
Authorities act as a facade to the framework.
Definition: Authority.h:94
boost::optional< TapeVisitor::iterator > mStepToChannel
Definition: TapePlayer.h:308
virtual ~TapePlayer()
Definition: TapePlayer.h:68
static Time now()
Returns the current utc based time.
Definition: Time.h:481
tick_type microseconds() const
Returns normalized number of microseconds (0..999)
Definition: Time.h:290
boost::condition_variable mCondition
Definition: TapePlayer.h:313
void checkout()
Checks out and therefore invalidates the authority.
Visitor class to inspect tapes by channels and/or time interval.
Definition: TapeVisitor.h:66
Time mStartTime
Definition: TapePlayer.h:305
Class for playing back tape files.
Definition: TapePlayer.h:62
void reflect(Reflector &r)
Definition: TapePlayer.h:75
void load(TapeVisitor *iVisitor, Time startTime=Time::now(), const std::string &prefix="")
Prepares playing back data from the visitor.
void step()
Do a single step.
Definition: TapePlayer.h:111
bool mIsPlaying
Definition: TapePlayer.h:303
std::string getErrorMessage() const
Returns the error message of an error that occurred during play back.
Definition: TapePlayer.h:228
bool hasError() const
When an error occurs during play back this method will return true.
Definition: TapePlayer.h:220
tick_type nanoseconds() const
Returns normalized number of nanoseconds (0..999)
Definition: Time.h:295
void pause()
Pauses the play back.
Definition: TapePlayer.h:81
void jumpTo(Duration time)
Jump to a given message at recorded time offset.
Class implementing a visitor concept for tapes.
boost::optional< std::string > mErrorMessage
Definition: TapePlayer.h:309
bool inStepTo() const
return if we are currently in stepTo mode
Definition: TapePlayer.h:102
The framework that holds all manager classes and provides startup and shutdown of all framework relat...
void stop()
Stops play back.
Definition: TapePlayer.h:150
bool mPause
Definition: TapePlayer.h:301
Duration getLastMessageTZOffset() const
Get the time zone offset of the last visited message.
Definition: TapeVisitor.h:373
std::string mNamespacePrefix
Definition: TapePlayer.h:314
TapeVisitor::iterator mMessage
Definition: TapePlayer.h:311
Duration getCurrentMessageTimeOffset() const
Get the recorded time offset of the currently played or to be played message (if currently paused the...
Definition: TapePlayer.h:241
bool isPlaying() const
Are we currently in playback mode (i.e.
Definition: TapePlayer.h:209