The ParseListener class is an abstract class, which provides an interface for the other parse listeners to use. More...
Public Member Functions | |
virtual void | parseError (int line, const std::string &msg)=0 |
Error handler for parse errors. |
The ParseListener class is an abstract 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 ParseListener class.
The parse listener used when calling the parseClasses method of the ClassCollection class should be created by implementing the ClassParseListener subclass.
virtual void HAPI::ParseListener::parseError | ( | int | line, | |
const std::string & | msg | |||
) | [pure virtual] |
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.
line | The line number determining where in the NET file the parse error was encountered | |
msg | The message to be issued when encountering the parse error. |
Implemented in HAPI::DefaultParseListener.