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. | |
| int | GfParmListSeekFirst (void *handle, const char *path) |
| Select the first immediate subsection of a section. | |
| int | GfParmListSeekNext (void *handle, const char *path) |
| Advance to the next immediate subsection. | |
| int | GfParmListClean (void *handle, const char *path) |
| Remove all the subsections in a section in the parameter set handle. | |
| char * | GfParmListGetCurEltName (void *handle, const char *path) |
| Get current subsection name of the parameter set handle during subsection iteration. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
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 | Fallback value already expressed in the requested unit. |
Definition at line 2578 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 | Borrowed fallback string, possibly NULL. |
Definition at line 2496 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 2243 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 2362 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 2410 of file params.cpp.

| int GfParmListSeekFirst | ( | void * | handle, |
| const char * | path ) |
Select the first immediate subsection of a section.
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; the cursor is stored in the shared section, not privately in this handle. |
| [in] | path | path of the section containing the subsections to iterate through |
Definition at line 2286 of file params.cpp.

| int GfParmListSeekNext | ( | void * | handle, |
| const char * | path ) |
Advance to the next immediate subsection.
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; changes the shared section cursor. |
| [in] | path | path of the section containing the subsections to iterate through |
Definition at line 2323 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 of val (NULL or empty for SI); converted to SI for storage and copied for later serialization. |
| [in] | val | value to set |
Definition at line 2834 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 2682 of file params.cpp.
