CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
StreamOutFormatTarget Class Reference

#include <StreamOutFormatTarget.h>

Inheritance diagram for StreamOutFormatTarget:

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.

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

Definition at line 30 of file StreamOutFormatTarget.cc.

31 {}
StreamOutFormatTarget::StreamOutFormatTarget ( const StreamOutFormatTarget )
private

Member Function Documentation

void StreamOutFormatTarget::flush ( )
virtual

Definition at line 33 of file StreamOutFormatTarget.cc.

References mStream.

34 {
35  mStream->flush();
36 }
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.

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

Member Data Documentation

std::ostream* StreamOutFormatTarget::mStream
private

Definition at line 49 of file StreamOutFormatTarget.h.

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