Public Member Functions

HAPI::ClassParseListener Class Reference

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

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

List of all members.

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.

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

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:
ccA pointer to the ClassCollection object, in which the parsed classes must be inserted.
nameThe name of the Class which needs to be located and inserted.

Implemented in HAPI::DefaultParseListener.


Copyright Hugin Expert A/S 1993-2024