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

Reader Class Reference

#include <linbox-reader.h>

Inheritance diagram for Reader:

BasicReader XMLTree ReaderIterator List of all members.

Public Types

typedef ReaderIterator iterator
typedef const ReaderIterator const_iterator

Public Methods

 Reader ()
 Reader (istream &, const char *encoding="US-ASCII")
 Reader (const Reader &)
 ~Reader ()
const Reader & operator= (const Reader &)
bool expectTag ()
bool checkTag () const
bool expectText ()
bool checkText () const
bool expectTagName (const string &)
bool expectTagName (const char *)
bool checkTagName (const string &) const
bool checkTagName (const char *) const
template<class Num> bool expectTagNum (Num &)
template<class Num> bool checkTagNum (Num &)
template<class Num> bool expectTagNumVector (vector< Num > &)
template<class Num> bool checkTagNumVector (vector< Num > &)
template<class Field> bool expectFieldNum (const Field &, typename Field::Element &)
template<class Field> bool checkFieldNum (const Field &, typename Field::Element &)
template<class Field> bool expectFieldNumVector (const Field &, vector< typename Field::Element > &)
template<class Field> bool checkFieldNumVector (const Field &, vector< typename Field::Element > &)
bool expectTextString (string &)
template<class Num> bool expectTextNum (Num &)
template<class Num> bool expectTextNumVector (vector< Num > &, bool=false)
bool checkTextString (string &) const
template<class Num> bool checkTextNum (Num &) const
template<class Num> bool checkTextNumVector (vector< Num > &, bool=false) const
bool expectAttributeString (const string &name, string &value)
template<class Num> bool expectAttributeNum (const string &name, Num &value)
bool checkAttributeString (const string &name, string &value) const
template<class Num> bool checkAttributeNum (const string &name, Num &value) const
bool expectNChildren (const size_t &N)
bool expectAtLeastNChildren (const size_t &N)
bool expectChildTextString (string &)
template<class Num> bool expectChildTextNum (Num &)
template<class Num> bool expectChildTextNumVector (vector< Num > &, bool=false)
bool checkChildTextString (string &) const
template<class Num> bool checkChildTextNum (Num &) const
template<class Num> bool checkChildTextNumVector (vector< Num > &, bool=false) const
bool expectChildTag ()
bool checkChildTag () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
Reader & Up (size_t N=1)
Reader & Down (size_t N=1)
Reader & Right (size_t N=1)
Reader & Left (size_t N=1)

Static Public Attributes

const int TAGNAME_ERROR = 3
const int MISSING_ATT = 4
const int WRONG_ATT_TYPE = 5
const int WRONG_N_CHILD = 6
const int CHILD_NOT_DATA = 7
const int WRONG_DATA_TYPE = 8
const int CHILD_NOT_TAG = 9
const int NOT_TEXT = 10
const int NOT_TAG = 11
const int OVFLOW = 13
const int OTHER = 14

Member Typedef Documentation

typedef const ReaderIterator const_iterator
 

typedef ReaderIterator iterator
 


Constructor & Destructor Documentation

Reader (    ) 
 

Reader (  istream &   ,
const char *    encoding = "US-ASCII"
) 
 

Reader (  const Reader &    ) 
 

~Reader (    ) 
 


Member Function Documentation

Reader::const_iterator begin (    ) 
 

Reader::iterator begin (    ) 
 

bool checkAttributeNum (  const string &    name,
Num &    value
)  const
 

bool checkAttributeString (  const string &    name,
string &    value
)  const
 

bool checkChildTag (    ) 
 

bool checkChildTextNum (  Num &    )  const
 

bool checkChildTextNumVector (  vector< Num > &   ,
bool    = false
)  const
 

bool checkChildTextString (  string &    )  const
 

bool checkFieldNum (  const Field &   ,
typename Field::Element &   
) 
 

bool checkFieldNumVector (  const Field &   ,
vector< typename Field::Element > &   
) 
 

bool checkTag (    ) 
 

bool checkTagName (  const char *    )  const
 

bool checkTagName (  const string &    )  const
 

bool checkTagNum (  Num &    ) 
 

bool checkTagNumVector (  vector< Num > &    ) 
 

bool checkText (    ) 
 

bool checkTextNum (  Num &    )  const
 

bool checkTextNumVector (  vector< Num > &   ,
bool    = false
)  const
 

bool checkTextString (  string &    )  const
 

Reader & Down (  size_t    N = 1 ) 
 

Reimplemented from BasicReader.

Reader::const_iterator end (    ) 
 

Reader::iterator end (    ) 
 

bool expectAtLeastNChildren (  const size_t &    N ) 
 

bool expectAttributeNum (  const string &    name,
Num &    value
) 
 

bool expectAttributeString (  const string &    name,
string &    value
) 
 

bool expectChildTag (    ) 
 

bool expectChildTextNum (  Num &    ) 
 

bool expectChildTextNumVector (  vector< Num > &   ,
bool    = false
) 
 

bool expectChildTextString (  string &    ) 
 

bool expectFieldNum (  const Field &   ,
typename Field::Element &   
) 
 

bool expectFieldNumVector (  const Field &   ,
vector< typename Field::Element > &   
) 
 

bool expectNChildren (  const size_t &    N ) 
 

bool expectTag (    ) 
 

bool expectTagName (  const char *    ) 
 

bool expectTagName (  const string &    ) 
 

bool expectTagNum (  Num &    ) 
 

bool expectTagNumVector (  vector< Num > &    ) 
 

bool expectText (    ) 
 

bool expectTextNum (  Num &    ) 
 

bool expectTextNumVector (  vector< Num > &   ,
bool    = false
) 
 

bool expectTextString (  string &    ) 
 

Reader & Left (  size_t    N = 1 ) 
 

Reimplemented from BasicReader.

const Reader & operator= (  const Reader &    ) 
 

Reader & Right (  size_t    N = 1 ) 
 

Reimplemented from BasicReader.

Reader & Up (  size_t    N = 1 ) 
 

Reimplemented from BasicReader.


Member Data Documentation

const int CHILD_NOT_DATA = 7 [static]
 

const int CHILD_NOT_TAG = 9 [static]
 

const int MISSING_ATT = 4 [static]
 

const int NOT_TAG = 11 [static]
 

const int NOT_TEXT = 10 [static]
 

const int OTHER = 14 [static]
 

const int OVFLOW = 13 [static]
 

const int TAGNAME_ERROR = 3 [static]
 

const int WRONG_ATT_TYPE = 5 [static]
 

const int WRONG_DATA_TYPE = 8 [static]
 

const int WRONG_N_CHILD = 6 [static]
 


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