#include <tRecorder.h>
Static Public Member Functions | |
static bool | Archive (bool strict, char const *section, DATA data) |
Archives a section with one piece of data. |
Definition at line 62 of file tRecorder.h.
bool tRecorderTemplate2< BLOCK, DATA >::Archive | ( | bool | strict, | |
char const * | section, | |||
DATA | data | |||
) | [inline, static] |
Archives a section with one piece of data.
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 |
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 }