|
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 () |
An outgoing XML element.
This class holds an XML element to be sent through a stream
| XmlElementOut | ( | XmlElement * | element, |
| const char * | senderID = 0, |
||
| bool | unclose = false |
||
| ) | [inline] |
Constructor
| element | The XML element |
| senderID | Optional sender id |
| unclose | True to not close the tag when building the buffer |
| virtual ~XmlElementOut | ( | ) | [inline, virtual] |
Destructor Delete m_element if not 0
References TelEngine::destruct().
| unsigned int dataCount | ( | ) | [inline] |
| void dataSent | ( | unsigned int | nCount | ) | [inline] |
Increase the offset with nCount bytes. Set the sent flag
| nCount | The number of bytes sent |
| XmlElement* element | ( | ) | const [inline] |
Get the underlying element
| const char* getData | ( | unsigned int & | nCount | ) | [inline] |
Get the remainig data to send. Set the buffer if not already set
| nCount | The number of unsent bytes |
| void prepareToSend | ( | ) | [inline] |
Fill the buffer with the XML element to send
| XmlElement* release | ( | ) | [inline] |
Release the ownership of m_element The caller is responsable of returned pointer
| bool sent | ( | ) | const [inline] |
Check if this element was (partially) sent
Fill a buffer with the XML element to send
| buffer | The buffer to fill |
References String::empty().
1.7.6.1