tRecorderTemplate1< BLOCK > Class Template Reference

recording funtions that take one piece of data More...

#include <tRecorder.h>

List of all members.

Static Public Member Functions

static bool Archive (bool strict, char const *section)
 Archives an empty section.


Detailed Description

template<class BLOCK>
class tRecorderTemplate1< BLOCK >

recording funtions that take one piece of data

Definition at line 54 of file tRecorder.h.


Member Function Documentation

template<class BLOCK>
bool tRecorderTemplate1< BLOCK >::Archive ( bool  strict,
char const *  section 
) [inline, static]

Archives an empty section.

Parameters:
strict true if the success should be asserted
section the name of the section to record or play back
Returns:
true on success

Definition at line 987 of file tRecorder.h.

References tASSERT.

Referenced by tRecorder::Playback(), tRecorder::PlaybackStrict(), and tRecorder::Record().

00988 {
00989     // create recording/playback block
00990     BLOCK block;
00991 
00992     // initialize
00993     if ( block.Initialize( section ) )
00994     {
00995         // return success
00996         return true;
00997     }
00998 
00999     // report failure
01000     tASSERT( !strict  || !BLOCK::GetArchive() );
01001     return false;
01002 }

Here is the caller graph for this function:


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