ZOO-Project: main_conf_read.y File Reference
ZOO-Project
main_conf_read.y File Reference
#include <service.h>

Data Structures

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...
 

Typedefs

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...
 

Enumerations

enum  WPSException {
  StatusOK, MissingParameterValue, InvalidParameterValue, NoApplicableCode,
  NotEnoughStorage, ServerBusy, FileSizeExceeded, StorageNotSupported,
  VersionNegotiationFailed, NoSuchProcess, NoSuchMode, NoSuchInput,
  NoSuchOutput, DataNotAccessible, SizeExceeded, TooManyInputs,
  TooManyOutputs, NoSuchFormat, WrongInputData, InternalServerError,
  NoSuchJob, ResultNotReady, StatusOK, MissingParameterValue,
  InvalidParameterValue, NoApplicableCode, NotEnoughStorage, ServerBusy,
  FileSizeExceeded, StorageNotSupported, VersionNegotiationFailed, NoSuchProcess,
  NoSuchMode, NoSuchInput, NoSuchOutput, DataNotAccessible,
  SizeExceeded, TooManyInputs, TooManyOutputs, NoSuchFormat,
  WrongInputData, InternalServerError, NoSuchJob, ResultNotReady
}
 

Functions

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 mapcreateMap (const char *, const char *)
 Create a new map. More...
 
ZOO_DLL_EXPORT mapscreateMaps (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 mapsgetMaps (maps *, const char *)
 Access a specific maps. More...
 
ZOO_DLL_EXPORT mapgetMap (map *, const char *)
 Access a specific map. More...
 
ZOO_DLL_EXPORT mapgetLastMap (map *)
 Access the last map. More...
 
ZOO_DLL_EXPORT mapgetMapFromMaps (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 iotypecreateIoType ()
 Create a new iotype*. More...
 
ZOO_DLL_EXPORT elementscreateEmptyElements ()
 Create an empty elements. More...
 
ZOO_DLL_EXPORT elementscreateElements (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 elementsgetElements (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 servicecreateService ()
 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 mapaddToMapWithSize (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 mapgetMapOrFill (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 iotypegetIoTypeFromElement (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 mapsdupMaps (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 mapgetMapArray (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 mapgetMapType (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 elementsdupElements (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 servicedupService (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 servicegetServiceFromRegistry (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)
 
void crerror (const char *s)
 Print on stderr the message and the line number of the error which occurred. More...
 
void usage (void)
 
int crlex (void)
 
int crlex_destroy (void)
 
 if (debug)
 
 free (curr_key)
 
 free (current_content)
 
 snprintf (current_maps->name,(strlen($1)+1),"%s", $1)
 
int conf_read (const char *file, maps *my_map)
 Parse the main.cfg file and fill the maps structure. More...
 

Variables

static const char *const WPSExceptionCode []
 
static const char *const WPSExceptionText []
 
static mapsmy_maps =NULL
 
static mapscurrent_maps =NULL
 
static mapcurrent_content =NULL
 
static char * curr_key =zStrdup($1)
 
static int debug =0
 
int crdebug
 
char crtext []
 
int crlineno
 
FILE * crin
 
union {
char * s
 
char * chaine
 
char * key
 
char * val
 
document
 
miscetoile __pad0__
 
Attributeetoile __pad1__
 
contentetoile __pad2__
 
pair __pad3__
 
 EPAIR
 
 else
 
 SPAIR {if(curr_key!=NULL) free(curr_key)
 
processid __pad4__
 
current_maps next =NULL
 
current_maps content =NULL
 

Data Structure Documentation

struct maps

linked list of map pointer

Small object to store WPS KVP set.

Data Fields
struct maps * child the child maps
struct map * content the content map
char * name the maps name
struct maps * next the pointer to the next maps if any or NULL
struct iotype

Not named linked list.

Used to store information about formats, such as mimeType, encoding ...

Data Fields
struct map * content the content map
struct iotype * next the pointer to the next iotype if any or NULL
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

Services chained list.

Data Fields
struct service * content the content service pointer
struct services * next the pointer to the next services*
struct registry

Profile registry.

Data Fields
struct services * content the content services pointer
char * name the name
struct registry * next the next registry pointer

Typedef Documentation

typedef struct elements elements

Metadata information about input or output.

The elements are used to store metadata information defined in the ZCFG.

typedef struct iotype iotype

Not named linked list.

Used to store information about formats, such as mimeType, encoding ...

typedef struct maps maps

linked list of map pointer

Small object to store WPS KVP set.

typedef struct registry registry

Profile registry.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png