Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::ParseListener Class Reference

Inheritance diagram for HAPI::ParseListener:

HAPI::ClassParseListener HAPI::DefaultParseListener List of all members.

Detailed Description

The ParseListener class is an abstract class, which provides an interface for the other parse listeners to use.

The parse listener used when one wants to call the Domain constructor should be created by implementing the ParseListener class.

The parse listener used when calling the parseClasses method of the ClassCollection class should be created by implementing the ClassParseListener subclass.


Public Member Functions

virtual void parseError (int line, const std::string &msg)=0
 Error handler for parse errors.


Member Function Documentation

virtual void HAPI::ParseListener::parseError int  line,
const std::string &  msg
[pure virtual]
 

Error handler for parse errors.

The parseError method must be provided by the user in a specialized class derived from class ParseError. The error handling itself is determined by the user.

Parameters:
line int - The line number determining where in the NET file the parse error was encountered
msg string - The message to be issued when encountering the parse error.

Implemented in HAPI::DefaultParseListener.


Copyright Hugin Expert A/S 1993-2004