Loading...
Searching...
No Matches
IXMLWriter.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_XML_WRITER_H_INCLUDED__
#define __I_XML_WRITER_H_INCLUDED__
#include "IReferenceCounted.h"
#include "irrArray.h"
#include "irrString.h"
namespace irr
{
namespace io
{
class IXMLWriter : public virtual IReferenceCounted
{
public:
virtual void writeXMLHeader() = 0;
virtual void writeElement(const wchar_t* name, bool empty=false,
const wchar_t* attr1Name = 0, const wchar_t* attr1Value = 0,
const wchar_t* attr2Name = 0, const wchar_t* attr2Value = 0,
const wchar_t* attr3Name = 0, const wchar_t* attr3Value = 0,
const wchar_t* attr4Name = 0, const wchar_t* attr4Value = 0,
const wchar_t* attr5Name = 0, const wchar_t* attr5Value = 0) = 0;
virtual void writeElement(const wchar_t* name, bool empty,
core::array<core::stringw> &names, core::array<core::stringw> &values) = 0;
virtual void writeComment(const wchar_t* comment) = 0;
virtual void writeClosingTag(const wchar_t* name) = 0;
virtual void writeText(const wchar_t* text) = 0;
virtual void writeLineBreak() = 0;
};
} // end namespace io
} // end namespace irr
#endif
IReferenceCounted.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::core::array
Self reallocating template array (like stl vector) with additional features.
Definition irrArray.h:23
irr::io::IXMLWriter
Interface providing methods for making it easier to write XML files.
Definition IXMLWriter.h:21
irr::io::IXMLWriter::writeElement
virtual void writeElement(const wchar_t *name, bool empty=false, const wchar_t *attr1Name=0, const wchar_t *attr1Value=0, const wchar_t *attr2Name=0, const wchar_t *attr2Value=0, const wchar_t *attr3Name=0, const wchar_t *attr3Value=0, const wchar_t *attr4Name=0, const wchar_t *attr4Value=0, const wchar_t *attr5Name=0, const wchar_t *attr5Value=0)=0
irr::io::IXMLWriter::writeText
virtual void writeText(const wchar_t *text)=0
Writes a text into the file.
irr::io::IXMLWriter::writeXMLHeader
virtual void writeXMLHeader()=0
Writes an xml 1.0 header.
irr::io::IXMLWriter::writeElement
virtual void writeElement(const wchar_t *name, bool empty, core::array< core::stringw > &names, core::array< core::stringw > &values)=0
Writes an xml element with any number of attributes.
irr::io::IXMLWriter::writeClosingTag
virtual void writeClosingTag(const wchar_t *name)=0
Writes the closing tag for an element. Like "</foo>".
irr::io::IXMLWriter::writeLineBreak
virtual void writeLineBreak()=0
Writes a line break.
irr::io::IXMLWriter::writeComment
virtual void writeComment(const wchar_t *comment)=0
Writes a comment into the xml file.
irrArray.h
irrString.h
irr::io
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0