#include <filebuffer.hpp>
Inheritance diagram for FileBuffer:
Definition at line 54 of file filebuffer.hpp.
Public Methods | |
FileBuffer (const char *p_cFileName=0, bool p_boolReadOnly=false, unsigned int p_uiBufferSize=0) | |
Constructor. Created a buffer which uses the designated file. | |
~FileBuffer () | |
Destructor. | |
XMLStreamProvider & | operator>> (XMLStreamConsumer &p_pStreamConsumer) |
void | writeData (const char *p_pszData, unsigned int p_uiDataLen) |
bool | commitStream (bool fFinal=false) |
void | flush () |
Empties the buffer. If the buffer is readonly, nothing is done. | |
Static Public Methods | |
void | setTmpDir (const char *p_pszTmpDir) |
Sets temporary directory. |
|
Constructor. Created a buffer which uses the designated file.
Definition at line 63 of file filebuffer.cpp. References DEBUG_CREATE, FILEBUFFER_COPYBUF, and flush(). |
|
Destructor.
Definition at line 95 of file filebuffer.cpp. References DEBUG_DEL, and DEBUG_ECHO. |
|
Reimplemented from XMLStreamConsumer. Definition at line 201 of file filebuffer.cpp. Referenced by FSSetStreamer::commitStream(). |
|
Empties the buffer.
Definition at line 219 of file filebuffer.cpp. References DEBUG_FUNC. Referenced by FileBuffer(), and FSSetStreamer::initStream(). |
|
Implements XMLStreamProvider. Definition at line 111 of file filebuffer.cpp. References CATCH_XML_FLOW_ERROR_RELEASE_AND_RETURN, XMLStreamConsumer::commitStream(), DEBUG_IN, DEBUG_OUT, ON_XML_FLOW_ERROR_THROW, PREP_CATCH_XML_FLOW_ERROR, THROW_XMLFLOW_EXCEPTION, WATCH_XML_FLOW_ERROR, and XMLStreamConsumer::writeData(). |
|
Sets temporary directory.
Definition at line 54 of file filebuffer.cpp. |
|
Implements XMLStreamConsumer. Definition at line 175 of file filebuffer.cpp. References DEBUG_FUNC, and THROW_XMLFLOW_EXCEPTION. |