|
Compounds |
struct | param |
| Parameter header structure. More...
|
struct | parmHandle |
| Configuration handle structure. More...
|
struct | parmHeader |
| Configuration header structure. More...
|
struct | parmOutput |
| Ouput control structure. More...
|
struct | section |
| Section header structure. More...
|
struct | within |
Defines |
#define | LINE_SZ 1024 |
#define | PARAM_CREATE 0x01 |
#define | P_NUM 0 |
#define | P_STR 1 |
#define | PARM_MAGIC 0x20030815 |
#define | PARM_HANDLE_FLAG_PRIVATE 0x01 |
#define | PARM_HANDLE_FLAG_PARSE_ERROR 0x02 |
Functions |
| GF_TAILQ_HEAD (withinHead, struct within) |
| GF_TAILQ_HEAD (paramHead, struct param) |
| GF_TAILQ_HEAD (sectionHead, struct section) |
| GF_TAILQ_HEAD (parmHead, struct parmHandle) |
void | gfParamInit (void) |
| Configuration initialization.
|
void | GfParmShutdown (void) |
| Configuration shutdown.
|
void * | GfParmReadBuf (char *buffer) |
| Read a configuration buffer.
|
void * | GfParmReadFile (const char *file, int mode) |
| Read a configuration file.
|
int | GfParmWriteBuf (void *handle, char *buf, int size) |
| Write a configuration buffer.
|
int | GfParmWriteFile (const char *file, void *parmHandle, char *name) |
| Write a configuration file.
|
void | GfParmRemove (void *parmHandle, char *sectionName, char *paramName) |
| Remove a parameter.
|
void | GfParmClean (void *parmHandle) |
| Clean all the parameters of a set.
|
void | GfParmReleaseHandle (void *parmHandle) |
| Clean the parms and release the handle without updating the file.
|
tdble | GfParmUnit2SI (char *unit, tdble val) |
| Convert a value in "units" into SI.
|
tdble | GfParmSI2Unit (char *unit, tdble val) |
| Convert a value in SI to "units".
|
char * | GfParmGetName (void *handle) |
| Get the pararmeters name.
|
char * | GfParmGetFileName (void *handle) |
| Get the pararmeters file name.
|
int | GfParmGetEltNb (void *handle, char *path) |
| Count the number of section elements of a list.
|
int | GfParmListSeekFirst (void *handle, char *path) |
| Seek the first section element of a list.
|
int | GfParmListSeekNext (void *handle, char *path) |
| Go to the next section element in the current list.
|
int | GfParmListClean (void *handle, char *path) |
| Remove all the section elements of a list.
|
char * | GfParmListGetCurEltName (void *handle, char *path) |
| Get The current element name.
|
char * | GfParmGetStr (void *parmHandle, char *path, char *key, char *deflt) |
| Get string parameter value.
|
char * | GfParmGetCurStr (void *handle, char *path, char *key, char *deflt) |
| Get a string parameter in a config file.
|
tdble | GfParmGetNum (void *handle, char *path, char *key, char *unit, tdble deflt) |
| Get a numerical parameter in a config file.
|
tdble | GfParmGetCurNum (void *handle, char *path, char *key, char *unit, tdble deflt) |
| Get a numerical parameter in a config file.
|
int | GfParmSetStr (void *handle, char *path, char *key, char *val) |
| Set a string parameter in a config file.
|
int | GfParmSetCurStr (void *handle, char *path, char *key, char *val) |
| Set a string parameter in a config file.
|
int | GfParmSetNum (void *handle, char *path, char *key, char *unit, tdble val) |
| Set a numerical parameter in a config file.
|
int | GfParmSetNumEx (void *handle, char *path, char *key, char *unit, tdble val, tdble min, tdble max) |
| Set a numerical parameter in a config file.
|
int | GfParmSetCurNum (void *handle, char *path, char *key, char *unit, tdble val) |
| Set a numerical parameter in a config file.
|
int | GfParmCheckHandle (void *ref, void *tgt) |
| Check a parameter set against another.
|
void * | GfParmMergeHandles (void *ref, void *tgt, int mode) |
| Merge two parameters sets into a new one.
|
int | GfParmGetNumBoundaries (void *handle, char *path, char *key, tdble *min, tdble *max) |
| Get the min and max of a numerical parameter.
|