|
Yate
|
Xml Declaration. More...
#include <yatexml.h>
Public Member Functions | |
| XmlText (const char *text) | |
| XmlText (const void *buf, unsigned int len) | |
| XmlText (const XmlText &orig) | |
| virtual | ~XmlText () |
| const String & | getText () const |
| void | setText (const char *text) |
| void | setText (const void *buf, unsigned int len) |
| void | toString (String &dump, bool escape=true, const String &indent=String::empty(), const String *auth=0, const XmlElement *parent=0) const |
| virtual XmlText * | xmlText () |
| bool | onlySpaces () |
| virtual void | replaceParams (const NamedList ¶ms) |
Public Member Functions inherited from XmlChild | |
| XmlChild () | |
| virtual void | setParent (XmlParent *parent) |
| virtual XmlElement * | xmlElement () |
| virtual XmlComment * | xmlComment () |
| virtual XmlCData * | xmlCData () |
| virtual XmlDeclaration * | xmlDeclaration () |
| virtual XmlDoctype * | xmlDoctype () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (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 NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Xml Declaration.
A Xml Declaration for Xml document
| XmlText | ( | const char * | text | ) |
Constructor
| text | The text |
| XmlText | ( | const void * | buf, |
| unsigned int | len ) |
Constructor. Build a hexified text
| buf | Pointer to buffer to hexify |
| len | Buffer length |
|
virtual |
Destructor
|
inline |
| bool onlySpaces | ( | ) |
Helper method to check if the text held by this XmlText contains only spaces
|
virtual |
Replaces all ${paramname} in text with the corresponding parameters
| params | List of parameters |
Reimplemented from XmlChild.
|
inline |
Set the text
| text | Text to set in this XmlText |
|
inline |
Set hexified data value
| buf | Pointer to buffer to hexify |
| len | Buffer length |
References String::hexify().
| 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
| dump | The string where to append representation |
| escape | True if the text need to be escaped |
| indent | Spaces for output |
| auth | Optional 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 |
| parent | Optional parent element whose tag will be searched in the auth list |
|
inlinevirtual |
Get the Xml text
Reimplemented from XmlChild.
Referenced by XmlFragment::getText().