#include <XMLStream.h>
Public Methods | |
InputXMLStream () | |
use cin as a default istream. More... | |
InputXMLStream (std::istream &) | |
set default istream, default stream is stored externally and must not cease to exist before it is released by setDefaultStream(). More... | |
~InputXMLStream () | |
clean up buffers. More... | |
const DataObject& | read () |
read-in a data object from default stream success() tells if the operation was successful. More... | |
const DataObject& | read (std::istream &) |
read-in a data object from specified stream, success() tells if the operation was successful. More... | |
bool | success () const |
true if last read successful. More... | |
std::string | errorName () const |
error explanation if success()==false. More... | |
std::string | errorSourcePoint () const |
portion of source text around which error was detected. More... | |
std::istream& | getDefaultStream () const |
get default stream. More... | |
void | setDefaultStream (std::istream &=std::cin) |
change default stream, release previous default stream (not used anymore). More... | |
Private Methods | |
void | _init (std::istream &) |
Private Attributes | |
XMLParserImplementation* | m_impl |
pointer to implementation. More... | |
char* | m_SRC_BUF |
buffered streaming (XML parsers deal with memory not streams). More... | |
int | m_BUF_SIZE |
size of the buffer. More... | |
bool | m_success |
success flag. More... | |
std::istream* | m_def_stream |
default stream. More... |
Definition at line 32 of file XMLStream.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by main().
|
|
|
|
Referenced by main().
|
|
Definition at line 82 of file XMLStream.h. |
|
Definition at line 79 of file XMLStream.h. |
|
Definition at line 88 of file XMLStream.h. |
|
Definition at line 76 of file XMLStream.h. |
|
Definition at line 85 of file XMLStream.h. |