Main Page | Modules | Namespace List | Compound List | File List | Compound Members | File Members | Related Pages

XMLReader Class Reference

simple XML-reader class More...

#include <XMLReader.h>

List of all members.

Public Member Functions

 XMLReader (char *)
 constructor, opens file to be read

 ~XMLReader ()
 destructor, closes file

bool getTagFromFile (string, long FilePosition)
 gets the content of the next "tc"-XML-Tag from a file and saves it to XMLTag

bool getTagFromFile (string)
 gets the content of the next "tc"-XML-Tag from a file and saves it to XMLTag

bool getTagFromUMString (string, UMString &)
 gets the content of the next "tc"-XML-Tag from an UMString object and saves it to XMLTag

bool getTagFromUMString (string, string, UMString &)
 gets the content of the next "tc"-XML-Tag from an UMString object and saves it to XMLTag

bool getTagFromUMString (string tc, string &attr, string &wert, UMString &umstr)
 gets the content of the next "tc"-XML-Tag from an UMString, with a attribut specified object and saves it to XMLTag

bool getNextTag ()
 gets the content of the next XML-Tag from a file


Public Attributes

XMLTag m_xmltag

Protected Attributes

FILE * m_DictionaryFile

Friends

class JXDictionary


Detailed Description

simple XML-reader class

Author:
Iris Vogel iris@urz.uni-heidelberg.de
Date:
Aug 2003


Constructor & Destructor Documentation

XMLReader::XMLReader char *  filename  ) 
 

constructor, opens file to be read

Parameters:
filename file name

XMLReader::~XMLReader  ) 
 

destructor, closes file


Member Function Documentation

bool XMLReader::getNextTag  ) 
 

gets the content of the next XML-Tag from a file

Warning:
can only be used for files with maximum line length of 256 wchar_t

bool XMLReader::getTagFromFile string  tc  ) 
 

gets the content of the next "tc"-XML-Tag from a file and saves it to XMLTag

Parameters:
tc which specifies the kind of tag we are looking for
Returns:
true, if found, false, if not found or EOF reached

bool XMLReader::getTagFromFile string  tc,
long  FilePosition
 

gets the content of the next "tc"-XML-Tag from a file and saves it to XMLTag

Parameters:
tc which specifies the kind of tag we are looking for
FilePostition position in file to look for tag
Returns:
true, if found, false, if not found or EOF reached

Todo:
by saving the findings in the XMLTag member, it will be overwritten once we start over again; return a new XMLTag object instead?

bool XMLReader::getTagFromUMString string  tc,
string &  attr,
string &  wert,
UMString umstr
 

gets the content of the next "tc"-XML-Tag from an UMString, with a attribut specified object and saves it to XMLTag

Parameters:
tc specifies the kind of tag we are looking for
umstr in which we are looking for the tag
attr attribut in XML-Tag to be looked for
wert value of the attribut
Returns:
true, if found, false, if not found or EOF reached

bool XMLReader::getTagFromUMString string  tc,
string  attr,
UMString umstr
 

gets the content of the next "tc"-XML-Tag from an UMString object and saves it to XMLTag

Parameters:
tc specifies the kind of tag we are looking for
umstr in which we are looking for the tag
attr attribut in XML-Tag to be looked for
Returns:
true, if found, false, if not found or EOF reached

bool XMLReader::getTagFromUMString string  tc,
UMString umstr
 

gets the content of the next "tc"-XML-Tag from an UMString object and saves it to XMLTag

Parameters:
tc which specifies the kind of tag we are looking for
umstr in which we are looking for the tag
Returns:
true, if found, false, if not found or EOF reached


Friends And Related Function Documentation

friend class JXDictionary [friend]
 


Member Data Documentation

FILE* XMLReader::m_DictionaryFile [protected]
 

file handle for input XML file

XMLTag XMLReader::m_xmltag
 

storage for tag objekt


The documentation for this class was generated from the following files:
Generated on Mon Aug 18 19:27:10 2003 for LeJa by doxygen 1.3.3