#include <nullbuffer.hpp>
Inheritance diagram for NullBuffer:
Definition at line 53 of file nullbuffer.hpp.
Public Methods | |
NullBuffer () | |
Constructor. Created a null buffer. | |
NullBuffer (const char *p_cFileName, bool p_boolReadOnly=false) | |
Constructor. Created a null buffer. | |
~NullBuffer () | |
Destructor. | |
XMLStreamBuffer & | operator<< (const char *p_cData) |
Writes data to the buffer. | |
XMLStreamBuffer & | operator<< (XMLStreamBuffer &p_pXMLStreamBuffer) |
Transfers data from the given buffer. | |
XMLStreamBuffer & | operator>> (XMLStreamBuffer &p_pXMLStreamBuffer) |
Transfers data to the given buffer. | |
void | write (const void *p_bData, int p_intSize) |
Writes raw data to the buffer. | |
void | flush () |
Empties the buffer. | |
void * | data () |
Returns a copy of buffer's data. | |
int | length () |
Returns a the lenght of buffer's data. | |
InputSource * | getInputSource () |
Returns an input source which uses buffer's data. | |
const char * | getName () |
Returns a unique name for the buffer. | |
void | sleep () |
Set the sleep mode for the buffer. Indicates to the buffer that it can release some of the ressources it uses. |
|
Constructor. Created a null buffer.
Definition at line 52 of file nullbuffer.cpp. References DEBUG_CREATE. |
|
Constructor. Created a null buffer.
Definition at line 60 of file nullbuffer.cpp. References DEBUG_CREATE. |
|
Destructor.
Definition at line 68 of file nullbuffer.cpp. References DEBUG_DEL. |
|
Returns a copy of buffer's data.
Definition at line 136 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Empties the buffer.
Definition at line 128 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Returns an input source which uses buffer's data.
Definition at line 163 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Returns a unique name for the buffer.
Definition at line 76 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Returns a the lenght of buffer's data.
Definition at line 153 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Transfers data from the given buffer.
Definition at line 95 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Writes data to the buffer.
Reimplemented from XMLStreamConsumer. Definition at line 86 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Transfers data to the given buffer.
Definition at line 105 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Set the sleep mode for the buffer. Indicates to the buffer that it can release some of the ressources it uses.
Definition at line 120 of file nullbuffer.cpp. References DEBUG_FUNC. |
|
Writes raw data to the buffer.
Definition at line 112 of file nullbuffer.cpp. References DEBUG_FUNC. |