tRecorder Class Reference

simple interface to recording functionality More...

#include <tRecorder.h>

Inheritance diagram for tRecorder:

Inheritance graph
[legend]
Collaboration diagram for tRecorder:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static bool Record (char const *section)
 Records an empty section.
static bool Playback (char const *section)
 Plays back an empty section.
static bool PlaybackStrict (char const *section)
 Plays back an empty section, making sure it exists in the recording.
template<class DATA>
static bool Record (char const *section, DATA const &data)
 Records a section with one piece of data.
template<class DATA>
static bool Playback (char const *section, DATA &data)
 Plays back a section with one piece of data.
template<class DATA>
static bool PlaybackStrict (char const *section, DATA &data)
 Plays back a section with one piece of data, making sure it exists in the recording.
template<class DATA1, class DATA2>
static bool Record (char const *section, DATA1 const &data1, DATA2 const &data2)
 Records a section with two pieces of data.
template<class DATA1, class DATA2>
static bool Playback (char const *section, DATA1 &data1, DATA2 &data2)
template<class DATA1, class DATA2>
static bool PlaybackStrict (char const *section, DATA1 &data1, DATA2 &data2)
 Plays back a section with two pieces of data, making sure it exists in the recording.


Detailed Description

simple interface to recording functionality

Definition at line 93 of file tRecorder.h.


Member Function Documentation

bool tRecorder::Record ( char const *  section  )  [static]

Records an empty section.

Parameters:
section the name of the section to record or play back
Returns:
true on success

Definition at line 96 of file tRecorder.cpp.

References tRecorderTemplate1< BLOCK >::Archive().

Referenced by gAIPlayer::ActOnData(), ANET_Error(), ANET_GetHostList(), tRecorderSync< DATA >::Archive(), filter(), nAddress::GetHostname(), tTextFileRecorder::GetLine(), GetMyHostName(), eTimer::IsSynced(), nServerInfo::Load(), tConfItemBase::LoadAll(), tConfItemBase::LoadPlayback(), login_accept_handler(), main(), gGame::NetSync(), tTextFileRecorder::Open(), PasswordCallback(), se_SmoothTime(), nBasicNetworkSystem::Select(), nAddress::SetHostname(), st_GetDebugLevelPlayback(), su_EndGetSDLInput(), su_GetSDLInput(), tReproducibleRandomizer::tReproducibleRandomizer(), welcome(), and nSocket::Write().

00097 {
00098     // delegate
00099     return tRecorderTemplate1< tRecordingBlock >::Archive( false, section );
00100 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool tRecorder::Playback ( char const *  section  )  [static]

Plays back an empty section.

Parameters:
section the name of the section to record or play back
Returns:
true on success

Definition at line 113 of file tRecorder.cpp.

References tRecorderTemplate1< BLOCK >::Archive().

Referenced by gAIPlayer::ActOnData(), ANET_GetHostList(), tTextFileRecorder::GetLine(), eTimer::IsSynced(), nServerInfo::Load(), tConfItemBase::LoadPlayback(), login_accept_handler(), main(), gGame::NetSync(), tTextFileRecorder::Open(), PasswordCallback(), st_GetDebugLevelPlayback(), su_EndGetSDLInput(), su_GetSDLInput(), welcome(), and nSocket::Write().

00114 {
00115     // delegate
00116     return tRecorderTemplate1< tPlaybackBlock >::Archive( false, section );
00117 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool tRecorder::PlaybackStrict ( char const *  section  )  [static]

Plays back an empty section, making sure it exists in the recording.

Parameters:
section the name of the section to record or play back
Returns:
true on success

Definition at line 130 of file tRecorder.cpp.

References tRecorderTemplate1< BLOCK >::Archive().

Referenced by ANET_Error(), tRecorderSync< DATA >::Archive(), nAddress::GetHostname(), GetMyHostName(), nServerInfo::Load(), main(), se_SmoothTime(), nBasicNetworkSystem::Select(), nAddress::SetHostname(), and tReproducibleRandomizer::tReproducibleRandomizer().

00131 {
00132     // delegate
00133     return tRecorderTemplate1< tPlaybackBlock >::Archive( true, section );
00134 }

Here is the call graph for this function:

Here is the caller graph for this function:

template<class DATA>
static bool tRecorder::Record ( char const *  section,
DATA const &  data 
) [inline, static]

Records a section with one piece of data.

Definition at line 102 of file tRecorder.h.

References tRecorderTemplate2< BLOCK, DATA >::Archive().

Here is the call graph for this function:

template<class DATA>
static bool tRecorder::Playback ( char const *  section,
DATA &  data 
) [inline, static]

Plays back a section with one piece of data.

Definition at line 107 of file tRecorder.h.

References tRecorderTemplate2< BLOCK, DATA >::Archive().

Here is the call graph for this function:

template<class DATA>
static bool tRecorder::PlaybackStrict ( char const *  section,
DATA &  data 
) [inline, static]

Plays back a section with one piece of data, making sure it exists in the recording.

Definition at line 112 of file tRecorder.h.

References tRecorderTemplate2< BLOCK, DATA >::Archive().

Here is the call graph for this function:

template<class DATA1, class DATA2>
static bool tRecorder::Record ( char const *  section,
DATA1 const &  data1,
DATA2 const &  data2 
) [inline, static]

Records a section with two pieces of data.

Plays back a section with two pieces of data

Definition at line 117 of file tRecorder.h.

References tRecorderTemplate3< BLOCK, DATA1, DATA2 >::Archive().

Here is the call graph for this function:

template<class DATA1, class DATA2>
static bool tRecorder::Playback ( char const *  section,
DATA1 &  data1,
DATA2 &  data2 
) [inline, static]

Definition at line 122 of file tRecorder.h.

References tRecorderTemplate3< BLOCK, DATA1, DATA2 >::Archive().

Here is the call graph for this function:

template<class DATA1, class DATA2>
static bool tRecorder::PlaybackStrict ( char const *  section,
DATA1 &  data1,
DATA2 &  data2 
) [inline, static]

Plays back a section with two pieces of data, making sure it exists in the recording.

Definition at line 127 of file tRecorder.h.

References tRecorderTemplate3< BLOCK, DATA1, DATA2 >::Archive().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:58:32 2008 for Armagetron Advanced by  doxygen 1.5.4