Yate
Public Member Functions
XmlDeclaration Class Reference

Xml Declaration. More...

#include <yatexml.h>

Inheritance diagram for XmlDeclaration:
XmlChild GenObject

List of all members.

Public Member Functions

 XmlDeclaration (const char *version="1.0", const char *enc="utf-8")
 XmlDeclaration (const NamedList &decl)
 XmlDeclaration (const XmlDeclaration &orig)
 ~XmlDeclaration ()
const NamedListgetDec () const
virtual XmlDeclarationxmlDeclaration ()
void toString (String &dump, bool escape=true) const

Detailed Description

Xml Declaration.

Xml Declaration for Xml document


Constructor & Destructor Documentation

XmlDeclaration ( const char *  version = "1.0",
const char *  enc = "utf-8" 
)

Constructor

Parameters:
versionXML version attribute
encEncoding attribute
XmlDeclaration ( const NamedList decl)

Constructor

Parameters:
declDeclaration attributes
XmlDeclaration ( const XmlDeclaration orig)

Copy constructor

Parameters:
origOriginal XmlDeclaration

Destructor


Member Function Documentation

const NamedList& getDec ( ) const [inline]

Obtain the tag name and attributes list

Returns:
The declaration
void toString ( String dump,
bool  escape = true 
) const

Build a String from this XmlDeclaration

Parameters:
dumpThe string where to append representation
escapeTrue if the attributes values need to be escaped
virtual XmlDeclaration* xmlDeclaration ( ) [inline, virtual]

Get the Xml declaration

Returns:
This object Reimplemented from XmlChild

Reimplemented from XmlChild.


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