clan::XMLWriter Class Reference - ClanLib SDK
Description: clan::XMLWriter Class Reference

Public Member Functions | List of all members
clan::XMLWriter Class Reference
clanXML XML

The XML Writer writes a XML file based on XML tokens. More...

`#include <xml_writer.h>`

## Public Member Functions
| XMLWriter ()
| XMLWriter (const XMLWriter &copy)
| Constructs a XMLWriter.
| XMLWriter (IODevice &output)
| Constructs a XMLWriter.
virtual | ~XMLWriter ()
bool | get_insert_whitespace () const
| Returns the insert whitespace flag.
void | set_insert_whitespace (bool enable)
| Inserts whitespace between tags if enabled.
void | write (const XMLToken &token)
| Write token to file.

## Detailed Description

The XML Writer writes a XML file based on XML tokens.

## Constructor & Destructor Documentation

## ◆ XMLWriter() [1/3]

clan::XMLWriter::XMLWriter | ( |  | ) |

Referenced by XMLWriter().

## ◆ XMLWriter() [2/3]

clan::XMLWriter::XMLWriter | ( | const XMLWriter & | copy | ) |

Constructs a XMLWriter.

Parameters

  copy | = XMLWriter

References XMLWriter().

## ◆ XMLWriter() [3/3]

clan::XMLWriter::XMLWriter | ( | IODevice & | output | ) |

Constructs a XMLWriter.

Parameters

  output | = IODevice

## ◆ ~XMLWriter()

virtual clan::XMLWriter::~XMLWriter | ( |  | ) |
| virtual

## Member Function Documentation

## ◆ get_insert_whitespace()

bool clan::XMLWriter::get_insert_whitespace | ( |  | ) | const

Returns the insert whitespace flag.

## ◆ set_insert_whitespace()

void clan::XMLWriter::set_insert_whitespace | ( | bool | enable | ) |

Inserts whitespace between tags if enabled.

## ◆ write()

void clan::XMLWriter::write | ( | const XMLToken & | token | ) |

Write token to file.

The documentation for this class was generated from the following file:

- xml_writer.h