Handling of multiple sections or subsections and the elements in parameter sets. More...
|
Functions | |
| int | GfParmGetEltNb (void *handle, const char *path) |
| Count the number of subsections in a section in the parameter set handle. More... | |
| int | GfParmListSeekFirst (void *handle, const char *path) |
| Go the the first subsection element in the parameter set handle. More... | |
| int | GfParmListSeekNext (void *handle, const char *path) |
| Go the the next subsection element in the parameter set handle. More... | |
| int | GfParmListClean (void *handle, const char *path) |
| Remove all the subsections in a section in the parameter set handle. More... | |
| char * | GfParmListGetCurEltName (void *handle, const char *path) |
| Get current subsection name of the parameter set handle during subsection iteration. More... | |
| const char * | GfParmGetCurStr (void *handle, const char *path, const char *key, const char *deflt) |
| Get a string parameter from the parameter set handle based on subsection iteration. More... | |
| tdble | GfParmGetCurNum (void *handle, const char *path, const char *key, const char *unit, tdble deflt) |
| Get a numerical parameter from the parameter set handle based on subsection iteration. More... | |
| int | GfParmSetCurStr (void *handle, const char *path, const char *key, const char *val) |
| Set a string parameter in the parameter set handle based on subsection iteration. More... | |
| int | GfParmSetCurNum (void *handle, const char *path, const char *key, const char *unit, tdble val) |
| Set a numerical parameter in the parameter set handle based on subsection iteration. More... | |
Handling of multiple sections or subsections and the elements in parameter sets.
| tdble GfParmGetCurNum | ( | void * | handle, |
| const char * | path, | ||
| const char * | key, | ||
| const char * | unit, | ||
| tdble | deflt | ||
| ) |
Get a numerical parameter from the parameter set handle based on subsection iteration.
The internal state of the parameter set handle must point to a current subsection, this is done using GfParmListSeekFirst or GfParmListSeekNext. If the parameter does not exist the given default value is returned without unit conversion.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in] | handle | parameter set handle |
| [in] | path | path of the section used to iterate subsections |
| [in] | key | parameter key name |
| [in] | unit | unit to convert the result to (NULL if SI is desired) |
| [in] | deflt | default value |
Definition at line 2435 of file params.cpp.

| const char* GfParmGetCurStr | ( | void * | handle, |
| const char * | path, | ||
| const char * | key, | ||
| const char * | deflt | ||
| ) |
Get a string parameter from the parameter set handle based on subsection iteration.
The internal state of the parameter set handle must point to a current subsection, this is done using GfParmListSeekFirst or GfParmListSeekNext. If the parameter does not yet exist the given default is returned.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in] | handle | parameter set handle |
| [in] | path | path of the section used to iterate subsections |
| [in] | key | parameter key name |
| [in] | deflt | default string |
Definition at line 2354 of file params.cpp.

| int GfParmGetEltNb | ( | void * | handle, |
| const char * | path | ||
| ) |
Count the number of subsections in a section in the parameter set handle.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in] | handle | parameter set handle |
| [in] | path | path of the section containing the subsections to count |
Definition at line 2106 of file params.cpp.

| int GfParmListClean | ( | void * | handle, |
| const char * | path | ||
| ) |
Remove all the subsections in a section in the parameter set handle.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in,out] | handle | parameter set handle |
| [in] | path | path of the section containing the subsections to remove |
Definition at line 2221 of file params.cpp.

| char* GfParmListGetCurEltName | ( | void * | handle, |
| const char * | path | ||
| ) |
Get current subsection name of the parameter set handle during subsection iteration.
The internal state of the parameter set handle must point to a current subsection, this is done using GfParmListSeekFirst or GfParmListSeekNext. This call returns the name of the current subsection.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in] | handle | parameter set handle |
| [in] | path | path of the section used to iterate subsections |
Definition at line 2268 of file params.cpp.

| int GfParmListSeekFirst | ( | void * | handle, |
| const char * | path | ||
| ) |
Go the the first subsection element in the parameter set handle.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in,out] | handle | parameter set handle, interation state is internally stored |
| [in] | path | path of the section containing the subsections to iterate through |
Definition at line 2148 of file params.cpp.

| int GfParmListSeekNext | ( | void * | handle, |
| const char * | path | ||
| ) |
Go the the next subsection element in the parameter set handle.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in,out] | handle | parameter set handle, interation state is internally stored |
| [in] | path | path of the section containing the subsections to iterate through |
Definition at line 2184 of file params.cpp.

| int GfParmSetCurNum | ( | void * | handle, |
| const char * | path, | ||
| const char * | key, | ||
| const char * | unit, | ||
| tdble | val | ||
| ) |
Set a numerical parameter in the parameter set handle based on subsection iteration.
The internal state of the parameter set handle must point to a current subsection, this is done using GfParmListSeekFirst or GfParmListSeekNext. If the parameter does not yet exist it is created. The value is assigned to the value, min and max.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in,out] | handle | parameter set handle |
| [in] | path | path of the section used to iterate subsections |
| [in] | key | parameter key name |
| [in] | unit | unit to convert the result to (NULL if SI is desired) |
| [in] | val | value to set |
Definition at line 2679 of file params.cpp.

| int GfParmSetCurStr | ( | void * | handle, |
| const char * | path, | ||
| const char * | key, | ||
| const char * | val | ||
| ) |
Set a string parameter in the parameter set handle based on subsection iteration.
The internal state of the parameter set handle must point to a current subsection, this is done using GfParmListSeekFirst or GfParmListSeekNext. If the parameter does not yet exist it is created. The within constraint is not checked.
A subsection can have any name and structure, any section element enclosed by the section given in the path is a subsection.
| [in,out] | handle | parameter set handle |
| [in] | path | path of the section used to iterate subsections |
| [in] | key | parameter key name |
| [in] | val | value (NULL or empty string to remove the parameter) |
Definition at line 2532 of file params.cpp.
