#include <MsgOStream.h>
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 |
Definition at line 17 of file MsgOStream.h.
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.
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.
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; }
int MsgOStream::fNreference [private] |
Definition at line 33 of file MsgOStream.h.
Referenced by AddReference(), GetNreference(), and SubtractReference().