Public Member Functions | Private Member Functions | Private Attributes

control::ReplayRecorder Class Reference

Replay animation of an Aircraft (record-mode implementation of Replay class). More...

#include <_src_control_replay_recorder.hh>

List of all members.

Public Member Functions

 ReplayRecorder (shptr< Aircraft > aircraft, const Milliseconds freq)
 ~ReplayRecorder ()
bool Start (void)
void Stop (void)
void Clear (void)
bool Save (const string &filename)
shptr< ReplayPathGetPath (void)
bool IfHaveRecording (void) const

Private Member Functions

void Register (void)
void Unregister (void)

Private Attributes

CLASS_CONST int INVALID_TIME = -1
CLASS_TICK_FUNCTOR(ReplayRecorder,
mRecorder) private const
Milliseconds 
mFreq
 Timer-tick to animate replay.
bool mRegistered
 if listeners/functors are currently registered
shptr< TickFunctor > mTickFunctor
 pulse for play mode
shptr< CommandListener > mCommandListener
 listens for a Command from current Craft
shptr< ReplayPathmPath
 replay data consists of steps in animation path
Milliseconds mStartTime
 time when recording began

Detailed Description

Replay animation of an Aircraft (record-mode implementation of Replay class).

Recording: ---------- Recording is mostly done by listening to Commands being broadcast, but supplemented by polling by a timer-tick for Commands which aren't.


Constructor & Destructor Documentation

control::ReplayRecorder::ReplayRecorder ( shptr< Aircraft >  aircraft,
const Milliseconds  freq 
)
control::ReplayRecorder::~ReplayRecorder (  ) 

Member Function Documentation

void control::ReplayRecorder::Clear ( void   ) 

Discard recording.

shptr<ReplayPath> control::ReplayRecorder::GetPath ( void   )  [inline]
bool control::ReplayRecorder::IfHaveRecording ( void   )  const [inline]
void control::ReplayRecorder::Register ( void   )  [private]

Register listeners/functors. Either is safe to call at anytime or be unmatched.

bool control::ReplayRecorder::Save ( const string &  filename  ) 

Save replay data to a file. THROWS EXCEPTION.

bool control::ReplayRecorder::Start ( void   ) 

Start recording replay data.

void control::ReplayRecorder::Stop ( void   ) 

Stop recording.

void control::ReplayRecorder::Unregister ( void   )  [private]

Member Data Documentation

CLASS_CONST int control::ReplayRecorder::INVALID_TIME = -1 [private]
shptr<CommandListener> control::ReplayRecorder::mCommandListener [private]

listens for a Command from current Craft

CLASS_TICK_FUNCTOR ( ReplayRecorder, mRecorder ) private const Milliseconds control::ReplayRecorder::mFreq [private]

Timer-tick to animate replay.

< aircraft to replay freq of timer-tick

replay data consists of steps in animation path

if listeners/functors are currently registered

Milliseconds control::ReplayRecorder::mStartTime [private]

time when recording began

shptr<TickFunctor> control::ReplayRecorder::mTickFunctor [private]

pulse for play mode


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11