libini_config  0.6.0
Enumerations
Constants that define how to look for a value

Enumerations

enum  INI_GET { INI_GET_FIRST_VALUE, INI_GET_NEXT_VALUE, INI_GET_LAST_VALUE }
 

Detailed Description

Configuration file can allow several keys with the same name in one section. Use the constants below to define which value you are looking for. You can search for the next value only if you are looking for the same section and key as in the previous search. If you specify INI_GET_NEXT_VALUE but the section or key is different from the values that were used in the previous search the value will be ignored and the function will act as if INI_GET_FIRST_VALUE is specified. This functionality allows creating an attribute list and actually fetching every value including duplicate values in a single loop.

Enumeration Type Documentation

◆ INI_GET

enum INI_GET

Enumeration of parsing errors.

Enumerator
INI_GET_FIRST_VALUE 

Get the first value (default).

INI_GET_NEXT_VALUE 

Look for the next value in the section

INI_GET_LAST_VALUE 

Look for the last value in the section