89 virtual void Write(
const void* data,
size_t size) = 0;
110 virtual void Write(
const void* data,
size_t size);
122 WriterStream(std::basic_ostream<
char, std::char_traits<char> >& stream);
126 WriterStream(std::basic_ostream<
wchar_t, std::char_traits<wchar_t> >& stream);
131 virtual void Write(
const void* data,
size_t size);
135 std::basic_ostream<char, std::char_traits<char> >* narrow_stream;
137 std::basic_ostream<wchar_t, std::char_traits<wchar_t> >* wide_stream;
163 void Write(
const void* data,
size_t size) { WrappedStream->
Write(data,size); }
173 #endif // Include guard
This represents a simple wrapper that makes data streams compatible with the XML API.
Resource::DataStream * WrappedStream
This is the stream that will be used for output.
virtual ~XMLStreamWrapper()
Class destructor.
virtual size_t Write(const void *Buffer, StreamSize Size)
Writes data to the stream.
All the definitions for datatypes as well as some basic conversion functions are defined here...
virtual ~Writer()
Safe to dervied doconstructor.
Base class for streams that support both read and write operations.
XMLStreamWrapper(Resource::DataStream *Stream)
Class constructor.
The bulk of the engine components go in this namspace.
void Write(const void *data, size_t size)
Writes data to the stream.
An implementation of Writer intended for writing to FILEs as defined in stdio.
An implementation of Writer intended for writing std::ostreams.
Interface for node printing (see Node::Print)
Declaration of DataStream.