class ParseListener

The ParseListener class is a virtual class, which provides an interface for the other parse listeners to use

Inheritance:


Public Methods

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

Documentation

The ParseListener class is a virtual 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 NetParseListener subclass.

The parse listener used when calling the parseClasses method of the ClassCollection class should be created by implementing the ClassParseListener subclass.

For backwards compatibility, however, implementations of the ParseListener class can be used when calling the Domain constructor.

virtual void parseError(int line, const std::string& msg)
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 - int - The line number determining where in the NET file the parse error was encountered
mesg - string - The message to be issued when encountering the parse error.


Direct child classes:
NetParseListener
ClassParseListener

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