class ClassParseListener : public ParseListener

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

Inheritance:


Public Methods

virtual void insertClass(ClassCollection* cc, std::string name)
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

Inherited from ParseListener:

Public Methods

virtual void parseError(int line, const std::string& msg)

Documentation

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 insertClass(ClassCollection* cc, std::string name)
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:
ClassCollection - 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.


Direct child classes:
DefaultParseListener
See Also:
Domain::Domain(String, ParseListener)
ClassCollection::parseClasses(String, ParseListener)
DefaultParseListener

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de