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

Xml Declaration. More...

#include <yatexml.h>

Inheritance diagram for XmlText:
XmlChild GenObject

Public Member Functions

 XmlText (const String &text)
 
 XmlText (const XmlText &orig)
 
virtual ~XmlText ()
 
const StringgetText () const
 
void setText (const char *text)
 
void toString (String &dump, bool escape=true, const String &indent=String::empty(), const String *auth=0, const XmlElement *parent=0) const
 
virtual XmlTextxmlText ()
 
bool onlySpaces ()
 
- Public Member Functions inherited from XmlChild
 XmlChild ()
 
virtual void setParent (XmlParent *parent)
 
virtual XmlElementxmlElement ()
 
virtual XmlCommentxmlComment ()
 
virtual XmlCDataxmlCData ()
 
virtual XmlDeclarationxmlDeclaration ()
 
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.

A Xml Declaration for Xml document

Constructor & Destructor Documentation

XmlText ( const String text)

Constructor

Parameters
textThe text
XmlText ( const XmlText orig)

Copy constructor

Parameters
origOriginal XmlText
virtual ~XmlText ( )
virtual

Destructor

Member Function Documentation

const String& getText ( ) const
inline
Returns
The text kept by this Xml Text
bool onlySpaces ( )

Helper method to check if the text held by this XmlText contains only spaces

Returns
False if the text contains non space characters.
void setText ( const char *  text)
inline

Set the text

Parameters
textText to set in this XmlText
void toString ( String dump,
bool  escape = true,
const String indent = String::empty(),
const String auth = 0,
const XmlElement parent = 0 
) const

Build a String from this XmlText

Parameters
dumpThe string where to append representation
escapeTrue if the text need to be escaped
indentSpaces for output
authOptional list of tag and attribute names to be replaced with '***'. This parameter can be used when the result will be printed to output to avoid printing authentication data to output. The array must end with an empty string
parentOptional parent element whose tag will be searched in the auth list
virtual XmlText* xmlText ( )
inlinevirtual

Get the Xml text

Returns
This object

Reimplemented from XmlChild.


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