CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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 (const StreamOutFormatTarget &)=delete
 
StreamOutFormatTargetoperator= (const StreamOutFormatTarget &)=delete
 
 ~StreamOutFormatTarget () override
 

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 { mStream = &fStream; }
StreamOutFormatTarget::StreamOutFormatTarget ( const StreamOutFormatTarget )
delete
StreamOutFormatTarget::~StreamOutFormatTarget ( )
override

Definition at line 28 of file StreamOutFormatTarget.cc.

28 {}

Member Function Documentation

void StreamOutFormatTarget::flush ( )
override

Definition at line 30 of file StreamOutFormatTarget.cc.

References mStream.

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

Definition at line 32 of file StreamOutFormatTarget.cc.

References mStream.

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

Member Data Documentation

std::ostream* StreamOutFormatTarget::mStream
private

Definition at line 48 of file StreamOutFormatTarget.h.

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