Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members  

NEDXMLGenerator Class Reference

#include <xmlgenerator.h>

List of all members.

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


Detailed Description

Serializes a NED object tree in XML format.


Constructor & Destructor Documentation

NEDXMLGenerator::NEDXMLGenerator ( )
 

Constructor

NEDXMLGenerator::~NEDXMLGenerator ( ) [virtual]
 

Destructor


Member Function Documentation

void NEDXMLGenerator::generate ( ostream & out,
NEDElement * tree ) [virtual]
 

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.

void NEDXMLGenerator::setIndentSize ( int indentsize ) [virtual]
 

Set indent size in the output XML.

void NEDXMLGenerator::setSourceLocationAttributes ( bool srcloc ) [virtual]
 

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.


The documentation for this class was generated from the following file:
Generated at Mon Jun 16 23:37:42 2003 for OMNeT++NEDXML by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001