The ClassParseListener interface is used when one wants to call the parseClasses (String, ParseListener)
method of the ClassCollection class.
More...
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. |
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.
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.
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.