#include <tRecorderInternal.h>
Public Types | |
typedef std::ostream | STREAM |
stream typedef | |
Public Member Functions | |
tRecording () | |
default constructor | |
Protected Member Functions | |
virtual | ~tRecording () |
destructor | |
Private Member Functions | |
tRecording (tRecording const &other) | |
copy constructor | |
tRecording & | operator= (tRecording const &other) |
copy operator | |
void | BeginSection (char const *name) |
begins a new section | |
virtual std::ostream & | DoGetStream ()=0 |
returns the stream to write to | |
Static Private Attributes | |
static tRecording * | currentRecording_ = 0 |
the currently running recording | |
Friends | |
class | tRecordingBlockBase |
Definition at line 42 of file tRecorderInternal.h.
typedef std::ostream tRecording::STREAM |
tRecording::tRecording | ( | ) |
default constructor
Definition at line 77 of file tRecorderInternal.cpp.
References currentRecording_, and tASSERT.
00078 { 00079 tASSERT( !currentRecording_ ); 00080 00081 std::cout << "Recording!\n"; 00082 00083 // set current recording 00084 currentRecording_ = this; 00085 }
tRecording::~tRecording | ( | ) | [protected, virtual] |
destructor
Definition at line 62 of file tRecorderInternal.cpp.
References currentRecording_.
00063 { 00064 // clear current recording 00065 currentRecording_ = 0; 00066 }
tRecording::tRecording | ( | tRecording const & | other | ) | [private] |
copy constructor
other | the source to copy from |
Definition at line 97 of file tRecorderInternal.cpp.
References tASSERT.
00098 { 00099 tASSERT(false); 00100 }
tRecording & tRecording::operator= | ( | tRecording const & | other | ) | [private] |
copy operator
other | the source to copy from |
Definition at line 113 of file tRecorderInternal.cpp.
References tASSERT.
00114 { 00115 tASSERT(false); 00116 00117 return *this; 00118 }
void tRecording::BeginSection | ( | char const * | name | ) | [private] |
begins a new section
name | the name of the new section |
Definition at line 130 of file tRecorderInternal.cpp.
References DoGetStream().
Referenced by tRecordingBlockBase::Initialize().
00131 { 00132 DoGetStream() << "\n" << name; 00133 }
virtual std::ostream& tRecording::DoGetStream | ( | ) | [private, pure virtual] |
returns the stream to write to
Referenced by BeginSection(), and tRecordingBlockBase::GetRecordingStream().
friend class tRecordingBlockBase [friend] |
Definition at line 44 of file tRecorderInternal.h.
tRecording * tRecording::currentRecording_ = 0 [static, private] |
the currently running recording
Definition at line 60 of file tRecorderInternal.h.
Referenced by tRecordingBlockBase::GetArchive(), tRecordingBlockBase::Initialize(), tRecording(), and ~tRecording().