Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ixion::xml_file Class Reference

#include <ixlib_xml.hh>

List of all members.

Public Methods

 xml_file ()
 ~xml_file ()
void read (istream &istr)
void write (ostream &ostr)
taggetRootTag ()
void setRootTag (tag *newroot)
void clear ()

Public Attributes

friend tag

Protected Types

typedef scanner::token_list::const_iterator token_iterator

Protected Methods

void parse (scanner::token_list const &tokenlist)

Protected Attributes

tagRootTag

Static Protected Methods

void skipComment (token_iterator &first, token_iterator const &last)


Detailed Description

An Object implementing an XML file parser and writer.

tag::Children and tag::Text use the same indices. Thus, in the following piece of XML

<XML> paff <EXPLOSION/> puff </XML>

Text[0] would be "paff", Children[0] would be "EXPLOSION", Text[1] would be "puff".

Definition at line 72 of file ixlib_xml.hh.


Member Typedef Documentation

typedef scanner::token_list::const_iterator ixion::xml_file::token_iterator [protected]
 

Definition at line 74 of file ixlib_xml.hh.


Constructor & Destructor Documentation

ixion::xml_file::xml_file ( ) [inline]
 

Definition at line 146 of file ixlib_xml.hh.

ixion::xml_file::~xml_file ( ) [inline]
 

Definition at line 149 of file ixlib_xml.hh.


Member Function Documentation

void ixion::xml_file::clear ( ) [inline]
 

Definition at line 163 of file ixlib_xml.hh.

tag * ixion::xml_file::getRootTag ( ) [inline]
 

Definition at line 156 of file ixlib_xml.hh.

void ixion::xml_file::parse ( scanner::token_list const & tokenlist ) [protected]
 

void ixion::xml_file::read ( istream & istr )
 

void ixion::xml_file::setRootTag ( tag * newroot ) [inline]
 

Definition at line 159 of file ixlib_xml.hh.

Referenced by clear().

void ixion::xml_file::skipComment ( token_iterator & first,
token_iterator const & last ) [static, protected]
 

void ixion::xml_file::write ( ostream & ostr )
 


Member Data Documentation

tag* ixion::xml_file::RootTag [protected]
 

Definition at line 143 of file ixlib_xml.hh.

friend ixion::xml_file::tag
 

Definition at line 140 of file ixlib_xml.hh.


The documentation for this class was generated from the following file:
Generated at Tue Apr 17 18:29:47 2001 for ixlib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001