#include <xmlgenerator.h>
Public Methods | |
NEDXMLGenerator () | |
virtual | ~NEDXMLGenerator () |
virtual void | setSourceLocationAttributes (bool srcloc) |
virtual void | setIndentSize (int indentsize) |
virtual void | generate (ostream &out, NEDElement *tree) |
Protected Methods | |
virtual void | printAttrValue (ostream &out, const char *s) |
virtual void | doGenerate (ostream &out, NEDElement *node, int level) |
Protected Attributes | |
bool | printsrcloc |
int | indentsize |
|
Constructor |
|
Destructor |
|
Serialize the object tree as XML. The XML declaration will be: <?xml version="1.0"?>I.e. unspecified encoding, and no document type will be included. |
|
Set indent size in the output XML. |
|
Enable or disable generation of src-loc attributes in the output XML. src-loc attributes contain filename-line-column information that refers to the original document. For example, if the NEDElement tree was produced by parsing a NED file, src-loc attributes refer to locations in the NED file. |