tRecording Class Reference

recording class More...

#include <tRecorderInternal.h>

Collaboration diagram for tRecording:

Collaboration graph
[legend]

List of all members.

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
tRecordingoperator= (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 tRecordingcurrentRecording_ = 0
 the currently running recording

Friends

class tRecordingBlockBase


Detailed Description

recording class

Definition at line 42 of file tRecorderInternal.h.


Member Typedef Documentation

typedef std::ostream tRecording::STREAM

stream typedef

Definition at line 49 of file tRecorderInternal.h.


Constructor & Destructor Documentation

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

Parameters:
other the source to copy from

Definition at line 97 of file tRecorderInternal.cpp.

References tASSERT.

00098 {
00099     tASSERT(false);
00100 }


Member Function Documentation

tRecording & tRecording::operator= ( tRecording const &  other  )  [private]

copy operator

Parameters:
other the source to copy from
Returns:
a reference to this

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

Parameters:
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 }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual std::ostream& tRecording::DoGetStream (  )  [private, pure virtual]

returns the stream to write to

Referenced by BeginSection(), and tRecordingBlockBase::GetRecordingStream().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class tRecordingBlockBase [friend]

Definition at line 44 of file tRecorderInternal.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:58:50 2008 for Armagetron Advanced by  doxygen 1.5.4