tRecorderTemplate2< BLOCK, DATA > Class Template Reference

recording funtions that take two pieces of data More...

#include <tRecorder.h>

List of all members.

Static Public Member Functions

static bool Archive (bool strict, char const *section, DATA data)
 Archives a section with one piece of data.


Detailed Description

template<class BLOCK, typename DATA>
class tRecorderTemplate2< BLOCK, DATA >

recording funtions that take two pieces of data

Definition at line 62 of file tRecorder.h.


Member Function Documentation

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

Archives a section with one piece of data.

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

Definition at line 1018 of file tRecorder.h.

References tASSERT.

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

01019 {
01020     // create recording/playback block
01021     BLOCK block;
01022 
01023     // initialize
01024     if ( block.Initialize( section ) )
01025     {
01026         // successfully initialized: archive data
01027         block.Archive( data );
01028 
01029         // return success
01030         return true;
01031     }
01032 
01033     // report failure
01034     tASSERT( !strict || !BLOCK::GetArchive() );
01035     return false;
01036 }

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