Irrlicht 3D Engine
IXMLWriter.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_XML_WRITER_H_INCLUDED__
6 #define __I_XML_WRITER_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 #include "irrArray.h"
10 #include "irrString.h"
11 
12 namespace irr
13 {
14 namespace io
15 {
16 
18 
20  class IXMLWriter : public virtual IReferenceCounted
21  {
22  public:
24 
27  virtual void writeXMLHeader() = 0;
28 
31 
46  virtual void writeElement(const wchar_t* name, bool empty=false,
47  const wchar_t* attr1Name = 0, const wchar_t* attr1Value = 0,
48  const wchar_t* attr2Name = 0, const wchar_t* attr2Value = 0,
49  const wchar_t* attr3Name = 0, const wchar_t* attr3Value = 0,
50  const wchar_t* attr4Name = 0, const wchar_t* attr4Value = 0,
51  const wchar_t* attr5Name = 0, const wchar_t* attr5Value = 0) = 0;
52 
54  virtual void writeElement(const wchar_t* name, bool empty,
56 
58  virtual void writeComment(const wchar_t* comment) = 0;
59 
61  virtual void writeClosingTag(const wchar_t* name) = 0;
62 
64 
67  virtual void writeText(const wchar_t* text) = 0;
68 
70  virtual void writeLineBreak() = 0;
71  };
72 
73 } // end namespace io
74 } // end namespace irr
75 
76 #endif
77 
Interface providing methods for making it easier to write XML files.
Definition: IXMLWriter.h:20
virtual void writeClosingTag(const wchar_t *name)=0
Writes the closing tag for an element. Like "</foo>".
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
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
virtual void writeLineBreak()=0
Writes a line break.
virtual void writeXMLHeader()=0
Writes an xml 1.0 header.
virtual void writeComment(const wchar_t *comment)=0
Writes a comment into the xml file.
Self reallocating template array (like stl vector) with additional features.
Definition: irrArray.h:22
Base class of most objects of the Irrlicht Engine.
virtual void writeText(const wchar_t *text)=0
Writes a text into the file.