HAPI::DefaultParseListener Class Reference

Provides a simple implementation of the ParseListener class. More...

Inheritance diagram for HAPI::DefaultParseListener:
HAPI::ClassParseListener HAPI::ParseListener

List of all members.

Public Member Functions

void insertClass (ClassCollection *cc, std::string name)
 This implementation of the insertClass method simply calls the parseClasses (String, ParseListener) method with arguments className + ".net" and this.
void parseError (int line, const std::string &msg)
 This implementation of the parseError method simply prints the line number and parse error message to stderr.

Detailed Description

Provides a simple implementation of the ParseListener class.

It is assumed that that the NET file for a Class for which an instance is required can be found in the directory from which the application program is started.


Member Function Documentation

void HAPI::DefaultParseListener::insertClass ( ClassCollection cc,
std::string  name 
) [virtual]

This implementation of the insertClass method simply calls the parseClasses (String, ParseListener) method with arguments className + ".net" and this.

Note that this simple implementation requires that the application program is started in the directory where the relevant NET files are stored.

Implements HAPI::ClassParseListener.

void HAPI::DefaultParseListener::parseError ( int  line,
const std::string &  msg 
) [virtual]

This implementation of the parseError method simply prints the line number and parse error message to stderr.

Implements HAPI::ParseListener.


Copyright Hugin Expert A/S 1993-2010