HAPI::ParseListener Class Reference

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

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

List of all members.

Public Member Functions

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

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.


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 The line number determining where in the NET file the parse error was encountered
msg The message to be issued when encountering the parse error.

Implemented in HAPI::DefaultParseListener.


Copyright Hugin Expert A/S 1993-2010