This is the documentation for Enlighten.
class Enlighten XmlWriter
class Enlighten::XmlWriter
Exports pretty-printed XML to a file.
Functions
Name | Description |
|---|---|
Closes the file stream and flushes the stream to disk. | |
Close the element previously opened. Call exactly once for each call to OpenElement, in reverse order. | |
Returns true if outputting the XML file failed. | |
Open an element with the specified name. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute with a value. | |
Writes an attribute on the current line. | |
Writes an attribute on a new line. | |
Writes a comment. | |
Writes the supplied text as a comment on the current line. | |
Writes the supplied text as a comment on a new line. | |
Writes an empty line to the output. | |
Writes content text on the current line. | |
Writes content text. | |
Writes content text on a new line. | |
Constructs an XmlWriter object for writing to "filename" and initializes the output stream. |
void Enlighten::XmlWriter::Close
public: void Close()
Closes the file stream and flushes the stream to disk.
void Enlighten::XmlWriter::CloseElement
public: void CloseElement
(
const char * name
)
Close the element previously opened. Call exactly once for each call to OpenElement, in reverse order.
bool Enlighten::XmlWriter::Failed
public: bool Failed()
Returns true if outputting the XML file failed.
void Enlighten::XmlWriter::OpenElement
public: void OpenElement
(
const char * name
)
Open an element with the specified name.
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
const char * value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
Geo::s32 value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
Geo::u32 value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
bool value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
float value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
const Geo::GeoVector3 & value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
const Geo::GeoVector4 & value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
const LinearColor & value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
const Geo::Matrix & value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
bool newLine,
const char * name,
const Geo::GeoGuid & value
)
Writes an attribute with a value.
Parameters
| newLine | Write on a new line if true. |
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttribute
public: void WriteAttribute
(
const char * name,
const T & value
)
Writes an attribute on the current line.
Parameters
| name | The name of the attribute to write. |
| value | The value to write. |
void Enlighten::XmlWriter::WriteAttributeNewLine
public: void WriteAttributeNewLine
(
const char * name,
const T & value
)
Writes an attribute on a new line.
Parameters
| name | The name of the attribute. |
| value | The value of the attribute. |
void Enlighten::XmlWriter::WriteComment
public: void WriteComment
(
bool newLine,
const char * text
)
Writes a comment.
Parameters
| newLine | Write on a new line if true. |
| text | The comment text to write. |
void Enlighten::XmlWriter::WriteComment
public: void WriteComment
(
const char * text
)
Writes the supplied text as a comment on the current line.
void Enlighten::XmlWriter::WriteCommentNewLine
public: void WriteCommentNewLine
(
const char * text
)
Writes the supplied text as a comment on a new line.
void Enlighten::XmlWriter::WriteEmptyLine
public: void WriteEmptyLine()
Writes an empty line to the output.