tRecorderTemplate3< BLOCK, DATA1, DATA2 > Class Template Reference

recording funtions that take two pieces of data and a block More...

#include <tRecorder.h>

List of all members.

Static Public Member Functions

static bool Archive (bool strict, char const *section, DATA1 data1, DATA2 data2)
 Archives a section with two pieces of data.


Detailed Description

template<class BLOCK, typename DATA1, typename DATA2>
class tRecorderTemplate3< BLOCK, DATA1, DATA2 >

recording funtions that take two pieces of data and a block

Definition at line 70 of file tRecorder.h.


Member Function Documentation

template<class BLOCK, typename DATA1, typename DATA2>
bool tRecorderTemplate3< BLOCK, DATA1, DATA2 >::Archive ( bool  strict,
char const *  section,
DATA1  data1,
DATA2  data2 
) [inline, static]

Archives a section with two pieces of data.

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

Definition at line 1053 of file tRecorder.h.

References tASSERT.

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

01054 {
01055     // create recording/playback block
01056     BLOCK block;
01057 
01058     // initialize
01059     if ( block.Initialize( section ) )
01060     {
01061         // successfully initialized: archive data
01062         block.Archive( data1 ).Archive( data2 );
01063 
01064         // return success
01065         return true;
01066     }
01067 
01068     // report failure
01069     tASSERT( !strict  || !BLOCK::GetArchive() );
01070     return false;
01071 }

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:49 2008 for Armagetron Advanced by  doxygen 1.5.4