|
|
This class holds an XML element to be sent through a stream
inline XMLElementOut (XMLElement* element, const char* senderID = 0,
bool unclose = false)
| XMLElementOut |
Constructor
Parameters:
element | The XML element |
senderID | Optional sender id |
unclose | True to not close the tag when building the buffer |
~XMLElementOut ()
| ~XMLElementOut |
[virtual]
Destructor Delete m_element if not 0
inline XMLElement* element ()
| element |
[const]
Get the underlying element
Returns: The underlying element
inline bool sent ()
| sent |
[const]
Check if this element was (partially) sent
Returns: True if an attempt to send this element was already done
inline String& buffer ()
| buffer |
Get the data buffer
Returns: The data buffer
inline const String& id ()
| id |
[const]
Get the id member
Returns: The id member
inline u_int32_t dataCount ()
| dataCount |
Get the remainig byte count to send
Returns: The unsent number of bytes
inline const char* getData (u_int32_t& nCount)
| getData |
Get the remainig data to send. Set the buffer if not already set
Parameters:
nCount | The number of unsent bytes |
Returns: Pointer to the remaining data or 0
inline void dataSent (u_int32_t nCount)
| dataSent |
Increase the offset with nCount bytes. Set the sent flag
Parameters:
nCount | The number of bytes sent |
inline XMLElement* release ()
| release |
Release the ownership of m_element The caller is responsable of returned pointer
Returns: XMLElement pointer or 0
inline void toBuffer (String& buffer)
| toBuffer |
Fill a buffer with the XML element to send
Parameters:
buffer | The buffer to fill |
inline void prepareToSend ()
| prepareToSend |
Fill the buffer with the XML element to send
Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54. |