Changeset 114 for trunk/zoo-kernel/service.h
- Timestamp:
- Feb 12, 2011, 4:14:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service.h
r109 r114 55 55 #define SHMSZ 27 56 56 57 58 /** 59 * \struct map 60 * \brief KVP linked list 61 * 62 * Deal with WPS KVP (name,value). 63 * A map is defined as: 64 * - name : a key, 65 * - value: a value, 66 * - next : a pointer to the next map if any. 67 */ 68 typedef struct map{ 69 char* name; 70 char* value; 71 struct map* next; 72 } map; 73 74 #ifdef WIN32 75 #define NULLMAP ((map*) 0) 76 #else 77 #define NULLMAP NULL 78 #endif 79 57 80 /** 58 81 * \struct maps … … 60 83 * 61 84 * Small object to store WPS KVP set. 85 * Maps is defined as: 86 * - a name, 87 * - a content map, 88 * - a pointer to the next maps if any. 62 89 */ 63 90 typedef struct maps{ … … 68 95 69 96 /** 70 * \struct map 71 * \brief KVP linked list 72 * 73 * Deal with WPS KVP (name,value). 97 * \brief Dump a map on stderr 74 98 */ 75 typedef struct map{76 char* name; /* The key */77 char* value; /* The value */78 struct map* next; /* Next couple */79 } map;80 81 #ifdef WIN3282 #define NULLMAP ((map*) 0)83 #else84 #define NULLMAP NULL85 #endif86 87 99 static void _dumpMap(map* t){ 88 100 if(t!=NULL){ … … 181 193 } 182 194 183 static map* getMapFromMaps(maps* m,c har* key,char* subkey){195 static map* getMapFromMaps(maps* m,const char* key,const char* subkey){ 184 196 maps* _tmpm=getMaps(m,key); 185 197 if(_tmpm!=NULL){ … … 224 236 } 225 237 238 /** 239 * \brief Not named linked list 240 * 241 * Used to store informations about formats, such as mimeType, encoding ... 242 * 243 * An iotype is defined as : 244 * - a content map, 245 * - a pointer to the next iotype if any. 246 */ 226 247 typedef struct iotype{ 227 248 struct map* content; … … 229 250 } iotype; 230 251 252 /** 253 * \brief Metadata information about input or output. 254 * 255 * The elements are used to store metadata informations defined in the ZCFG. 256 * 257 * An elements is defined as : 258 * - a name, 259 * - a content map, 260 * - a metadata map, 261 * - a format (possible values are LiteralData, ComplexData or 262 * BoundingBoxData), 263 * - a default iotype, 264 * - a pointer to the next elements id any. 265 */ 231 266 typedef struct elements{ 232 267 char* name; … … 252 287 } services; 253 288 254 static bool hasElement(elements* e,c har* key){289 static bool hasElement(elements* e,const char* key){ 255 290 elements* tmp=e; 256 291 while(tmp!=NULL){ … … 476 511 477 512 478 static void setMapInMaps(maps* m,c har* key,char* subkey,char *value){513 static void setMapInMaps(maps* m,const char* key,const char* subkey,const char *value){ 479 514 maps* _tmpm=getMaps(m,key); 480 515 if(_tmpm!=NULL){
Note: See TracChangeset
for help on using the changeset viewer.