ZOO-Project
|
#include <stdbool.h>
#include <sys/stat.h>
#include "unistd.h"
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "version.h"
Go to the source code of this file.
Data Structures | |
struct | map |
KVP linked list. More... | |
struct | maps |
linked list of map pointer More... | |
struct | iotype |
Not named linked list. More... | |
struct | elements |
Metadata information about input or output. More... | |
struct | service |
Metadata information about a full Service. More... | |
struct | services |
Services chained list. More... | |
struct | registry |
Profile registry. More... | |
Macros | |
#define | ZOO_SERVICE_H 1 |
#define | ZOO_DLL_EXPORT |
#define | zStrdup strdup |
#define | zOpen open |
#define | zClose close |
#define | zUnlink unlink |
#define | zDup dup |
#define | zDup2 dup2 |
#define | zWrite write |
#define | zGettimeofday gettimeofday |
#define | ztimeval timeval |
#define | zGetpid getpid |
#define | zStatStruct struct stat64 |
#define | zStat stat64 |
#define | SERVICE_ACCEPTED 0 |
#define | SERVICE_STARTED 1 |
#define | SERVICE_PAUSED 2 |
#define | SERVICE_SUCCEEDED 3 |
#define | SERVICE_FAILED 4 |
#define | SERVICE_DISMISSED 5 |
#define | ELEMENTS_SIZE (sizeof(char*)+(((2*sizeof(char*))+sizeof(maps*))*3)+sizeof(char*)+((sizeof(map*) + sizeof(iotype*))*2)+(2*sizeof(elements*))) |
#define | MAP_SIZE (2*sizeof(char*))+sizeof(map*) |
#define | IOTYPE_SIZE sizeof(map*) + sizeof(iotype*) |
#define | MAPS_SIZE sizeof(char*)+sizeof(map*)+(2*sizeof(maps*)) |
#define | SERVICE_SIZE sizeof(char*) + 3*sizeof(map*) + 2*sizeof(elements*) |
#define | SERVICES_SIZE sizeof(service*)+sizeof(services*) |
#define | REGISTRY_SIZE sizeof(char*)+sizeof(services*)+sizeof(registry*) |
#define | SHMSZ 27 |
#define | NULLMAP NULL |
#define | zooLogMsg(file, message) logMessage(__FILE__, __func__, __LINE__, (file), (message)) |
#define | zooLog logMessage(__FILE__, __func__, __LINE__) |
#define | ZOO_DLL_EXPORT |
#define | __bool_true_false_are_defined 1 |
#define | zStrdup strdup |
The crossplatform strdup alias. More... | |
#define | zOpen open |
The crossplatform open alias. More... | |
#define | zClose close |
The crossplatform close alias. More... | |
#define | zUnlink unlink |
The crossplatform unlink alias. More... | |
#define | zDup dup |
The crossplatform dup alias. More... | |
#define | zDup2 dup2 |
The crossplatform dup2 alias. More... | |
#define | zWrite write |
The crossplatform write alias. More... | |
#define | zGettimeofday gettimeofday |
The crossplatform gettimeofday alias. More... | |
#define | ztimeval timeval |
The crossplatform timeval alias. More... | |
#define | zGetpid getpid |
The crossplatform getpid alias. More... | |
#define | zStatStruct struct stat64 |
#define | zStat stat64 |
#define | SERVICE_ACCEPTED 0 |
The global accepted status for a service. More... | |
#define | SERVICE_STARTED 1 |
The global started status for a service. More... | |
#define | SERVICE_PAUSED 2 |
The global paused status for a service. More... | |
#define | SERVICE_SUCCEEDED 3 |
The global succeeded status for a service. More... | |
#define | SERVICE_FAILED 4 |
The global failed status for a service. More... | |
#define | SERVICE_DISMISSED 5 |
The global dismissed status for a service. More... | |
#define | ELEMENTS_SIZE (sizeof(char*)+(((2*sizeof(char*))+sizeof(maps*))*3)+sizeof(char*)+((sizeof(map*) + sizeof(iotype*))*2)+(2*sizeof(elements*))) |
The memory size to create an elements. More... | |
#define | MAP_SIZE (2*sizeof(char*))+sizeof(map*) |
The memory size to create a map. More... | |
#define | IOTYPE_SIZE sizeof(map*) + sizeof(iotype*) |
The memory size to create an iotype. More... | |
#define | MAPS_SIZE sizeof(char*)+sizeof(map*)+(2*sizeof(maps*)) |
The memory size to create a maps. More... | |
#define | SERVICE_SIZE sizeof(char*) + 3*sizeof(map*) + 2*sizeof(elements*) |
The memory size to create a service. More... | |
#define | SERVICES_SIZE sizeof(service*)+sizeof(services*) |
The memory size to create a services. More... | |
#define | REGISTRY_SIZE sizeof(char*)+sizeof(services*)+sizeof(registry*) |
The memory size to create a registry. More... | |
#define | SHMSZ 27 |
#define | NULLMAP NULL |
#define | zooLogMsg(file, message) logMessage(__FILE__, __func__, __LINE__, (file), (message)) |
#define | zooLog logMessage(__FILE__, __func__, __LINE__) |
Typedefs | |
typedef struct map | map |
KVP linked list. More... | |
typedef struct maps | maps |
linked list of map pointer More... | |
typedef struct iotype | iotype |
Not named linked list. More... | |
typedef struct elements | elements |
Metadata information about input or output. More... | |
typedef struct service | service |
Metadata information about a full Service. More... | |
typedef struct services | services |
Services chained list. More... | |
typedef struct registry | registry |
Profile registry. More... | |
Functions | |
static int | zMkdir (const char *pccPath) |
The crossplatform mkdir alias. More... | |
static int | zSleep (const long millisecond) |
The crossplatform sleep alias. More... | |
ZOO_DLL_EXPORT void | _dumpMap (map *) |
Dump a map on stderr. More... | |
ZOO_DLL_EXPORT void | dumpMap (map *) |
Dump a map on stderr, see _dumpMap() More... | |
ZOO_DLL_EXPORT void | dumpMaps (maps *m) |
Dump a maps on stderr, see dumpMap(). More... | |
ZOO_DLL_EXPORT void | dumpMapToFile (map *, FILE *) |
Dump a map to a file. More... | |
ZOO_DLL_EXPORT void | dumpMapsToFile (maps *, char *, int) |
Dump a maps to a file, see _dumpMapsToFile(). More... | |
ZOO_DLL_EXPORT map * | createMap (const char *, const char *) |
Create a new map. More... | |
ZOO_DLL_EXPORT maps * | createMaps (const char *) |
Create a new maps with the given name. More... | |
ZOO_DLL_EXPORT int | count (map *) |
Count number of map in a map. More... | |
ZOO_DLL_EXPORT bool | hasKey (map *, const char *) |
Verify if a key exist in a map. More... | |
ZOO_DLL_EXPORT maps * | getMaps (maps *, const char *) |
Access a specific maps. More... | |
ZOO_DLL_EXPORT map * | getMap (map *, const char *) |
Access a specific map. More... | |
ZOO_DLL_EXPORT map * | getLastMap (map *) |
Access the last map. More... | |
ZOO_DLL_EXPORT map * | getMapFromMaps (maps *, const char *, const char *) |
Access a specific map from a maps. More... | |
ZOO_DLL_EXPORT void | freeMap (map **) |
Free allocated memory of a map. More... | |
ZOO_DLL_EXPORT void | freeMaps (maps **mo) |
Free allocated memory of a maps. More... | |
ZOO_DLL_EXPORT iotype * | createIoType () |
Create a new iotype*. More... | |
ZOO_DLL_EXPORT elements * | createEmptyElements () |
Create an empty elements. More... | |
ZOO_DLL_EXPORT elements * | createElements (const char *) |
Create a named elements. More... | |
ZOO_DLL_EXPORT void | setElementsName (elements **, char *) |
Set the name of an elements. More... | |
ZOO_DLL_EXPORT bool | hasElement (elements *, const char *) |
Verify if an elements contains a name equal to the given key. More... | |
ZOO_DLL_EXPORT elements * | getElements (elements *, const char *) |
Access a specific elements named key. More... | |
ZOO_DLL_EXPORT void | freeIOType (iotype **) |
Free allocated memory of an iotype. More... | |
ZOO_DLL_EXPORT void | freeElements (elements **) |
Free allocated memory of an elements. More... | |
ZOO_DLL_EXPORT void | setServiceName (service **, char *) |
Set the name of a service. More... | |
ZOO_DLL_EXPORT service * | createService () |
Allocate memory for a service. More... | |
ZOO_DLL_EXPORT void | freeService (service **) |
Free allocated memory of a service. More... | |
ZOO_DLL_EXPORT void | addToMap (map *, const char *, const char *) |
Add key value pair to an existing map. More... | |
ZOO_DLL_EXPORT void | addIntToMap (map *, const char *, const int) |
Add a key and an integer value to an existing map. More... | |
ZOO_DLL_EXPORT void | addIntToMapArray (map *, const char *, int, const int) |
Add a key and an integer value to an existing map array. More... | |
ZOO_DLL_EXPORT map * | addToMapWithSize (map *, const char *, const char *, int) |
Add a key and a binary value to an existing map. More... | |
ZOO_DLL_EXPORT void | addMapToMap (map **, map *) |
Add a map at the end of another map. More... | |
ZOO_DLL_EXPORT void | addMapToIoType (iotype **, map *) |
Add a map to iotype. More... | |
ZOO_DLL_EXPORT map * | getMapOrFill (map **, const char *, const char *) |
Access a specific map or set its value. More... | |
ZOO_DLL_EXPORT bool | contains (map *, map *) |
Verify if a map is contained in another map. More... | |
ZOO_DLL_EXPORT iotype * | getIoTypeFromElement (elements *, char *, map *) |
Access a specific iotype from an elements. More... | |
ZOO_DLL_EXPORT void | loadMapBinary (map **, map *, int) |
Load binary values from a map (in) and add them to another map (out) More... | |
ZOO_DLL_EXPORT void | loadMapBinaries (map **, map *) |
Load binary values from a map (in) and add them to another map (out). More... | |
ZOO_DLL_EXPORT maps * | dupMaps (maps **) |
Duplicate a Maps. More... | |
ZOO_DLL_EXPORT void | addMapsToMaps (maps **, maps *) |
Add a maps at the end of another maps. More... | |
ZOO_DLL_EXPORT map * | getMapArray (map *, const char *, int) |
Access a specific map array element. More... | |
ZOO_DLL_EXPORT void | setMapArray (map *, const char *, int, const char *) |
Add a key value in a MapArray for a specific index. More... | |
ZOO_DLL_EXPORT map * | getMapType (map *) |
Access the map "type". More... | |
ZOO_DLL_EXPORT int | addMapsArrayToMaps (maps **, maps *, char *) |
Add a Maps containing a MapArray to a Maps. More... | |
ZOO_DLL_EXPORT void | setMapInMaps (maps *, const char *, const char *, const char *) |
Set a key value pair to a map contained in a Maps. More... | |
ZOO_DLL_EXPORT void | dumpElements (elements *) |
Dump an elements on stderr. More... | |
ZOO_DLL_EXPORT void | dumpElementsAsYAML (elements *, int) |
Dump an elements on stderr using the YAML syntaxe. More... | |
ZOO_DLL_EXPORT elements * | dupElements (elements *) |
Duplicate an elements. More... | |
ZOO_DLL_EXPORT void | addToElements (elements **, elements *) |
Add an elements to another elements. More... | |
ZOO_DLL_EXPORT void | dumpService (service *) |
Dump a service on stderr. More... | |
ZOO_DLL_EXPORT void | dumpServiceAsYAML (service *) |
Dump a service on stderr using the YAML syntaxe. More... | |
ZOO_DLL_EXPORT service * | dupService (service *) |
Duplicate a service. More... | |
ZOO_DLL_EXPORT void | dumpRegistry (registry *) |
Print the registry on stderr. More... | |
ZOO_DLL_EXPORT bool | addServiceToRegistry (registry **, char *, service *) |
Add a service to the registry. More... | |
ZOO_DLL_EXPORT void | freeRegistry (registry **) |
Free memory allocated for the registry. More... | |
ZOO_DLL_EXPORT service * | getServiceFromRegistry (registry *, char *, char *) |
Access a service in the registry. More... | |
ZOO_DLL_EXPORT void | inheritMap (map **, map *) |
Apply inheritance to an out map from a reference in map. More... | |
ZOO_DLL_EXPORT void | inheritIOType (iotype **, iotype *) |
Apply inheritance to an out iotype from a reference in iotype. More... | |
ZOO_DLL_EXPORT void | inheritElements (elements **, elements *) |
Apply inheritance to an out elements from a reference in elements. More... | |
ZOO_DLL_EXPORT void | inheritance (registry *, service **) |
Apply inheritance to a service based on a registry. More... | |
ZOO_DLL_EXPORT void | mapsToCharXXX (maps *, char ***) |
Convert a maps to a char*** (only used for Fortran support) More... | |
ZOO_DLL_EXPORT void | charxxxToMaps (char ***, maps **) |
Convert a char*** to a maps (only used for Fortran support) More... | |
ZOO_DLL_EXPORT bool | nonempty (map *map) |
Verify that a map has a value. More... | |
ZOO_DLL_EXPORT bool | hasvalue (maps *source, const char *node, const char *key, map **kvp) |
Verify that a particular map value exists in a maps data structure, and obtain that value. More... | |
ZOO_DLL_EXPORT char * | allocateMapValue (map *node, size_t num_bytes) |
Variables | |
static const char *const | WPSExceptionCode [] |
static const char *const | WPSExceptionText [] |
struct map |
KVP linked list.
Data Fields | ||
---|---|---|
char * | name | the key |
struct map * | next | the pointer to the next map if any or NULL |
char * | value | the value |
struct maps |
struct iotype |
struct elements |
Metadata information about input or output.
The elements are used to store metadata information defined in the ZCFG.
Data Fields | ||
---|---|---|
struct map * | additional_parameters | the additional parameters map |
struct elements * | child | the pointer to the children element if any (or NULL) |
struct map * | content | the content map |
struct iotype * | defaults | the default iotype |
char * | format | the format: LiteralData or ComplexData or BoundingBoxData |
struct map * | metadata | the metadata map |
char * | name | the name |
struct elements * | next | the pointer to the next element if any (or NULL) |
struct iotype * | supported | the supported iotype |
struct service |
Metadata information about a full Service.
Data Fields | ||
---|---|---|
struct map * | additional_parameters | the additional parameters map |
struct map * | content | the content map |
struct elements * | inputs | the inputs elements |
struct map * | metadata | the metadata map |
char * | name | the name |
struct elements * | outputs | the outputs elements |
struct services |
struct registry |
#define __bool_true_false_are_defined 1 |
#define ELEMENTS_SIZE (sizeof(char*)+(((2*sizeof(char*))+sizeof(maps*))*3)+sizeof(char*)+((sizeof(map*) + sizeof(iotype*))*2)+(2*sizeof(elements*))) |
#define ELEMENTS_SIZE (sizeof(char*)+(((2*sizeof(char*))+sizeof(maps*))*3)+sizeof(char*)+((sizeof(map*) + sizeof(iotype*))*2)+(2*sizeof(elements*))) |
The memory size to create an elements.
#define MAP_SIZE (2*sizeof(char*))+sizeof(map*) |
#define MAP_SIZE (2*sizeof(char*))+sizeof(map*) |
The memory size to create a map.
#define NULLMAP NULL |
#define NULLMAP NULL |
The memory size to create a registry.
#define SERVICE_ACCEPTED 0 |
#define SERVICE_ACCEPTED 0 |
The global accepted status for a service.
#define SERVICE_DISMISSED 5 |
#define SERVICE_DISMISSED 5 |
The global dismissed status for a service.
#define SERVICE_FAILED 4 |
#define SERVICE_FAILED 4 |
The global failed status for a service.
#define SERVICE_PAUSED 2 |
#define SERVICE_PAUSED 2 |
The global paused status for a service.
The memory size to create a service.
#define SERVICE_STARTED 1 |
#define SERVICE_STARTED 1 |
The global started status for a service.
#define SERVICE_SUCCEEDED 3 |
#define SERVICE_SUCCEEDED 3 |
The global succeeded status for a service.
#define SHMSZ 27 |
#define SHMSZ 27 |
#define zClose close |
The crossplatform close alias.
#define zClose close |
#define zDup dup |
The crossplatform dup alias.
#define zDup dup |
#define zDup2 dup2 |
#define zDup2 dup2 |
The crossplatform dup2 alias.
#define zGetpid getpid |
The crossplatform getpid alias.
#define zGetpid getpid |
#define zGettimeofday gettimeofday |
The crossplatform gettimeofday alias.
#define zGettimeofday gettimeofday |
#define ZOO_DLL_EXPORT |
#define ZOO_DLL_EXPORT |
#define ZOO_SERVICE_H 1 |
#define zooLog logMessage(__FILE__, __func__, __LINE__) |
#define zooLog logMessage(__FILE__, __func__, __LINE__) |
#define zooLogMsg | ( | file, | |
message | |||
) | logMessage(__FILE__, __func__, __LINE__, (file), (message)) |
#define zooLogMsg | ( | file, | |
message | |||
) | logMessage(__FILE__, __func__, __LINE__, (file), (message)) |
#define zOpen open |
#define zOpen open |
The crossplatform open alias.
#define zStat stat64 |
#define zStat stat64 |
#define zStatStruct struct stat64 |
#define zStatStruct struct stat64 |
#define zStrdup strdup |
#define zStrdup strdup |
The crossplatform strdup alias.
#define ztimeval timeval |
The crossplatform timeval alias.
#define ztimeval timeval |
#define zUnlink unlink |
The crossplatform unlink alias.
#define zUnlink unlink |
#define zWrite write |
#define zWrite write |
The crossplatform write alias.
Metadata information about input or output.
The elements are used to store metadata information defined in the ZCFG.
Not named linked list.
Used to store information about formats, such as mimeType, encoding ...
enum WPSException |
ZOO_DLL_EXPORT void _dumpMap | ( | map * | pmMap | ) |
Dump a map on stderr.
pmMap | the map to dump |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT void addIntToMapArray | ( | map * | pmMap, |
const char * | pccName, | ||
int | iIndex, | ||
const int | 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 |
ZOO_DLL_EXPORT int addMapsArrayToMaps | ( | maps ** | pmsOut, |
maps * | pmsIn, | ||
char * | pcType | ||
) |
Add a Maps containing a MapArray to a Maps.
pmsOut | the maps |
pmsIn | the maps |
pcType | the map "type" |
ZOO_DLL_EXPORT void addMapsToMaps | ( | maps ** | ppmsOut, |
maps * | pmIn | ||
) |
Add a maps at the end of another maps.
ppmsOut | the maps to add mi |
pmIn | the maps to add to mo |
ZOO_DLL_EXPORT void addMapToIoType | ( | iotype ** | piotType, |
map * | pmMap | ||
) |
Add a map to iotype.
piotType | the iotype to add the map |
pmMap | the map to add to io |
ZOO_DLL_EXPORT void addMapToMap | ( | map ** | pmMapOut, |
map * | pmMapIn | ||
) |
Add a map at the end of another map.
pmMapOut | the map to add pmMapIn to |
pmMapIn | the map to add to pmMapOut |
ZOO_DLL_EXPORT bool addServiceToRegistry | ( | registry ** | prReg, |
char * | pcName, | ||
service * | psContent | ||
) |
Add a service to the registry.
prReg | the resgitry to add the service |
pcName | the registry name to update |
psContent | the service to add |
ZOO_DLL_EXPORT void addToElements | ( | elements ** | ppeElem, |
elements * | peELem | ||
) |
Add an elements to another elements.
ppeElem | the elements to add the e |
peELem | the elements to be added to m |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT map* addToMapWithSize | ( | map * | pMap, |
const char * | pccName, | ||
const char * | pccValue, | ||
int | iSize | ||
) |
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 |
ZOO_DLL_EXPORT char* allocateMapValue | ( | map * | node, |
size_t | num_bytes | ||
) |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT bool contains | ( | map * | pmMap, |
map * | pmSearch | ||
) |
Verify if a map is contained in another map.
pmMap | the map to search for i |
pmSearch | the map to search in m |
ZOO_DLL_EXPORT int count | ( | map * | pmMap | ) |
Count number of map in a map.
pmMap | the map to count |
ZOO_DLL_EXPORT elements* createElements | ( | const char * | pcName | ) |
Create a named elements.
pcName | the elements name |
ZOO_DLL_EXPORT elements* createEmptyElements | ( | ) |
Create an empty elements.
ZOO_DLL_EXPORT iotype* createIoType | ( | ) |
Create a new iotype*.
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT maps* createMaps | ( | const char * | pccName | ) |
Create a new maps with the given name.
pccName | of the maps |
ZOO_DLL_EXPORT service* createService | ( | ) |
Allocate memory for a service.
Require to call free after calling this function.
ZOO_DLL_EXPORT void dumpElements | ( | elements * | peElem | ) |
Dump an elements on stderr.
peElem | the elements to dump |
ZOO_DLL_EXPORT void dumpElementsAsYAML | ( | elements * | peElem, |
int | iLevel | ||
) |
Dump an elements on stderr using the YAML syntaxe.
peElem | the elements to dump |
iLevel | the current level |
ZOO_DLL_EXPORT void dumpMap | ( | map * | pmMap | ) |
Dump a map on stderr, see _dumpMap()
pmMap | the map to dump |
ZOO_DLL_EXPORT void dumpMaps | ( | maps * | pmMap | ) |
Dump a maps on stderr, see dumpMap().
pmMap | the map to dump |
ZOO_DLL_EXPORT 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) |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT void dumpRegistry | ( | registry * | prReg | ) |
Print the registry on stderr.
prReg | the registry |
ZOO_DLL_EXPORT void dumpService | ( | service * | psServ | ) |
Dump a service on stderr.
psServ | the service to dump |
ZOO_DLL_EXPORT void dumpServiceAsYAML | ( | service * | psServ | ) |
Dump a service on stderr using the YAML syntaxe.
psServ | the service to dump |
ZOO_DLL_EXPORT elements* dupElements | ( | elements * | peElem | ) |
Duplicate an elements.
peElem | the elements to clone |
ZOO_DLL_EXPORT maps* dupMaps | ( | maps ** | ppmsOut | ) |
Duplicate a Maps.
ppmsOut | the maps to clone |
ZOO_DLL_EXPORT service* dupService | ( | service * | psServ | ) |
Duplicate a service.
psServ | the service to clone |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT void freeRegistry | ( | registry ** | prReg | ) |
Free memory allocated for the registry.
prReg | the registry |
ZOO_DLL_EXPORT void freeService | ( | service ** | psService | ) |
Free allocated memory of a service.
Require to be invoked for every createService call.
psService | the service to free |
ZOO_DLL_EXPORT elements* getElements | ( | elements * | peElem, |
const char * | pccKey | ||
) |
Access a specific elements named key.
peElem | the elements to search |
pccKey | the elements name to search |
ZOO_DLL_EXPORT iotype* getIoTypeFromElement | ( | elements * | peElem, |
char * | pcName, | ||
map * | pcValues | ||
) |
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 |
ZOO_DLL_EXPORT map* getLastMap | ( | map * | pmMap | ) |
Access the last map.
pmMap | the map to search for the lastest map |
ZOO_DLL_EXPORT map* getMap | ( | map * | pmMap, |
const char * | pccKey | ||
) |
Access a specific map.
pmMap | the map to search for the key |
pccKey | the key to search in the map |
ZOO_DLL_EXPORT map* getMapArray | ( | map * | pmMap, |
const char * | pccKey, | ||
int | iIndex | ||
) |
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 |
ZOO_DLL_EXPORT map* getMapFromMaps | ( | maps * | pmMap, |
const char * | pccKey, | ||
const char * | pccSubkey | ||
) |
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) |
ZOO_DLL_EXPORT map* getMapOrFill | ( | map ** | ppmMap, |
const char * | pccKey, | ||
const char * | pccValue | ||
) |
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 |
ZOO_DLL_EXPORT maps* getMaps | ( | maps * | pmsMaps, |
const char * | pccKey | ||
) |
Access a specific maps.
pmMap | the maps to search for the key |
pccKey | the key to search in the maps |
ZOO_DLL_EXPORT map* getMapType | ( | map * | pmMap | ) |
Access the map "type".
pmMap | the map |
ZOO_DLL_EXPORT service* getServiceFromRegistry | ( | registry * | prReg, |
char * | pcLevel, | ||
char * | pcName | ||
) |
Access a service in the registry.
prReg | the registry |
pcLevel | the regitry to search ("concept", "generic" or "implementation") |
pcName | the service name |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT 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.
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 |
ZOO_DLL_EXPORT void inheritance | ( | registry * | prReg, |
service ** | psServ | ||
) |
Apply inheritance to a service based on a registry.
prReg | the registry storing profiles hierarchy |
psServ | the service to update depending on its inheritance |
ZOO_DLL_EXPORT void inheritElements | ( | elements ** | ppeOut, |
elements * | peIn | ||
) |
Apply inheritance to an out elements from a reference in elements.
ppeOut | the elements to update |
peIn | the reference elements (containing inherited properties) |
ZOO_DLL_EXPORT void inheritIOType | ( | iotype ** | ppiotOut, |
iotype * | piotIn | ||
) |
Apply inheritance to an out iotype from a reference in iotype.
ppiotOut | the iotype to update |
piotIn | the reference iotype (containing inherited properties) |
ZOO_DLL_EXPORT void inheritMap | ( | map ** | ppmOut, |
map * | pmIn | ||
) |
Apply inheritance to an out map from a reference in map.
ppmOut | the map to update |
pmIn | the reference map (containing inherited properties) |
ZOO_DLL_EXPORT void loadMapBinaries | ( | map ** | ppmOut, |
map * | pmIn | ||
) |
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 |
ZOO_DLL_EXPORT void loadMapBinary | ( | map ** | ppmOut, |
map * | pmIn, | ||
int | iPos | ||
) |
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") |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT bool nonempty | ( | map * | pmMap | ) |
Verify that a map has a value.
pmMap | pointer to map that should be checked |
ZOO_DLL_EXPORT void setElementsName | ( | elements ** | ppeElem, |
char * | pcName | ||
) |
Set the name of an elements.
peElem | the elements to modify |
pcName | the elements name |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT 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 |
ZOO_DLL_EXPORT void setServiceName | ( | service ** | ppsServ, |
char * | pcName | ||
) |
Set the name of a service.
ppsServ | the service |
pcName | the service name |
|
static |
The crossplatform mkdir alias.
|
static |
The crossplatform sleep alias.
|
static |
|
static |