Skip to content

henc · Initialization & Options

Library initialization / termination and environment option functions

int hencInit()
  • Load S-52 data file.
  • Load user settings(data\encoptions.ini).

None

  • = 0 : Initialization Success
  • < 0 : Initialization Fail

int hencDeinit()
  • Remove all S-52 data files.
  • Delete memory and data associated with the library
  • Save current settings.

None

  • = 0 : Success
  • < 0 : Fail

int hencOptGetInt( const char *str, int def = 0 )

Reads the variable value with the name specified in the electronic chart setting INI file.

  • const char *str : IN (variable name)
  • int def : IN (The default value to use when the variable does not exist)

setting value


int hencOptSetInt( const char *str, int no )

Change the value of the variable with the name specified in the electronic chart setting INI file.

  • const chat *str : IN (variable name)
  • int no : IN (setting value)
  • = 0 : Success
  • < 0 : Fail

int hencOptSave()

Save the electronic chart settings as an INI file.

None

  • = 0 : Success
  • < 0 : Fail