MsgOStream Class Reference

#include <MsgOStream.h>

Inheritance diagram for MsgOStream:

MsgFileOStream MsgG4OStream MsgStandardOStream List of all members.

Public Member Functions

 MsgOStream ()
virtual ~MsgOStream ()
virtual std::ostream & Os () const =0
virtual const char * GetName () const =0
int GetNreference () const
virtual void Close ()
void Flush ()
int AddReference ()
int SubtractReference ()

Private Attributes

int fNreference

Detailed Description

Definition at line 17 of file MsgOStream.h.


Constructor & Destructor Documentation

MsgOStream::MsgOStream (  )  [inline]

Definition at line 20 of file MsgOStream.h.

00020 : fNreference(0)       { }

virtual MsgOStream::~MsgOStream (  )  [inline, virtual]

Definition at line 21 of file MsgOStream.h.

00021 { }


Member Function Documentation

int MsgOStream::AddReference (  )  [inline]

Definition at line 30 of file MsgOStream.h.

References fNreference.

Referenced by MsgOStreamService::GetStream(), MsgOStreamServiceValidate::TestMsgFileOStream(), and MsgOStreamServiceValidate::TestMsgStandardOStream().

00030 { return ++fNreference; }

virtual void MsgOStream::Close (  )  [inline, virtual]

Reimplemented in MsgFileOStream, MsgStandardOStream, and MsgG4OStream.

Definition at line 27 of file MsgOStream.h.

00027 { }

void MsgOStream::Flush (  )  [inline]

Definition at line 28 of file MsgOStream.h.

References Os().

Referenced by MsgOStreamServiceValidate::TestMsgFileOStream(), and MsgOStreamServiceValidate::TestMsgStandardOStream().

00028 { Os().flush(); }

virtual const char* MsgOStream::GetName (  )  const [pure virtual]

Implemented in MsgFileOStream, MsgStandardOStream, and MsgG4OStream.

int MsgOStream::GetNreference (  )  const [inline]

Definition at line 25 of file MsgOStream.h.

References fNreference.

Referenced by MsgOStreamServiceValidate::TestMsgFileOStream(), MsgOStreamServiceValidate::TestMsgOStreamService(), and MsgOStreamServiceValidate::TestMsgStandardOStream().

00025 { return fNreference; }

virtual std::ostream& MsgOStream::Os (  )  const [pure virtual]

Implemented in MsgFileOStream, MsgStandardOStream, and MsgG4OStream.

Referenced by Flush(), and MsgOStreamServiceValidate::TestMsgCustonStream().

int MsgOStream::SubtractReference (  )  [inline]

Definition at line 31 of file MsgOStream.h.

References fNreference.

Referenced by MsgFileOStream::Close(), MsgOStreamServiceValidate::TestMsgFileOStream(), and MsgOStreamServiceValidate::TestMsgStandardOStream().

00031 { return --fNreference; }


Member Data Documentation

int MsgOStream::fNreference [private]

Definition at line 33 of file MsgOStream.h.

Referenced by AddReference(), GetNreference(), and SubtractReference().


The documentation for this class was generated from the following file:
Generated on Thu Apr 10 23:03:01 2014 for loon by  doxygen 1.4.7