|
ZOO-Project
|
Functions | |
| void | _dumpMap (map *pmMap) |
| Dump a map on stderr. More... | |
| void | dumpMap (map *pmMap) |
| Dump a map on stderr, see _dumpMap() More... | |
| void | dumpMapToFile (map *pmMap, FILE *pfFile) |
| Dump a map to a file. More... | |
| void | dumpMaps (maps *pmMap) |
| Dump a maps on stderr, see dumpMap(). More... | |
| void | _dumpMapsToFile (maps *pmsMaps, FILE *psFile, int iLimit) |
| Dump a maps to a file, see dumpMapToFile(). More... | |
| void | dumpMapsToFile (maps *pmsMaps, char *pcaFilePath, int iLimit) |
| Dump a maps to a file, see _dumpMapsToFile(). More... | |
| iotype * | createIoType () |
| Create a new iotype*. More... | |
| map * | createMap (const char *pccName, const char *pccValue) |
| Create a new map. More... | |
| maps * | createMaps (const char *pccName) |
| Create a new maps with the given name. More... | |
| int | count (map *pmMap) |
| Count number of map in a map. More... | |
| int | countMaps (maps *pmsMap) |
| Count number of maps in a maps. More... | |
| int | countMapName (map *pmMap, const char *value) |
| Count number of a specific map in a map. More... | |
| int | countMapNameValue (map *pmMap, const char *value) |
| Count number of a specific map value in a map. More... | |
| int | maps_length (maps *pmMap) |
| Count number of maps in a maps. More... | |
| bool | hasKey (map *pmMap, const char *pccKey) |
| Verify if a key exist in a map. More... | |
| maps * | getMaps (maps *pmsMaps, const char *pccKey) |
| Access a specific maps. More... | |
| map * | getMap (map *pmMap, const char *pccKey) |
| Access a specific map. More... | |
| map * | getLastMap (map *pmMap) |
| Access the last map. More... | |
| map * | getMapFromMaps (maps *pmMap, const char *pccKey, const char *pccSubkey) |
| Access a specific map from a maps. More... | |
| void | freeMap (map **pmMap) |
| Free allocated memory of a map. More... | |
| void | freeMaps (maps **pmMap) |
| Free allocated memory of a maps. More... | |
| bool | hasElement (elements *peElem, const char *pccKey) |
| Verify if an elements contains a name equal to the given key. More... | |
| elements * | getElements (elements *peElem, const char *pccKey) |
| Access a specific elements named key. More... | |
| void | freeIOType (iotype **piotIO) |
| Free allocated memory of an iotype. More... | |
| void | freeElements (elements **peElem) |
| Free allocated memory of an elements. More... | |
| service * | createService () |
| Allocate memory for a service. More... | |
| void | freeService (service **psService) |
| Free allocated memory of a service. More... | |
| void | addToMap (map *pMap, const char *pccName, const char *pccValue) |
| Add key value pair to an existing map. More... | |
| void | addToMapA (map *pMap, const char *pccName, const char *pccValue) |
| Add key value pair to an existing map or append the value. More... | |
| void | addToMapAF (map *pMap, const char *pccName, const char *pccValue, const char *pccSeparator) |
| Add key value pair to an existing map or append the value. More... | |
| void | addIntToMap (map *pMap, const char *pccName, const int iValue) |
| Add a key and an integer value to an existing map. More... | |
| map * | addToMapWithSize (map *pMap, const char *pccName, const char *pccValue, int iSize) |
| Add a key and a binary value to an existing map. More... | |
| void | addMapToMap (map **pmMapOut, map *pmMapIn) |
| Add a map at the end of another map. More... | |
| void | addMapToIoType (iotype **piotType, map *pmMap) |
| Add a map to iotype. More... | |
| map * | getMapOrFill (map **ppmMap, const char *pccKey, const char *pccValue) |
| Access a specific map or set its value. More... | |
| bool | contains (map *pmMap, map *pmSearch) |
| Verify if a map is contained in another map. More... | |
| iotype * | getIoTypeFromElement (elements *peElem, char *pcName, map *pcValues) |
| Access a specific iotype from an elements. More... | |
| void | loadMapBinary (map **ppmOut, map *pmIn, int iPos) |
| Load binary values from a map (in) and add them to another map (out) More... | |
| void | loadMapBinaries (map **ppmOut, map *pmIn) |
| Load binary values from a map (in) and add them to another map (out). More... | |
| maps * | dupMaps (maps **ppmsOut) |
| Duplicate a Maps. More... | |
| void | addMapsToMaps (maps **ppmsOut, maps *pmIn) |
| Add a maps at the end of another maps. More... | |
| map * | getMapArray (map *pmMap, const char *pccKey, int iIndex) |
| Access a specific map array element. More... | |
| char * | getMapArrayKey (map *pmMap, const char *pccKey, int iIndex) |
| Get the key name for a specific map array element. More... | |
| void | setMapArray (map *pmMap, const char *pccKey, int iIndex, const char *pccValue) |
| Add a key value in a MapArray for a specific index. More... | |
| void | addIntToMapArray (map *pmMap, const char *pccName, int iIndex, const unsigned long icValue) |
| Add a key and an integer value to an existing map array. More... | |
| map * | getMapType (map *pmMap) |
| Access the map "type". More... | |
| int | addMapsArrayToMaps (maps **pmsOut, maps *pmsIn, char *pcType) |
| Add a Maps containing a MapArray to a Maps. More... | |
| void | setMapInMaps (maps *pmsMaps, const char *pccKey, const char *pccSubkey, const char *pccValue) |
| Set a key value pair to a map contained in a Maps. More... | |
| elements * | createEmptyElements () |
| Create an empty elements. More... | |
| elements * | createElements (const char *pcName) |
| Create a named elements. More... | |
| void | setElementsName (elements **ppeElem, char *pcName) |
| Set the name of an elements. More... | |
| void | dumpElements (elements *peElem) |
| Dump an elements on stderr. More... | |
| void | dumpElementsAsYAML (elements *peElem, int iLevel) |
| Dump an elements on stderr using the YAML syntaxe. More... | |
| elements * | dupElements (elements *peElem) |
| Duplicate an elements. More... | |
| void | addToElements (elements **ppeElem, elements *peELem) |
| Add an elements to another elements. More... | |
| void | setServiceName (service **ppsServ, char *pcName) |
| Set the name of a service. More... | |
| void | dumpService (service *psServ) |
| Dump a service on stderr. More... | |
| void | dumpServiceAsYAML (service *psServ) |
| Dump a service on stderr using the YAML syntaxe. More... | |
| service * | dupService (service *psServ) |
| Duplicate a service. More... | |
| void | dumpRegistry (registry *prReg) |
| Print the registry on stderr. More... | |
| bool | addServiceToRegistry (registry **prReg, char *pcName, service *psContent) |
| Add a service to the registry. More... | |
| void | freeRegistry (registry **prReg) |
| Free memory allocated for the registry. More... | |
| service * | getServiceFromRegistry (registry *prReg, char *pcLevel, char *pcName) |
| Access a service in the registry. More... | |
| void | inheritMap (map **ppmOut, map *pmIn) |
| Apply inheritance to an out map from a reference in map. More... | |
| void | inheritIOType (iotype **ppiotOut, iotype *piotIn) |
| Apply inheritance to an out iotype from a reference in iotype. More... | |
| void | inheritElements (elements **ppeOut, elements *peIn) |
| Apply inheritance to an out elements from a reference in elements. More... | |
| void | inheritance (registry *prReg, service **psServ) |
| Apply inheritance to a service based on a registry. More... | |
| void | mapsToCharXXX (maps *pmsMap, char ***pppcValues) |
| Convert a maps to a char*** (only used for Fortran support) More... | |
| void | charxxxToMaps (char ***pppcValues, maps **ppmsMaps) |
| Convert a char*** to a maps (only used for Fortran support) More... | |
| bool | nonempty (map *pmMap) |
| Verify that a map has a value. More... | |
| bool | hasvalue (maps *pmsSource, const char *pccNode, const char *pccKey, map **ppmKvp) |
| Verify that a particular map value exists in a maps data structure, and obtain that value. More... | |
| void | setErrorMessage (maps *&pmsaConf, const char *pccService, WPSException weExc, const char *pccMessage) |
| void | logMessage (const char *pccSource, const char *pccFunction, int iLne, const char *pccFile, const char *pccMessage) |
| Print debug message. More... | |
| char * | allocateMapValue (map *pmNode, size_t sNumBytes) |
| char * | getValueFromMaps (maps *inputs, const char *name) |
| void | _translateChar (char *str, char toReplace, char toReplaceBy) |
| Replace a char by another one in a string. More... | |
| char * | translateCharMap (const char *str, map *rep) |
| Replace all "val" occurence with the corresponding "rep" value in a string. More... | |
| void | updateCnt (maps *conf, const char *field, const char *type) |
| Update the counter value (in conf / lenv / serviceCnt. More... | |
| bool | compareCnt (maps *conf, const char *field, const char *type) |
| Compare a value with conf / lenv / serviceCnt. More... | |
| void _dumpMap | ( | map * | pmMap | ) |
Dump a map on stderr.
| pmMap | the map to dump |
| void _dumpMapsToFile | ( | maps * | pmsMaps, |
| FILE * | psFile, | ||
| int | iLimit | ||
| ) |
Dump a maps to a file, see dumpMapToFile().
| pmsMaps | the map to dump |
| psFile | the the file pointer to store the map |
| iLimit | the number of maps to print (0 for no limit) |
| void _translateChar | ( | char * | str, |
| char | toReplace, | ||
| char | toReplaceBy | ||
| ) |
Replace a char by another one in a string.
| str | the string to update |
| toReplace | the char to replace |
| toReplaceBy | the char that will be used |
| void addIntToMap | ( | map * | pMap, |
| const char * | pccName, | ||
| const int | iValue | ||
| ) |
Add a key and an integer value to an existing map.
| pMap | the map to add the KVP |
| pccName | the key to add |
| iValue | the corresponding value to add |
| void addIntToMapArray | ( | map * | pmMap, |
| const char * | pccName, | ||
| int | iIndex, | ||
| const unsigned long | icValue | ||
| ) |
Add a key and an integer value to an existing map array.
| pmMap | the map to add the KVP |
| pccName | the key to add |
| iIndex | the index of the MapArray |
| icValue | the corresponding value to add |
Add a Maps containing a MapArray to a Maps.
| pmsOut | the maps |
| pmsIn | the maps |
| pcType | the map "type" |
Add a maps at the end of another maps.
| ppmsOut | the maps to add mi |
| pmIn | the maps to add to mo |
Add a map to iotype.
| piotType | the iotype to add the map |
| pmMap | the map to add to io |
Add a map at the end of another map.
| pmMapOut | the map to add pmMapIn to |
| pmMapIn | the map to add to pmMapOut |
Add a service to the registry.
| prReg | the resgitry to add the service |
| pcName | the registry name to update |
| psContent | the service to add |
Add an elements to another elements.
| ppeElem | the elements to add the e |
| peELem | the elements to be added to m |
| void addToMap | ( | map * | pMap, |
| const char * | pccName, | ||
| const char * | pccValue | ||
| ) |
Add key value pair to an existing map.
| pMap | the map to add the KVP |
| pccName | the key to add |
| pccValue | the corresponding value to add |
| void addToMapA | ( | map * | pMap, |
| const char * | pccName, | ||
| const char * | pccValue | ||
| ) |
Add key value pair to an existing map or append the value.
| pMap | the map to add the KVP |
| pccName | the key to add |
| pccValue | the corresponding value to add |
| void addToMapAF | ( | map * | pMap, |
| const char * | pccName, | ||
| const char * | pccValue, | ||
| const char * | pccSeparator | ||
| ) |
Add key value pair to an existing map or append the value.
Use the pccSeparator parameter to separate the values.
| pMap | the map to add the KVP |
| pccName | the key to add |
| pccValue | the corresponding value to add |
| pccSeparator | the separator to use |
Add a key and a binary value to an existing map.
| pMap | the map to add the KVP |
| pccName | the key to add |
| pccValue | the corresponding value to add |
| iSize | the size of the given value |
| char* allocateMapValue | ( | map * | pmNode, |
| size_t | sNumBytes | ||
| ) |
| void charxxxToMaps | ( | char *** | pppcValues, |
| maps ** | ppmsMaps | ||
| ) |
Convert a char*** to a maps (only used for Fortran support)
| pppcValues | the array to convert |
| ppmsMaps | the resulting maps |
| bool compareCnt | ( | maps * | conf, |
| const char * | field, | ||
| const char * | type | ||
| ) |
Compare a value with conf / lenv / serviceCnt.
| conf | the conf maps containing the main.cfg settings |
| field | the value to compare with (serviceCntLimit or serviceCntSkip) |
| type | comparison operator can be : elower, lower, eupper, upper, or equal |
Verify if a map is contained in another map.
| pmMap | the map to search for i |
| pmSearch | the map to search in m |
| int count | ( | map * | pmMap | ) |
Count number of map in a map.
| pmMap | the map to count |
| int countMapName | ( | map * | pmMap, |
| const char * | value | ||
| ) |
Count number of a specific map in a map.
| pmMap | the map to count |
| int countMapNameValue | ( | map * | pmMap, |
| const char * | value | ||
| ) |
Count number of a specific map value in a map.
| pmMap | the map to count |
| int countMaps | ( | maps * | pmsMap | ) |
Count number of maps in a maps.
| pmsMap | the maps to count |
| elements* createElements | ( | const char * | pcName | ) |
Create a named elements.
| pcName | the elements name |
| elements* createEmptyElements | ( | ) |
Create an empty elements.
| iotype* createIoType | ( | ) |
Create a new iotype*.
| map* createMap | ( | const char * | pccName, |
| const char * | pccValue | ||
| ) |
Create a new map.
| pccName | the key to add to the map |
| pccValue | the corresponding value to add to the map |
| maps* createMaps | ( | const char * | pccName | ) |
Create a new maps with the given name.
| pccName | of the maps |
| service* createService | ( | ) |
Allocate memory for a service.
Require to call free after calling this function.
| void dumpElements | ( | elements * | peElem | ) |
Dump an elements on stderr.
| peElem | the elements to dump |
| void dumpElementsAsYAML | ( | elements * | peElem, |
| int | iLevel | ||
| ) |
Dump an elements on stderr using the YAML syntaxe.
| peElem | the elements to dump |
| iLevel | the current level |
| void dumpMap | ( | map * | pmMap | ) |
Dump a map on stderr, see _dumpMap()
| pmMap | the map to dump |
| void dumpMapsToFile | ( | maps * | pmsMaps, |
| char * | pcaFilePath, | ||
| int | iLimit | ||
| ) |
Dump a maps to a file, see _dumpMapsToFile().
| pmsMaps | the map to dump |
| pcaFilePath | the the file pointer to store the map |
| iLimit | the number of maps to print (0 for no limit) |
| void dumpMapToFile | ( | map * | pmMap, |
| FILE * | pfFile | ||
| ) |
Dump a map to a file.
| pmMap | the map to dump to file |
| pfFile | the file pointer to store the map |
| void dumpRegistry | ( | registry * | prReg | ) |
Print the registry on stderr.
| prReg | the registry |
| void dumpService | ( | service * | psServ | ) |
Dump a service on stderr.
| psServ | the service to dump |
| void dumpServiceAsYAML | ( | service * | psServ | ) |
Dump a service on stderr using the YAML syntaxe.
| psServ | the service to dump |
Duplicate an elements.
| peElem | the elements to clone |
Duplicate a Maps.
| ppmsOut | the maps to clone |
Duplicate a service.
| psServ | the service to clone |
| void freeElements | ( | elements ** | peElem | ) |
Free allocated memory of an elements.
Require to call free on e after calling this function.
| peElem | the iotype to free |
| void freeIOType | ( | iotype ** | piotIO | ) |
Free allocated memory of an iotype.
Require to call free on i after calling this function.
| piotIO | the iotype to free |
| void freeMap | ( | map ** | pmMap | ) |
Free allocated memory of a map.
Require to call free on mo after calling this function.
| pmMap | the map to free |
| void freeMaps | ( | maps ** | pmMap | ) |
Free allocated memory of a maps.
Require to call free on mo after calling this function.
| pmMap | the maps to free |
| void freeRegistry | ( | registry ** | prReg | ) |
Free memory allocated for the registry.
| prReg | the registry |
| void freeService | ( | service ** | psService | ) |
Free allocated memory of a service.
Require to be invoked for every createService call.
| psService | the service to free |
Access a specific elements named key.
| peElem | the elements to search |
| pccKey | the elements name to search |
Access a specific iotype from an elements.
| peElem | the elements to search for the name |
| pcName | the name to search in the elements e |
| pcValues | the map to verify it was contained in the defaults or supported content of the elements e |
Access the last map.
| pmMap | the map to search for the lastest map |
Access a specific map.
| pmMap | the map to search for the key |
| pccKey | the key to search in the map |
Access a specific map array element.
| pmMap | the map to search for the key |
| pccKey | the key to search in the map |
| iIndex | of the MapArray |
| char* getMapArrayKey | ( | map * | pmMap, |
| const char * | pccKey, | ||
| int | iIndex | ||
| ) |
Get the key name for a specific map array element.
| pmMap | the map to search for the key |
| pccKey | the key to search in the map |
| iIndex | of the MapArray |
Access a specific map from a maps.
| pmMap | the maps to search for the key |
| pccKey | the key to search in the maps |
| pccSubkey | the key to search in the map (found for the key, if any) |
Access a specific map or set its value.
| ppmMap | the map to search for the key |
| pccKey | the key to search/add in the map |
| pccValue | the value to add if the key does not exist |
Access a specific maps.
| pmMap | the maps to search for the key |
| pccKey | the key to search in the maps |
Access the map "type".
| pmMap | the map |
Access a service in the registry.
| prReg | the registry |
| pcLevel | the regitry to search ("concept", "generic" or "implementation") |
| pcName | the service name |
| char* getValueFromMaps | ( | maps * | inputs, |
| const char * | name | ||
| ) |
| bool hasElement | ( | elements * | peElem, |
| const char * | pccKey | ||
| ) |
Verify if an elements contains a name equal to the given key.
| peElem | the elements to search for the key |
| pccKey | the elements name to search |
| bool hasKey | ( | map * | pmMap, |
| const char * | pccKey | ||
| ) |
Verify if a key exist in a map.
| pmMap | the map to search for the key |
| pccKey | the key to search in the map |
Verify that a particular map value exists in a maps data structure, and obtain that value.
| pmsSource | pointer to maps structure |
| pccNode | name of maps node to search |
| pccKey | name of map node to find |
| ppmKvp | address to the map* if it exists, otherwise NULL |
Apply inheritance to a service based on a registry.
| prReg | the registry storing profiles hierarchy |
| psServ | the service to update depending on its inheritance |
Apply inheritance to an out elements from a reference in elements.
| ppeOut | the elements to update |
| peIn | the reference elements (containing inherited properties) |
Apply inheritance to an out iotype from a reference in iotype.
| ppiotOut | the iotype to update |
| piotIn | the reference iotype (containing inherited properties) |
Apply inheritance to an out map from a reference in map.
| ppmOut | the map to update |
| pmIn | the reference map (containing inherited properties) |
Load binary values from a map (in) and add them to another map (out).
This function will take care of MapArray.
| ppmOut | the map to add binaries values |
| pmIn | the map containing the binary values to add ti out |
Load binary values from a map (in) and add them to another map (out)
| pmOut | the map to add binaries values |
| pmIn | the map containing the binary values to add ti out |
| iPos | index of the binary in an array (in case of "MapArray") |
| void logMessage | ( | const char * | pccSource, |
| const char * | pccFunction, | ||
| int | iLne, | ||
| const char * | pccFile, | ||
| const char * | pccMessage | ||
| ) |
Print debug message.
| pccSource | the file invoking the function |
| pccFunction | the function calling for logMessage |
| iLine | the line number |
| pccFile | the file to log informations |
| pccMessage | the message to be print |
| int maps_length | ( | maps * | pmMap | ) |
Count number of maps in a maps.
| pmMap | the maps to count |
| void mapsToCharXXX | ( | maps * | pmsMap, |
| char *** | pppcValues | ||
| ) |
Convert a maps to a char*** (only used for Fortran support)
| pmsMap | the maps to convert |
| pppcValues | the resulting array |
| bool nonempty | ( | map * | pmMap | ) |
Verify that a map has a value.
| pmMap | pointer to map that should be checked |
| void setElementsName | ( | elements ** | ppeElem, |
| char * | pcName | ||
| ) |
Set the name of an elements.
| peElem | the elements to modify |
| pcName | the elements name |
| void setErrorMessage | ( | maps *& | pmsaConf, |
| const char * | pccService, | ||
| WPSException | weExc, | ||
| const char * | pccMessage | ||
| ) |
| void setMapArray | ( | map * | pmMap, |
| const char * | pccKey, | ||
| int | iIndex, | ||
| const char * | pccValue | ||
| ) |
Add a key value in a MapArray for a specific index.
| pmMap | the map to search for the key |
| pccKey | the key to search in the map |
| iIndex | the index of the MapArray |
| pccValue | the value to set in the MapArray |
| void setMapInMaps | ( | maps * | pmsMaps, |
| const char * | pccKey, | ||
| const char * | pccSubkey, | ||
| const char * | pccValue | ||
| ) |
Set a key value pair to a map contained in a Maps.
| pmsMaps | the maps |
| pccKey | the maps name |
| pccSubkey | the map name included in the maps corresponding to key |
| pccValue | the corresponding value to add in the map |
| void setServiceName | ( | service ** | ppsServ, |
| char * | pcName | ||
| ) |
Set the name of a service.
| ppsServ | the service |
| pcName | the service name |
| char* translateCharMap | ( | const char * | str, |
| map * | rep | ||
| ) |
Replace all "val" occurence with the corresponding "rep" value in a string.
| str | the string to update |
| toReplace | the char to replace |
| toReplaceBy | the char that will be used |
| void updateCnt | ( | maps * | conf, |
| const char * | field, | ||
| const char * | type | ||
| ) |
Update the counter value (in conf / lenv / serviceCnt.
| conf | the conf maps containing the main.cfg settings |
| field | the value to update (serviceCnt or serviceCounter) |
| type | char pointer can be "incr" for incrementing the value by 1, other will descrement the value by 1 |
1.8.17