CMS 3D CMS Logo

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

◆ StreamOutFormatTarget() [1/2]

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

Definition at line 26 of file StreamOutFormatTarget.cc.

References mStream.

26 { mStream = &fStream; }

◆ StreamOutFormatTarget() [2/2]

StreamOutFormatTarget::StreamOutFormatTarget ( const StreamOutFormatTarget )
delete

◆ ~StreamOutFormatTarget()

StreamOutFormatTarget::~StreamOutFormatTarget ( )
override

Definition at line 28 of file StreamOutFormatTarget.cc.

28 {}

Member Function Documentation

◆ flush()

void StreamOutFormatTarget::flush ( )
override

Definition at line 30 of file StreamOutFormatTarget.cc.

References mStream.

30 { mStream->flush(); }

◆ operator=()

StreamOutFormatTarget& StreamOutFormatTarget::operator= ( const StreamOutFormatTarget )
delete

◆ writeChars()

void StreamOutFormatTarget::writeChars ( const XMLByte *const  toWrite,
const XMLSize_t  count,
XMLFormatter *const  formatter 
)
override

Definition at line 32 of file StreamOutFormatTarget.cc.

References submitPVResolutionJobs::count, and mStream.

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

Member Data Documentation

◆ mStream

std::ostream* StreamOutFormatTarget::mStream
private

Definition at line 48 of file StreamOutFormatTarget.h.

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