#include <tRecorder.h>
Static Public Member Functions | |
static void | Write (std::ostream &stream, DATA const &data, int nodummyrequired) |
writes a piece of data using a dummy | |
static void | Write (std::ostream &stream, DATA const &data, int *dummyrequired) |
writes a piece of data using a dummy | |
static void | Read (std::istream &stream, DATA &data, int nodummyrequired) |
reads a piece of data using a dummy | |
static void | Read (std::istream &stream, DATA &data, int *dummyrequired) |
reads a piece of data using a dummy |
Definition at line 241 of file tRecorder.h.
void tRecorderBlockHelper< DATA >::Write | ( | std::ostream & | stream, | |
DATA const & | data, | |||
int | nodummyrequired | |||
) | [inline, static] |
writes a piece of data using a dummy
stream | the stream to write to | |
data | the data to archive | |
nodummyrequired | dummy parameter indicating by type that no conversion is required |
Definition at line 1086 of file tRecorder.h.
Referenced by tRecordingBlock::Write().
void tRecorderBlockHelper< DATA >::Write | ( | std::ostream & | stream, | |
DATA const & | data, | |||
int * | dummyrequired | |||
) | [inline, static] |
writes a piece of data using a dummy
stream | the stream to write to | |
data | the data to archive | |
dummyrequired | dummy parameter indicating by type that conversion is required |
Definition at line 1105 of file tRecorder.h.
01106 { 01107 // write ( converted ) 01108 typedef typename tTypeToStream< DATA >::TOSTREAM TOSTREAM; 01109 TOSTREAM dummy = static_cast< TOSTREAM >( data ); 01110 stream << dummy; 01111 }
void tRecorderBlockHelper< DATA >::Read | ( | std::istream & | stream, | |
DATA & | data, | |||
int | nodummyrequired | |||
) | [inline, static] |
reads a piece of data using a dummy
stream | the stream to read from | |
data | the data to archive | |
nodummyrequired | dummy parameter indicating by type that no conversion is required |
Definition at line 1126 of file tRecorder.h.
References tASSERT.
Referenced by tPlaybackBlock::Read().
01127 { 01128 tASSERT( stream.good() ); 01129 01130 // read 01131 stream >> data; 01132 }
void tRecorderBlockHelper< DATA >::Read | ( | std::istream & | stream, | |
DATA & | data, | |||
int * | dummyrequired | |||
) | [inline, static] |
reads a piece of data using a dummy
stream | the stream to read from | |
data | the data to archive | |
dummyrequired | dummy parameter indicating by type that conversion is required |
Definition at line 1147 of file tRecorder.h.
References tASSERT.
01148 { 01149 tASSERT( stream.good() ); 01150 01151 // read ( with conversion ) 01152 typedef typename tTypeToStream< DATA >::TOSTREAM TOSTREAM; 01153 TOSTREAM dummy ; 01154 stream >> dummy; 01155 data = static_cast< DATA >( dummy ); 01156 }