loader.cpp File Reference

SAX-PARSER. More...

#include "loader.h"

Include dependency graph for loader.cpp:

Go to the source code of this file.

Functions

void saxBeginElement (const char *_tag)
 SAX event handler for opening tags.
void saxBeginEndElement (const char *_tag)
 SAX event handler for bachelor tags.
void saxEndElement ()
 SAX event handler for closing tags.
void saxCharacters (const char *_text)
 SAX event handler for PCDATA content.
int yyxmllex ()
 Triggers lexing of the input stream.
int saxparse ()
 Triggers parsing of the input stream.
int yyxmllex_destroy ()
 Destroys the lexer.
void destroyLexer ()
 Destroys the lexer.


Detailed Description

SAX-PARSER.

SAX-PARSER.

Author:
Michael Schmidt

Gunnar Jehl

Version:
2.1
License:
Software License Agreement (BSD License)

Definition in file loader.cpp.


Function Documentation

void destroyLexer (  ) 

Destroys the lexer.

Wrapper that calls yyxmlex(), depending on the architecture.

Return values:
int See yyxmllex_destroy().
Note:
This method was made necessary by the fact that Flex does not not provide up-to-date versions under Windows.
This is an extern method, which is defined in loader.cpp.
Return values:
void 

Definition at line 129 of file loader.cpp.

References yyxmllex_destroy().

Referenced by StreamPreProcessor::~StreamPreProcessor().

void saxBeginElement ( const char *  _tag  ) 

SAX event handler for opening tags.

Passes the opening tag to the StreamPreProcessor object.

Parameters:
[in] _tag The opening that has been received.
Return values:
void 

Definition at line 43 of file loader.cpp.

References StreamPreProcessor::getInstance(), and StreamPreProcessor::processOpeningTag().

void saxBeginEndElement ( const char *  _tag  ) 

SAX event handler for bachelor tags.

Passes the bachelor tag to the StreamPreProcessor object.

Parameters:
[in] _tag The bachelor that has been received.
Return values:
void 

Definition at line 53 of file loader.cpp.

References StreamPreProcessor::getInstance(), and StreamPreProcessor::processBachelorTag().

void saxCharacters ( const char *  _text  ) 

SAX event handler for PCDATA content.

Passes the PCDATA content to the StreamPreProcessor object.

Parameters:
[in] _text The PCDATA content that has been received.
Return values:
void 

Definition at line 91 of file loader.cpp.

References StreamPreProcessor::getInstance(), and StreamPreProcessor::processPCData().

void saxEndElement (  ) 

SAX event handler for closing tags.

Notifies the StreamPreProcessor object that a closing tag has been read.

Return values:
void 
Note:
This method is used if -DVALIDATION is turned off.
Exceptions:
Throws a ParseException if ill-formed XML is detected.

Definition at line 80 of file loader.cpp.

References StreamPreProcessor::getInstance(), and StreamPreProcessor::processClosingTag().

int saxparse (  ) 

Triggers parsing of the input stream.

The main parsing method.

Triggers lexing of the input stream. This method is externally implemented in the parser.

Return values:
int See method yyxmllex().
This is an extern method, which is defined in loader.cpp.
Return values:
int See the original definition in loader.C.

Definition at line 111 of file loader.cpp.

References yyxmllex().

Referenced by StreamPreProcessor::readAll(), and StreamPreProcessor::readNext().

int yyxmllex (  ) 

Triggers lexing of the input stream.

Triggers lexing of the input stream. This method is externally implemented in the lexer.

Return values:
int See lexer.

Referenced by saxparse().

int yyxmllex_destroy (  ) 

Destroys the lexer.

To be called after lexing has been finished.

Return values:
int See lexer.

Referenced by destroyLexer().


Generated on Sun May 24 20:20:09 2009 for G(arbage) C(ollected) X(Query) Engine by  doxygen 1.5.9