|
| | GF_TAILQ_HEAD (withinHead, struct within) |
| | GF_TAILQ_HEAD (paramHead, struct param) |
| | GF_TAILQ_HEAD (sectionHead, struct section) |
| | GF_TAILQ_HEAD (parmHead, struct parmHandle) |
| static char * | getFullName (const char *sectionName, const char *paramName) |
| | Helper function to get the full name of a parameter (full name: "sectionName/paramName").
|
| static struct param * | getParamByName (struct parmHeader *conf, const char *sectionName, const char *paramName, int flag) |
| | Helper function to get (or create) a parameter by name.
|
| static void | removeParamByName (struct parmHeader *conf, const char *sectionName, const char *paramName) |
| | Helper function to remove a parameter with given name paramName.
|
| static void | removeParam (struct parmHeader *conf, struct section *section, struct param *param) |
| | Helper function to remove given parameter.
|
| static struct param * | addParam (struct parmHeader *conf, struct section *section, const char *paramName, const char *value) |
| | Helper function to add parameter, does not check for duplicated name.
|
| static void | removeSection (struct parmHeader *conf, struct section *section) |
| | Helper function to remove a section and its contents (subsections, elements).
|
| static struct section * | addSection (struct parmHeader *conf, const char *sectionName) |
| | Helper function to add a section to a parameter set.
|
| static void | parmClean (struct parmHeader *conf) |
| | Helper function to release the parameter set content.
|
| static void | parmReleaseHandle (struct parmHandle *parmHandle) |
| | Helper function to release the handle and eventually the referenced parameter set (if the reference counter falls to 0).
|
| static void | parmReleaseHeader (struct parmHeader *conf) |
| | Helper function to release the parameter set if the reference counter is 0.
|
| static struct section * | getParent (struct parmHeader *conf, const char *sectionName) |
| | Helper function to get (or create if not found) parent section of section given in sectionName.
|
| static void | cleanUnusedSection (struct parmHeader *conf, struct section *section) |
| | Helper function to clean up unused (empty) sections starting with given section.
|
| void | GfParmInit (void) |
| | Parameter set library API initialization, set up parameter set handle cache.
|
| void | GfParmShutdown (void) |
| | Parameter set library API shutdown, removes parameter set handle cache.
|
| static struct parmHeader * | getSharedHeader (const char *file, int mode) |
| | Helper function for looking up parameter sets in the cache.
|
| static struct parmHeader * | createParmHeader (const char *file) |
| | Helper function to create header for parameter set handle.
|
| static void | addWithin (struct param *curParam, char *s1) |
| | Helper function to add "within" options to parameter curParam.
|
| static int | myStrcmp (const void *s1, const void *s2) |
| static tdble | getValNumFromStr (const char *str) |
| | Helper function to parse number.
|
| static void | xmlStartElement (void *userData, const char *name, const char **atts) |
| | Helper function to process opening XML elements.
|
| static void | xmlEndElement (void *userData, const XML_Char *name) |
| | Helper function to process closing XML elements.
|
| static int | xmlExternalEntityRefHandler (XML_Parser mainparser, const XML_Char *openEntityNames, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
| | Helper function to handle external XML entities (XML referencing over multiple files/URI's).
|
| static int | parseXml (struct parmHandle *parmHandle, char *buf, int len, int done) |
| | Helper function to parse one line of XML.
|
| static int | parserXmlInit (struct parmHandle *parmHandle) |
| | Helper function to set up XML parser in parmHandle.
|
| void * | GfParmReadBuf (char *buffer) |
| | Read parameter set from memory buffer and return handle to parameter set.
|
| void * | GfParmReadFile (const char *file, int mode) |
| | Read parameter set from file and return handle to parameter set.
|
| static int | formatXmlBuffer (char *buf, const int size, const char *format,...) |
| | Helper function to format text without truncating the output.
|
| static int | handleEntities (char *buf, const int BUFSIZE, const char *val) |
| | Helper function to convert the input line given in val into proper XML notation, the output goes into buf.
|
| static int | createIndent (char *buf, const int BUFSIZE, const int blanks) |
| | Helper function for indentation in the XML.
|
| static int | createIn (char *buf, const int BUFSIZE, withinHead *head) |
| | Helper function to support the serialization into the XML of the "within" attribute.
|
| static int | xmlGetOuputLine (struct parmHandle *parmHandle, char *buffer, int size) |
| | Helper function to output one line of XML generated from the given parameter set.
|
| int | GfParmWriteBuf (void *handle, char *buf, int size) |
| | Write a parameter set into a memory buffer.
|
| void | GfParmSetDTD (void *parmHandle, char *dtd, char *header) |
| | Set the dtd path and header.
|
| int | GfParmWriteFile (const char *file, void *parmHandle, const char *name) |
| | Write parameter set into file.
|
| int | GfParmCreateDirectory (const char *file, void *parmHandle) |
| | Create directory for parameter set handle if it does not yet exist.
|
| void | GfParmRemove (void *parmHandle, char *sectionName, char *paramName) |
| | Remove a parameter from a parameter set.
|
| void | GfParmClean (void *parmHandle) |
| | Clean all the parameters of a parameter set.
|
| void | GfParmReleaseHandle (void *parmHandle) |
| | Release given parameter set handle parmHandle.
|
| static void | evalUnit (char *unit, tdble *dest, int flg) |
| | Support function to multiply or divide dest with unit conversion factor.
|
| tdble | GfParmUnit2SI (const char *unit, tdble val) |
| | Convert a value given in unit to SI.
|
| tdble | GfParmSI2Unit (const char *unit, tdble val) |
| | Convert a value from SI to given unit.
|
| char * | GfParmGetName (void *handle) |
| | Get the name property of the parameter set handle.
|
| char * | GfParmGetFileName (void *handle) |
| | Get the filename property of the parameter set handle.
|
| 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 * | GfParmGetStr (void *parmHandle, const char *path, const char *key, const char *deflt) |
| | Get a string parameter from the parameter set handle.
|
| 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 | GfParmGetNum (void *handle, const char *path, const char *key, const char *unit, tdble deflt) |
| | Get a numerical parameter from the parameter set handle.
|
| 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 | GfParmSetStr (void *handle, const char *path, const char *key, const char *val) |
| | Set a string parameter in the parameter set handle.
|
| 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 | GfParmSetNum (void *handle, const char *path, const char *key, const char *unit, tdble val) |
| | Set a numerical parameter in the parameter set handle.
|
| int | GfParmSetNumEx (void *handle, const char *path, const char *key, const char *unit, tdble val, tdble min, tdble max) |
| | Set a numerical parameter and its bounds, creating it if necessary.
|
| 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.
|
| int | GfParmCheckHandle (void *ref, void *tgt) |
| | Check the values in the parameter set tgt against the min/max/within definitions in the ref parameter set.
|
| static void | insertParamMerge (struct parmHandle *parmHandle, char *path, struct param *paramRef, struct param *param) |
| | Helper function to merge a parameter into a parameter set.
|
| static void | insertParam (struct parmHandle *parmHandle, char *path, struct param *param) |
| | Helper function to insert a parameter into a parameter set.
|
| void * | GfParmMergeHandles (void *ref, void *tgt, int mode) |
| | Merge two parameter sets into a new private set.
|
| int | GfParmGetNumBoundaries (void *handle, const char *path, const char *key, tdble *min, tdble *max) |
| | Get the min and max of a numerical parameter from the parameter set handle.
|