Jimcpp 2.1.0
Jimcpp is a high-performance c++ graphics engine.
|
Interface providing methods for making it easier to write XML files. More...
#include <jimcpp/core/engine/irrXML.hpp>
Public Member Functions | |
virtual | ~IIrrXMLWriter () |
Destructor. | |
virtual void | writeXMLHeader ()=0 |
Writes an xml 1.0 header. | |
virtual void | writeElement (const char_type *name, bool empty=false, const char_type *attr1Name=0, const char_type *attr1Value=0, const char_type *attr2Name=0, const char_type *attr2Value=0, const char_type *attr3Name=0, const char_type *attr3Value=0, const char_type *attr4Name=0, const char_type *attr4Value=0, const char_type *attr5Name=0, const char_type *attr5Value=0)=0 |
virtual void | writeElement (const char_type *name, bool empty, core::array< core::string< char_type > > &names, core::array< core::string< char_type > > &values)=0 |
Writes an xml element with any number of attributes. | |
virtual void | writeComment (const char_type *comment)=0 |
Writes a comment into the xml file. | |
virtual void | writeClosingTag (const char_type *name)=0 |
Writes the closing tag for an element. Like "</foo>". | |
virtual void | writeText (const char_type *text)=0 |
Writes a text into the file. | |
virtual void | writeLineBreak ()=0 |
Writes a line break. | |
Interface providing methods for making it easier to write XML files.
|
pure virtual |
Writes an xml element with maximal 5 attributes like "<foo />" or <foo optAttr="value" />. The element can be empty or not.
name | Name of the element |
empty | Specifies if the element should be empty. Like "<foo />". If You set this to false, something like this is written instead: "<foo>". |
attr1Name | 1st attributes name |
attr1Value | 1st attributes value |
attr2Name | 2nd attributes name |
attr2Value | 2nd attributes value |
attr3Name | 3rd attributes name |
attr3Value | 3rd attributes value |
attr4Name | 4th attributes name |
attr4Value | 4th attributes value |
attr5Name | 5th attributes name |
attr5Value | 5th attributes value |
|
pure virtual |
Writes a text into the file.
All occurrences of special characters such as & (&), < (<), > (>), and " (") are automatically replaced.
|
pure virtual |
Writes an xml 1.0 header.
Looks like <?xml version="1.0"?>. This should always be called before writing anything other, because also the text file header for Unicode texts is written out with this method.