Functions | |
| LIBEXPORT void | IniClose (INIHANDLE iniptr) |
| LIBEXPORT int | IniDeleteField (INIHANDLE iniptr, const char *group, const char *field) |
| LIBEXPORT int | IniDeleteGroup (INIHANDLE iniptr, const char *group) |
| LIBEXPORT ERRVALUE | IniFlush (INIHANDLE iniptr) |
| LIBEXPORT int | IniGetBuffer (INIHANDLE iniptr, MIUNICODE **buffer) |
| LIBEXPORT const FILEPATH & | IniGetFilePath (INIHANDLE inihandle) |
| LIBEXPORT int | IniIsWritable (INIHANDLE iniptr) |
| LIBEXPORT ERRVALUE | IniListAdd (const FILEPATH &filepath) |
| LIBEXPORT void | IniListClear () |
| LIBEXPORT ERRVALUE | IniOpen (const FILEPATH &filepath, INIHANDLE *iniptr, UINT32 flags=INIFLAG_None) |
| LIBEXPORT int | IniOpen (const char *basefilename, INIHANDLE *iniptr, UINT32 flags=INIFLAG_None) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, MIUNICODE *str, int size) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, char *str, int size) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, double &value, double dft, double min, double max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, double &value, double dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, double &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, float &value, float dft, float min, float max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, float &value, float dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, float &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, unsigned long &value, unsigned long dft, unsigned long min, unsigned long max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, unsigned long &value, unsigned long dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, unsigned long &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, long &value, long dft, long min, long max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, long &value, long dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, long &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, unsigned int &value, unsigned int dft, unsigned int min, unsigned int max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, unsigned int &value, unsigned int dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, unsigned int &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, int &value, int dft, int min, int max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, int &value, int dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, int &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, UINT16 &value, UINT16 dft, UINT16 min, UINT16 max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, UINT16 &value, UINT16 dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, UINT16 &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, INT16 &value, INT16 dft, INT16 min, INT16 max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, INT16 &value, INT16 dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, INT16 &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, UINT8 &value, UINT8 dft, UINT8 min, UINT8 max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, UINT8 &value, UINT8 dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, UINT8 &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, INT8 &value, INT8 dft, INT8 min, INT8 max) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, INT8 &value, INT8 dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, INT8 &value) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, bool &value, bool dft) |
| int | IniRead (INIHANDLE hdl, const char *group, const char *field, bool &value) |
| bool | IniReadBoolean (INIHANDLE hdl, const char *group, const char *field, bool dft) |
| template<class _CT> | |
| int | IniReadEnum (INIHANDLE hdl, const char *group, const char *field, _CT &value, _CT dft) |
| template<class _CT> | |
| int | IniReadEnum (INIHANDLE hdl, const char *group, const char *field, _CT &value) |
| int | IniReadStringMultiLine (INIHANDLE iniptr, const char *group, const char *field, MIUNICODE *&string) |
| int | IniReadStringMultiLine (INIHANDLE iniptr, const char *group, const char *field, char *&string) |
| LIBEXPORT void | IniSetAppName (const char *AppName) |
| LIBEXPORT int | IniSetBuffer (INIHANDLE iniptr, MIUNICODE *buffer) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, const MIUNICODE *str) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, const char *str) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, double value) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, unsigned long value) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, long value) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, unsigned int value) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, int value) |
| int | IniWrite (INIHANDLE hdl, const char *group, const char *field, const bool &value) |
| LIBEXPORT int | IniWriteBoolean (INIHANDLE iniptr, const char *group, const char *field, int value) |
| int | IniWriteStringMultiLine (INIHANDLE iniptr, const char *group, const char *field, const MIUNICODE *string) |
| int | IniWriteStringMultiLine (INIHANDLE iniptr, const char *group, const char *field, const char *string) |
| LIBEXPORT void IniClose | ( | INIHANDLE | iniptr | ) |
Close handle to opened .ini file.
This function should only be called when the .ini file is opened using IniOpen.
| iniptr | Open INI file handle, NULL for default .ini file |
| LIBEXPORT int IniDeleteField | ( | INIHANDLE | iniptr, | |
| const char * | group, | |||
| const char * | field | |||
| ) |
Delete a field entry in the .ini file.
| iniptr | Open INI file handle, NULL for default .ini file |
| group | Group to find field in, uses GetAppName() if NULL |
| field | Field to delete |
| LIBEXPORT int IniDeleteGroup | ( | INIHANDLE | iniptr, | |
| const char * | group | |||
| ) |
Delete a group from the .ini file.
| iniptr | Open INI file handle, NULL for default .ini file |
| group | Group to delete |
Flush the ini buffer to the file. Only useful if INIFLAG_NoFlushOnWrite was specified in IniOpen().
| iniptr | Open INI file handle, NULL for default .ini file |
Get path to actual Ini file.
Returns empty path if handle not opened or is attached to memory buffer.
| LIBEXPORT int IniIsWritable | ( | INIHANDLE | iniptr | ) |
Determine if ini file is writable.
| iniptr | Open INI file handle, NULL for default .ini file |
| LIBEXPORT void IniListClear | ( | ) |
Clear preset list.
| LIBEXPORT ERRVALUE IniOpen | ( | const FILEPATH & | filepath, | |
| INIHANDLE * | iniptr, | |||
| UINT32 | flags = INIFLAG_None | |||
| ) |
Open INI file specified by FILEPATH.
| filepath | File path to open |
| iniptr | INI handle returned |
| LIBEXPORT int IniOpen | ( | const char * | basefilename, | |
| INIHANDLE * | iniptr, | |||
| UINT32 | flags = INIFLAG_None | |||
| ) |
Open .ini file for modification.
This function does not keep the .ini file itself open, it reads the whole file into memory and processes it internally. If NULL is passed for 'basefilename', the INIFLAG_InternalOnly flag must be specified or an error will result. IniClose must be called to free the handle returned by this function. This function is not needed if the 'standard' .ini file is to be accessed, the other Ini... functions will manage this internally. Defined flags: INIFLAG_ReadOnly Do not allow writing through this handle. INIFLAG_InternalOnly Open Ini handle for use with memory buffer. See IniGetBuffer() and IniSetBuffer() for details. Default .ini file defines: INIFILE_Host tnthost.ini Host machine specific values, one per system.
| basefilename | Name of .ini file to open (NULL for use with INIFLAG_InternalOnly) |
| iniptr | Handle to .ini file RETURNED |
| flags | Flags |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| char * | str, | |||
| int | size | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| double & | value, | |||
| double | dft, | |||
| double | min, | |||
| double | max | |||
| ) | [inline] |
Read 'double' value from INI file with default and range.
Definition at line 518 of file inidefns.h.
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| double & | value, | |||
| double | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| double & | value | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| float & | value, | |||
| float | dft, | |||
| float | min, | |||
| float | max | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| float & | value, | |||
| float | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| float & | value | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned long & | value, | |||
| unsigned long | dft, | |||
| unsigned long | min, | |||
| unsigned long | max | |||
| ) | [inline] |
Read 'unsigned long' value from INI file with default and range.
Definition at line 488 of file inidefns.h.
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned long & | value, | |||
| unsigned long | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned long & | value | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| long & | value, | |||
| long | dft, | |||
| long | min, | |||
| long | max | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| long & | value, | |||
| long | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| long & | value | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned int & | value, | |||
| unsigned int | dft, | |||
| unsigned int | min, | |||
| unsigned int | max | |||
| ) | [inline] |
Read 'unsigned int' value from INI file with default and range.
Definition at line 468 of file inidefns.h.
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned int & | value, | |||
| unsigned int | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned int & | value | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| int & | value, | |||
| int | dft, | |||
| int | min, | |||
| int | max | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| int & | value, | |||
| int | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| int & | value | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| UINT16 & | value, | |||
| UINT16 | dft, | |||
| UINT16 | min, | |||
| UINT16 | max | |||
| ) | [inline] |
Read 'UINT16' value from INI file with default and range.
Definition at line 450 of file inidefns.h.
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| INT8 & | value, | |||
| INT8 | dft, | |||
| INT8 | min, | |||
| INT8 | max | |||
| ) | [inline] |
Read 'INT8' value from INI file with default and range check.
Definition at line 423 of file inidefns.h.
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| bool & | value, | |||
| bool | dft | |||
| ) | [inline] |
| int IniRead | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| bool & | value | |||
| ) | [inline] |
| bool IniReadBoolean | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| bool | dft | |||
| ) | [inline] |
Read general boolean value from INI file with default.
If the entry does not exist in the file or any error occurs the default will be returned.
Definition at line 528 of file inidefns.h.
| int IniReadEnum | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| _CT & | value, | |||
| _CT | dft | |||
| ) | [inline] |
| int IniReadEnum | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| _CT & | value | |||
| ) | [inline] |
| int IniReadStringMultiLine | ( | INIHANDLE | iniptr, | |
| const char * | group, | |||
| const char * | field, | |||
| MIUNICODE *& | string | |||
| ) | [inline] |
Read multi-line 'MIUNICODE*' string from INI file.
| iniptr | Open INI file handle, NULL for default |
| group | Group to find field in, uses GetAppName() if NULL |
| field | Field that data is stored in |
| string | String to read into, allocated and returned |
Definition at line 575 of file inidefns.h.
| int IniReadStringMultiLine | ( | INIHANDLE | iniptr, | |
| const char * | group, | |||
| const char * | field, | |||
| char *& | string | |||
| ) | [inline] |
Read multi-line 'char*' string from INI file.
| iniptr | Open INI file handle, NULL for default |
| group | Group to find field in, uses GetAppName() if NULL |
| field | Field that data is stored in |
| string | String to read into, allocated and returned |
Definition at line 565 of file inidefns.h.
| LIBEXPORT void IniSetAppName | ( | const char * | AppName | ) |
Set application name for use when group == NULL and it overrides module name.
Set internal buffer from passed MIUNICODE string.
| iniptr | Open INI file handle, must pass INIFLAG_InternalOnly to IniOpen() |
| buffer | Buffer to pass into Ini handle |
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| const MIUNICODE * | str | |||
| ) | [inline] |
Write 'MIUNICODE* string' value to INI file.
Do NOT use this function to store multi-line strings (containing newlines). Use IniWriteStringMultiLine.
Definition at line 619 of file inidefns.h.
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| const char * | str | |||
| ) | [inline] |
Write 'char* string' value to INI file.
Do NOT use this function to store multi-line strings (containing newlines). Use IniWriteStringMultiLine.
Definition at line 615 of file inidefns.h.
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| double | value | |||
| ) | [inline] |
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned long | value | |||
| ) | [inline] |
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| long | value | |||
| ) | [inline] |
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| unsigned int | value | |||
| ) | [inline] |
| int IniWrite | ( | INIHANDLE | hdl, | |
| const char * | group, | |||
| const char * | field, | |||
| int | value | |||
| ) | [inline] |