MezzanineEngine March 18, 2012

Mezzanine::xml::WriterFile Class Reference

An implementation of Writer intended for writing to FILEs as defined in stdio. More...

#include <xmldoc.h>

Inheritance diagram for Mezzanine::xml::WriterFile:
Mezzanine::xml::Writer

List of all members.

Public Member Functions

 WriterFile (void *file)
 Construct a Writer from a FILE* object.
virtual void Write (const void *data, size_t size)
 This will be used to output xml to an external source such as a file or stream.

Detailed Description

An implementation of Writer intended for writing to FILEs as defined in stdio.

Definition at line 309 of file xml.h.


Constructor & Destructor Documentation

Mezzanine::xml::WriterFile::WriterFile ( void *  file)

Construct a Writer from a FILE* object.

Parameters:
fileThe FILE to be written to. The FILE can be a File handle as per stdio or the standard input, output or even error. The use of void* was intended to avoid a depedency on the stdio header, in the original PugiXML. After a review for compatibility this may change to promote better type safety.

Member Function Documentation

virtual void Mezzanine::xml::WriterFile::Write ( const void *  data,
size_t  size 
) [virtual]

This will be used to output xml to an external source such as a file or stream.

Parameters:
dataThis is a pointer to something that will get written to the output
sizeThe size in bytes of whatever was passed in.

Implements Mezzanine::xml::Writer.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines