MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Mezzanine::XML::XMLStreamWrapper Class Reference

This represents a simple wrapper that makes data streams compatible with the XML API. More...

#include <writer.h>

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

Public Member Functions

 XMLStreamWrapper (Resource::DataStream *Stream)
 Class constructor. More...
 
virtual ~XMLStreamWrapper ()
 Class destructor.
 
void Write (const void *data, size_t size)
 Writes data to the stream. More...
 
- Public Member Functions inherited from Mezzanine::XML::Writer
virtual ~Writer ()
 Safe to dervied doconstructor.
 

Protected Attributes

Resource::DataStreamWrappedStream
 This is the stream that will be used for output.
 

Detailed Description

This represents a simple wrapper that makes data streams compatible with the XML API.

Todo:
Ideally this class should not exist, and the XML system should be made to use the resource system instead of doing its own IO.

Definition at line 147 of file writer.h.

Constructor & Destructor Documentation

Mezzanine::XML::XMLStreamWrapper::XMLStreamWrapper ( Resource::DataStream Stream)
inline

Class constructor.

Parameters
StreamThe stream to be wrapped.

Definition at line 155 of file writer.h.

Member Function Documentation

void Mezzanine::XML::XMLStreamWrapper::Write ( const void *  data,
size_t  size 
)
inlinevirtual

Writes data to the stream.

Parameters
dataThe data to be written.
sizeThe number of bytes to be written.

Implements Mezzanine::XML::Writer.

Definition at line 163 of file writer.h.


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