Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | List of all members
Mezzanine::XML::WriterStream Class Reference

An implementation of Writer intended for writing std::ostreams. More...

#include <writer.h>

+ Inheritance diagram for Mezzanine::XML::WriterStream:
+ Collaboration diagram for Mezzanine::XML::WriterStream:

Public Member Functions

 WriterStream (std::basic_ostream< char, std::char_traits< char > > &stream)
 A constructor that accepts a stream of characters. More...
 
 WriterStream (std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &stream)
 A constructor that accepts a stream of wide characters. More...
 
virtual void Write (const void *data, size_t size)
 Actually issues the write commands. More...
 
- Public Member Functions inherited from Mezzanine::XML::Writer
virtual ~Writer ()
 Safe to dervied doconstructor.
 

Detailed Description

An implementation of Writer intended for writing std::ostreams.

Definition at line 117 of file writer.h.

Constructor & Destructor Documentation

Mezzanine::XML::WriterStream::WriterStream ( std::basic_ostream< char, std::char_traits< char > > &  stream)

A constructor that accepts a stream of characters.

Parameters
streamA stream to send stuff to.
Mezzanine::XML::WriterStream::WriterStream ( std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &  stream)

A constructor that accepts a stream of wide characters.

Parameters
streamA stream to send stuff to.

Member Function Documentation

virtual void Mezzanine::XML::WriterStream::Write ( const void *  data,
size_t  size 
)
virtual

Actually issues the write commands.

Parameters
dataA pointer to the data to write, this will assume the pointer is valid and cast it.
sizeHow much to write from the pointer data, pointer.

Implements Mezzanine::XML::Writer.


The documentation for this class was generated from the following file: