Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

BasicReader Class Reference

#include <linbox-reader.h>

Inheritance diagram for BasicReader:

XMLTree Reader ReaderIterator List of all members.

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

nodecurrentNode
TagNodeTNode
DataNodeDNode
list< node * >::iterator currentChild
stack< TagTreeFrameparentStore

Constructor & Destructor Documentation

BasicReader  
 

BasicReader istream &   ,
const char *    encoding = "US-ASCII"
 

BasicReader const BasicReader &   
 

BasicReader const Writer  
 

~BasicReader  
 


Member Function Documentation

BasicReader & Down size_t   
 

Reimplemented in Reader.

bool getAttribValue const string &    name,
string &    value
const
 

bool getChildText string &    dataHolder const
 

int getErrorCode  
 

const string & getErrorString  
 

bool getNextChild  
 

int getParseErrorLine  
 

bool getPrevChild  
 

bool getTagName string &    name const
 

bool getText string &    text const
 

bool haveChildren  
 

bool haveError  
 

bool initalized  
 

bool isChildTag  
 

bool isChildText  
 

bool isFirstChild  
 

bool isLastChild  
 

bool isNum const string &    [static]
 

bool isNumVector const string &    [static]
 

bool isTag  
 

bool isText  
 

bool isUnsignedNum const string &    [static]
 

bool isUnsignedNumVector const string &    [static]
 

BasicReader & Left size_t   
 

Reimplemented in Reader.

size_t numChildren  
 

const BasicReader & operator= const BasicReader &   
 

bool parse istream &    dataStream,
const char *    encoding = "US-ASCII"
 

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.

BasicReader & Right size_t   
 

Reimplemented in Reader.

void setErrorCode int   
 

void setErrorString const string &   
 

void setParseErrorLine int   
 

bool toNum const Field  ,
typename Field::Element   e
 

bool toNum Num &   ,
const string &   
[static]
 

bool toNumVector const Field  ,
vector< typename Field::Element > &   
 

bool toNumVector vector< Num > &   ,
const string &   ,
bool    = false
[static]
 

bool traverseChild  
 

BasicReader & Up size_t   
 

Reimplemented in Reader.

bool upToParent  
 


Member Data Documentation

list<node*>::iterator currentChild [protected]
 

node* currentNode [protected]
 

DataNode* DNode [protected]
 

const int FAILED_INIT = 2 [static]
 

const int IMPROPER_COPY_OVERWRITE = 12 [static]
 

const int NO_ERROR = 0 [static]
 

const int NO_INIT = 1 [static]
 

stack<TagTreeFrame> parentStore [protected]
 

TagNode* TNode [protected]
 


Generated on Mon Jun 20 09:16:51 2005 for linbox by doxygen1.2.18