Public Member Functions | Protected Member Functions | Private Member Functions

alize::XmlParser Class Reference

#include <XmlParser.h>

Inheritance diagram for alize::XmlParser:
Inheritance graph
[legend]
Collaboration diagram for alize::XmlParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XmlParser ()
virtual ~XmlParser ()

Protected Member Functions

void parse ()
virtual const StringreadOneChar ()=0
virtual void eventOpeningElement (const String &path)=0
virtual void eventClosingElement (const String &path, const String &value)=0
virtual void eventError (const String &msg)=0

Private Member Functions

const StringreadNextChar ()
void test (bool, const String &msg)
void parseElement (String path, String s)
void parseAttribute (String path, String s)
bool isASeparator (String s) const
bool operator== (const XmlParser &) const
bool operator!= (const XmlParser &) const
const XmlParseroperator= (const XmlParser &)
 XmlParser (const XmlParser &)

Detailed Description

Abstract class to parse XML data. *** INTERNAL USAGE ***

Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2003

Definition at line 78 of file XmlParser.h.


Constructor & Destructor Documentation

XmlParser::XmlParser (  )

Definition at line 67 of file XmlParser.cpp.

XmlParser::~XmlParser (  ) [virtual]

Definition at line 186 of file XmlParser.cpp.

alize::XmlParser::XmlParser ( const XmlParser  ) [private]

Not implemented


Member Function Documentation

virtual void alize::XmlParser::eventClosingElement ( const String path,
const String value 
) [protected, pure virtual]
virtual void alize::XmlParser::eventError ( const String msg ) [protected, pure virtual]
virtual void alize::XmlParser::eventOpeningElement ( const String path ) [protected, pure virtual]
bool XmlParser::isASeparator ( String  s ) const [private]

Definition at line 181 of file XmlParser.cpp.

Referenced by parseAttribute(), parseElement(), and readNextChar().

bool alize::XmlParser::operator!= ( const XmlParser  ) const [private]

Not implemented

const XmlParser& alize::XmlParser::operator= ( const XmlParser  ) [private]

Not implemented

bool alize::XmlParser::operator== ( const XmlParser  ) const [private]
void XmlParser::parse (  ) [protected]

Definition at line 70 of file XmlParser.cpp.

References parseElement(), readNextChar(), readOneChar(), and test().

Referenced by alize::ConfigFileReaderXml::readConfig().

void XmlParser::parseAttribute ( String  path,
String  s 
) [private]
void XmlParser::parseElement ( String  path,
String  s 
) [private]
const String & XmlParser::readNextChar (  ) [private]

Definition at line 170 of file XmlParser.cpp.

References isASeparator(), and readOneChar().

Referenced by parse(), parseAttribute(), and parseElement().

virtual const String& alize::XmlParser::readOneChar (  ) [protected, pure virtual]
void XmlParser::test ( bool  v,
const String msg 
) [private]

Definition at line 184 of file XmlParser.cpp.

References eventError().

Referenced by parse(), parseAttribute(), and parseElement().


The documentation for this class was generated from the following files: