#include <tRecorder.h>
Static Public Member Functions | |
| static bool | Archive (bool strict, char const *section, DATA1 data1, DATA2 data2) |
| Archives a section with two pieces of data. | |
Definition at line 70 of file tRecorder.h.
| 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.
| 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 |
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 }

1.5.4