Go to the source code of this file.
◆ IUPAD_INVALID
| #define IUPAD_INVALID (iupad_t) NULL |
◆ iupad_t
Simple parameters {key, value} string pairs are contained in a dictionary to be used as algorithm arguments. Typically, first create an empty dictionary and then add {key,value} pairs with iufParameterDictSet()
◆ iufParameterDictCompare()
◆ iufParameterDictCreate()
| iupad_t iufParameterDictCreate |
( |
void |
| ) |
|
Creates an empty paramter dictionary.
- Returns
- Returns the created dictionary or IUPAD_INVALID in case of an error
◆ iufParameterDictDelete()
| int iufParameterDictDelete |
( |
iupad_t |
dict | ) |
|
Delete the paramter dictionary including all its content.
- Returns
- Returns IUF_E_OK when successful and IUF_ERR_VALUE in case the dictionary is invalid.
- Parameters
-
◆ iufParameterDictGet()
| char* iufParameterDictGet |
( |
iupad_t |
dict, |
|
|
char * |
key |
|
) |
| |
Gets the value of parameter key from the dictionary.
- Returns
- Returns
value of parameters key or NULL in case it could not be found.
- Parameters
-
◆ iufParameterDictGetKeys()
| char** iufParameterDictGetKeys |
( |
iupad_t |
dict | ) |
|
◆ iufParameterDictGetSize()
| size_t iufParameterDictGetSize |
( |
iupad_t |
dict | ) |
|
Gets the number of parameter entries in the dictionary.
- Returns
- Returns the number of parameters or -1 in case of an error.
- Parameters
-
◆ iufParameterDictSet()
| int iufParameterDictSet |
( |
iupad_t |
dict, |
|
|
char * |
key, |
|
|
char * |
value |
|
) |
| |
Add a {key,value} pair to the dictionary. /return Returns IUF_E_OK when successful and IUF_ERR_VALUE in case of invalid paramters.
- Parameters
-
| dict | The IufParameterDict of interest |
| key | The parameter name |
| value | The parameter value |