CMS 3D CMS Logo

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

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

Private Member Functions

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

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

Definition at line 30 of file StreamOutFormatTarget.cc.

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

Member Function Documentation

void StreamOutFormatTarget::flush ( )
override

Definition at line 33 of file StreamOutFormatTarget.cc.

References mStream.

34 {
35  mStream->flush();
36 }
StreamOutFormatTarget& StreamOutFormatTarget::operator= ( const StreamOutFormatTarget )
privatedelete
void StreamOutFormatTarget::writeChars ( const XMLByte *const  toWrite,
const XMLSize_t  count,
XMLFormatter *const  formatter 
)
override

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