Yate
Public Member Functions | List of all members
XmlDeclaration Class Reference

Xml Declaration. More...

#include <yatexml.h>

Inheritance diagram for XmlDeclaration:
XmlChild GenObject

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
 
- Public Member Functions inherited from XmlChild
 XmlChild ()
 
virtual void setParent (XmlParent *parent)
 
virtual XmlElementxmlElement ()
 
virtual XmlCommentxmlComment ()
 
virtual XmlCDataxmlCData ()
 
virtual XmlTextxmlText ()
 
virtual XmlDoctypexmlDoctype ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtoString () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

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 ( )
inlinevirtual

Get the Xml declaration

Returns
This object Reimplemented from XmlChild

Reimplemented from XmlChild.


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