CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

StreamOutFormatTarget Class Reference

#include <StreamOutFormatTarget.h>

List of all members.

Public Member Functions

virtual void flush ()
virtual void writeChars (const XMLByte *const toWrite, const unsigned int count, XMLFormatter *const formatter)
constructors and destructor
 StreamOutFormatTarget (std::ostream &fStream)
 ~StreamOutFormatTarget ()

Private Member Functions

StreamOutFormatTargetoperator= (const StreamOutFormatTarget &)
 StreamOutFormatTarget (const StreamOutFormatTarget &)

Private Attributes

std::ostream * mStream

Detailed Description

Definition at line 30 of file StreamOutFormatTarget.h.


Constructor & Destructor Documentation

XERCES_CPP_NAMESPACE_BEGIN StreamOutFormatTarget::StreamOutFormatTarget ( std::ostream &  fStream)

Definition at line 26 of file StreamOutFormatTarget.cc.

References mStream.

                                                                {
  mStream = &fStream;
}
StreamOutFormatTarget::~StreamOutFormatTarget ( )

Definition at line 30 of file StreamOutFormatTarget.cc.

{}
StreamOutFormatTarget::StreamOutFormatTarget ( const StreamOutFormatTarget ) [private]

Member Function Documentation

void StreamOutFormatTarget::flush ( ) [virtual]

Definition at line 33 of file StreamOutFormatTarget.cc.

References mStream.

{
    mStream->flush();
}
StreamOutFormatTarget& StreamOutFormatTarget::operator= ( const StreamOutFormatTarget ) [private]
void StreamOutFormatTarget::writeChars ( const XMLByte *const  toWrite,
const unsigned int  count,
XMLFormatter *const  formatter 
) [virtual]

Definition at line 38 of file StreamOutFormatTarget.cc.

References mStream.

{
  mStream->write ((const char*) toWrite, sizeof(XMLByte) * count);
  mStream->flush ();
}

Member Data Documentation

std::ostream* StreamOutFormatTarget::mStream [private]

Definition at line 49 of file StreamOutFormatTarget.h.

Referenced by flush(), StreamOutFormatTarget(), and writeChars().