Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::ClassParseListener Class Reference

Inheritance diagram for HAPI::ClassParseListener:

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

Detailed Description

The ClassParseListener interface is used when one wants to call the parseClasses (String, ParseListener) method of the ClassCollection class.

You must implement your own subclass of ParseListener with your own parseError and insertClass methods.

As an alternative to implementing the ParseListener yourself, you may wish to use the DefaultParseListener class.

See also:
Domain::Domain (String, ParseListener)

ClassCollection::parseClasses (String, ParseListener)

DefaultParseListener


Public Member Functions

virtual void insertClass (ClassCollection *cc, std::string name)=0
 Whenever the Hugin net parser encounters a class not defined in the NET file, the parser calls the insertClass method of the ParseListener object provided as an argument to the parseClasses (String, ParseListener) method.


Member Function Documentation

virtual void HAPI::ClassParseListener::insertClass ClassCollection cc,
std::string  name
[pure virtual]
 

Whenever the Hugin net parser encounters a class not defined in the NET file, the parser calls the insertClass method of the ParseListener object provided as an argument to the parseClasses (String, ParseListener) method.

An implementation of the insertClass method is required.

Parameters:
cc A pointer to the ClassCollection object, in which the parsed classes must be inserted.
name The name of the Class which needs to be located and inserted.

Implemented in HAPI::DefaultParseListener.


Copyright Hugin Expert A/S 1993-2004