|
Yate
|
An outgoing XML element. More...
#include <xmpputils.h>
Public Member Functions | |
| XmlElementOut (XmlElement *element, const char *senderID=0, bool unclose=false) | |
| virtual | ~XmlElementOut () |
| XmlElement * | element () const |
| bool | sent () const |
| const String & | buffer () |
| const String & | id () const |
| unsigned int | dataCount () |
| const char * | getData (unsigned int &nCount) |
| void | dataSent (unsigned int nCount) |
| XmlElement * | release () |
| void | toBuffer (String &buffer) |
| void | prepareToSend () |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Additional Inherited Members | |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
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 () |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
| virtual void | destroyed () |
An outgoing XML element.
This class holds an XML element to be sent through a stream
|
inline |
Constructor
| element | The XML element |
| senderID | Optional sender id |
| unclose | True to not close the tag when building the buffer |
References element().
|
inlinevirtual |
Destructor Delete m_element if not 0
|
inline |
|
inline |
|
inline |
Increase the offset with nCount bytes. Set the sent flag
| nCount | The number of bytes sent |
|
inline |
|
inline |
Get the remainig data to send. Set the buffer if not already set
| nCount | The number of unsent bytes |
References dataCount(), and prepareToSend().
|
inline |
Get the id member
|
inline |
|
inline |
Release the ownership of m_element The caller is responsable of returned pointer
|
inline |
Check if this element was (partially) sent
|
inline |
Fill a buffer with the XML element to send
| buffer | The buffer to fill |
References buffer(), and String::empty().
Referenced by prepareToSend().