#include <linbox-reader.h>
Inheritance diagram for BasicReader:
Public Methods | |
BasicReader () | |
BasicReader (istream &, const char *encoding="US-ASCII") | |
BasicReader (const BasicReader &) | |
BasicReader (const Writer &) | |
~BasicReader () | |
const BasicReader & | operator= (const BasicReader &) |
bool | parse (istream &, const char *encoding="US-ASCII") |
bool | initalized () const |
bool | haveError () const |
const string & | getErrorString () const |
int | getErrorCode () const |
int | getParseErrorLine () const |
void | setErrorString (const string &) |
void | setErrorCode (int) |
void | setParseErrorLine (int) |
template<class Field> bool | toNum (const Field &, typename Field::Element &e) |
template<class Field> bool | toNumVector (const Field &, vector< typename Field::Element > &) |
bool | isTag () const |
bool | isText () const |
bool | getTagName (string &name) const |
bool | getAttribValue (const string &name, string &value) const |
bool | getNextChild () |
bool | getPrevChild () |
bool | isFirstChild () const |
bool | isLastChild () const |
bool | haveChildren () const |
size_t | numChildren () const |
bool | isChildText () const |
bool | isChildTag () const |
bool | getChildText (string &dataHolder) const |
bool | traverseChild () |
bool | upToParent () |
BasicReader & | Up (size_t) |
BasicReader & | Down (size_t) |
BasicReader & | Right (size_t) |
BasicReader & | Left (size_t) |
bool | getText (string &text) const |
Static Public Methods | |
bool | isNum (const string &) |
bool | isUnsignedNum (const string &) |
template<class Num> bool | toNum (Num &, const string &) |
bool | isNumVector (const string &) |
bool | isUnsignedNumVector (const string &) |
template<class Num> bool | toNumVector (vector< Num > &, const string &, bool=false) |
Static Public Attributes | |
const int | NO_ERROR = 0 |
const int | NO_INIT = 1 |
const int | FAILED_INIT = 2 |
const int | IMPROPER_COPY_OVERWRITE = 12 |
Protected Attributes | |
node * | currentNode |
TagNode * | TNode |
DataNode * | DNode |
list< node * >::iterator | currentChild |
stack< TagTreeFrame > | parentStore |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Reader. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Reader. |
|
|
|
|
|
XMLTree::parse - Reads characters off the instream one at a time and parses until it reachs the End of File mark. Throws an Error if there is an error in parsing. If not, sets the initFlag flag Reimplemented from XMLTree. |
|
Reimplemented in Reader. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in Reader. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|