Class DefaultClassParseListener
Provides a simple implementation of the ClassParseListener class.
Note: Return and argument types for methods in this class vary depending on the particular API DLL (x86/x64 platform, single/double precision) being used. Please read the section Using the Hugin C#/.NET Core/.NET 5/.NET 6 API.
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.8-netstandard2.0-x64.dll
Syntax
public class DefaultClassParseListener : ClassParseListener, ParseListener
Remarks
It is assumed that that the NET file for a Class for which an instance is required can be found in the directory from which the application program is started.
Constructors
DefaultClassParseListener()
Declaration
public DefaultClassParseListener()
Methods
InsertClass(string, ClassCollection)
This implementation of the InsertClass(string, ClassCollection) method simply
calls the ParseClasses(string, ClassParseListener) method with arguments
className + ".net" and this.
Declaration
public void InsertClass(string className, ClassCollection cc)
Parameters
| Type | Name | Description |
|---|---|---|
| string | className | |
| ClassCollection | cc |
Remarks
Note that this simple implementation requires that the application program is started in the directory where the relevant Hugin NET files are stored.
ParseError(ulong, string)
This implementation of the ParseError(ulong, string) method simply prints the line number and parse error message to Console.Error.
Declaration
public void ParseError(ulong line, string msg)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | line | |
| string | msg |
Remarks
Generic declaration:
public void ParseError (size_t line, String msg)