henc · Initialization & Options
Library initialization / termination and environment option functions
hencInit
Section titled “hencInit”Prototype
Section titled “Prototype”int hencInit()Function
Section titled “Function”- Load S-52 data file.
- Load user settings(data\encoptions.ini).
Parameters
Section titled “Parameters”None
Return Value
Section titled “Return Value”- = 0 : Initialization Success
- < 0 : Initialization Fail
hencDeinit
Section titled “hencDeinit”Prototype
Section titled “Prototype”int hencDeinit()Function
Section titled “Function”- Remove all S-52 data files.
- Delete memory and data associated with the library
- Save current settings.
Parameters
Section titled “Parameters”None
Return Value
Section titled “Return Value”- = 0 : Success
- < 0 : Fail
hencOptGetInt
Section titled “hencOptGetInt”Prototype
Section titled “Prototype”int hencOptGetInt( const char *str, int def = 0 )Function
Section titled “Function”Reads the variable value with the name specified in the electronic chart setting INI file.
Parameters
Section titled “Parameters”- const char *str : IN (variable name)
- int def : IN (The default value to use when the variable does not exist)
Return Value
Section titled “Return Value”setting value
hencOptSetInt
Section titled “hencOptSetInt”Prototype
Section titled “Prototype”int hencOptSetInt( const char *str, int no )Function
Section titled “Function”Change the value of the variable with the name specified in the electronic chart setting INI file.
Parameters
Section titled “Parameters”- const chat *str : IN (variable name)
- int no : IN (setting value)
Return Value
Section titled “Return Value”- = 0 : Success
- < 0 : Fail
hencOptSave
Section titled “hencOptSave”Prototype
Section titled “Prototype”int hencOptSave()Function
Section titled “Function”Save the electronic chart settings as an INI file.
Parameters
Section titled “Parameters”None
Return Value
Section titled “Return Value”- = 0 : Success
- < 0 : Fail