1 /* c/zx-b12-data.h - WARNING: This header was auto generated by xsd2sg.pl. DO NOT EDIT! 2 * $Id$ */ 3 /* Datastructure design, topography, and layout 4 * Copyright (c) 2006,2010 Sampo Kellomaki (sampo@iki.fi), 5 * All Rights Reserved. NO WARRANTY. See file COPYING for 6 * terms and conditions of use. Element and attributes names as well 7 * as some topography are derived from schema descriptions that were used as 8 * input and may be subject to their own copright. */ 9 10 #ifndef _c_zx_b12_data_h 11 #define _c_zx_b12_data_h 12 13 #include "zx.h" 14 #include "c/zx-const.h" 15 #include "c/zx-data.h" 16 17 #ifndef ZX_ELEM_EXT 18 #define ZX_ELEM_EXT /* This extension point should be defined by who includes this file. */ 19 #endif 20 21 /* -------------------------- b12_Consent -------------------------- */ 22 /* refby( zx_e_Header_s ) */ 23 #ifndef zx_b12_Consent_EXT 24 #define zx_b12_Consent_EXT 25 #endif 26 struct zx_b12_Consent_s { 27 ZX_ELEM_EXT 28 zx_b12_Consent_EXT 29 struct zx_attr_s* id; /* {0,1} attribute xs:ID */ 30 struct zx_attr_s* timestamp; /* {0,1} attribute xs:dateTime */ 31 struct zx_attr_s* uri; /* {1,1} attribute xs:anyURI */ 32 struct zx_attr_s* actor; /* {0,1} attribute xs:anyURI */ 33 struct zx_attr_s* mustUnderstand; /* {0,1} attribute xs:boolean */ 34 }; 35 36 #define zx_NEW_b12_Consent(c, father) (struct zx_b12_Consent_s*)zx_new_elem((c),(father),zx_b12_Consent_ELEM) 37 int zx_DEC_ATTR_b12_Consent(struct zx_ctx* c, struct zx_b12_Consent_s* x); 38 int zx_DEC_ELEM_b12_Consent(struct zx_ctx* c, struct zx_b12_Consent_s* x); 39 40 #ifdef ZX_ENA_AUX 41 struct zx_b12_Consent_s* zx_DEEP_CLONE_b12_Consent(struct zx_ctx* c, struct zx_b12_Consent_s* x, int dup_strs); 42 void zx_DUP_STRS_b12_Consent(struct zx_ctx* c, struct zx_b12_Consent_s* x); 43 int zx_WALK_SO_b12_Consent(struct zx_ctx* c, struct zx_b12_Consent_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 44 int zx_WALK_WO_b12_Consent(struct zx_ctx* c, struct zx_b12_Consent_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 45 #endif 46 47 #ifdef ZX_ENA_GETPUT 48 struct zx_attr_s* zx_b12_Consent_GET_id(struct zx_b12_Consent_s* x); 49 struct zx_attr_s* zx_b12_Consent_GET_timestamp(struct zx_b12_Consent_s* x); 50 struct zx_attr_s* zx_b12_Consent_GET_uri(struct zx_b12_Consent_s* x); 51 struct zx_attr_s* zx_b12_Consent_GET_actor(struct zx_b12_Consent_s* x); 52 struct zx_attr_s* zx_b12_Consent_GET_mustUnderstand(struct zx_b12_Consent_s* x); 53 54 55 56 57 58 void zx_b12_Consent_PUT_id(struct zx_b12_Consent_s* x, struct zx_attr_s* y); 59 void zx_b12_Consent_PUT_timestamp(struct zx_b12_Consent_s* x, struct zx_attr_s* y); 60 void zx_b12_Consent_PUT_uri(struct zx_b12_Consent_s* x, struct zx_attr_s* y); 61 void zx_b12_Consent_PUT_actor(struct zx_b12_Consent_s* x, struct zx_attr_s* y); 62 void zx_b12_Consent_PUT_mustUnderstand(struct zx_b12_Consent_s* x, struct zx_attr_s* y); 63 64 65 66 67 68 #endif 69 /* -------------------------- b12_Correlation -------------------------- */ 70 /* refby( zx_e_Header_s ) */ 71 #ifndef zx_b12_Correlation_EXT 72 #define zx_b12_Correlation_EXT 73 #endif 74 struct zx_b12_Correlation_s { 75 ZX_ELEM_EXT 76 zx_b12_Correlation_EXT 77 struct zx_attr_s* id; /* {0,1} attribute xs:ID */ 78 struct zx_attr_s* messageID; /* {1,1} attribute xs:string */ 79 struct zx_attr_s* refToMessageID; /* {0,1} attribute xs:string */ 80 struct zx_attr_s* timestamp; /* {1,1} attribute xs:dateTime */ 81 struct zx_attr_s* actor; /* {0,1} attribute xs:anyURI */ 82 struct zx_attr_s* mustUnderstand; /* {0,1} attribute xs:boolean */ 83 }; 84 85 #define zx_NEW_b12_Correlation(c, father) (struct zx_b12_Correlation_s*)zx_new_elem((c),(father),zx_b12_Correlation_ELEM) 86 int zx_DEC_ATTR_b12_Correlation(struct zx_ctx* c, struct zx_b12_Correlation_s* x); 87 int zx_DEC_ELEM_b12_Correlation(struct zx_ctx* c, struct zx_b12_Correlation_s* x); 88 89 #ifdef ZX_ENA_AUX 90 struct zx_b12_Correlation_s* zx_DEEP_CLONE_b12_Correlation(struct zx_ctx* c, struct zx_b12_Correlation_s* x, int dup_strs); 91 void zx_DUP_STRS_b12_Correlation(struct zx_ctx* c, struct zx_b12_Correlation_s* x); 92 int zx_WALK_SO_b12_Correlation(struct zx_ctx* c, struct zx_b12_Correlation_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 93 int zx_WALK_WO_b12_Correlation(struct zx_ctx* c, struct zx_b12_Correlation_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 94 #endif 95 96 #ifdef ZX_ENA_GETPUT 97 struct zx_attr_s* zx_b12_Correlation_GET_id(struct zx_b12_Correlation_s* x); 98 struct zx_attr_s* zx_b12_Correlation_GET_messageID(struct zx_b12_Correlation_s* x); 99 struct zx_attr_s* zx_b12_Correlation_GET_refToMessageID(struct zx_b12_Correlation_s* x); 100 struct zx_attr_s* zx_b12_Correlation_GET_timestamp(struct zx_b12_Correlation_s* x); 101 struct zx_attr_s* zx_b12_Correlation_GET_actor(struct zx_b12_Correlation_s* x); 102 struct zx_attr_s* zx_b12_Correlation_GET_mustUnderstand(struct zx_b12_Correlation_s* x); 103 104 105 106 107 108 void zx_b12_Correlation_PUT_id(struct zx_b12_Correlation_s* x, struct zx_attr_s* y); 109 void zx_b12_Correlation_PUT_messageID(struct zx_b12_Correlation_s* x, struct zx_attr_s* y); 110 void zx_b12_Correlation_PUT_refToMessageID(struct zx_b12_Correlation_s* x, struct zx_attr_s* y); 111 void zx_b12_Correlation_PUT_timestamp(struct zx_b12_Correlation_s* x, struct zx_attr_s* y); 112 void zx_b12_Correlation_PUT_actor(struct zx_b12_Correlation_s* x, struct zx_attr_s* y); 113 void zx_b12_Correlation_PUT_mustUnderstand(struct zx_b12_Correlation_s* x, struct zx_attr_s* y); 114 115 116 117 118 119 #endif 120 /* -------------------------- b12_ProcessingContext -------------------------- */ 121 /* refby( zx_e_Header_s ) */ 122 #ifndef zx_b12_ProcessingContext_EXT 123 #define zx_b12_ProcessingContext_EXT 124 #endif 125 struct zx_b12_ProcessingContext_s { 126 ZX_ELEM_EXT 127 zx_b12_ProcessingContext_EXT 128 struct zx_attr_s* id; /* {0,1} attribute xs:ID */ 129 struct zx_attr_s* actor; /* {0,1} attribute xs:anyURI */ 130 struct zx_attr_s* mustUnderstand; /* {0,1} attribute xs:boolean */ 131 }; 132 133 #define zx_NEW_b12_ProcessingContext(c, father) (struct zx_b12_ProcessingContext_s*)zx_new_elem((c),(father),zx_b12_ProcessingContext_ELEM) 134 int zx_DEC_ATTR_b12_ProcessingContext(struct zx_ctx* c, struct zx_b12_ProcessingContext_s* x); 135 int zx_DEC_ELEM_b12_ProcessingContext(struct zx_ctx* c, struct zx_b12_ProcessingContext_s* x); 136 137 #ifdef ZX_ENA_AUX 138 struct zx_b12_ProcessingContext_s* zx_DEEP_CLONE_b12_ProcessingContext(struct zx_ctx* c, struct zx_b12_ProcessingContext_s* x, int dup_strs); 139 void zx_DUP_STRS_b12_ProcessingContext(struct zx_ctx* c, struct zx_b12_ProcessingContext_s* x); 140 int zx_WALK_SO_b12_ProcessingContext(struct zx_ctx* c, struct zx_b12_ProcessingContext_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 141 int zx_WALK_WO_b12_ProcessingContext(struct zx_ctx* c, struct zx_b12_ProcessingContext_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 142 #endif 143 144 #ifdef ZX_ENA_GETPUT 145 struct zx_attr_s* zx_b12_ProcessingContext_GET_id(struct zx_b12_ProcessingContext_s* x); 146 struct zx_attr_s* zx_b12_ProcessingContext_GET_actor(struct zx_b12_ProcessingContext_s* x); 147 struct zx_attr_s* zx_b12_ProcessingContext_GET_mustUnderstand(struct zx_b12_ProcessingContext_s* x); 148 149 150 151 152 153 void zx_b12_ProcessingContext_PUT_id(struct zx_b12_ProcessingContext_s* x, struct zx_attr_s* y); 154 void zx_b12_ProcessingContext_PUT_actor(struct zx_b12_ProcessingContext_s* x, struct zx_attr_s* y); 155 void zx_b12_ProcessingContext_PUT_mustUnderstand(struct zx_b12_ProcessingContext_s* x, struct zx_attr_s* y); 156 157 158 159 160 161 #endif 162 /* -------------------------- b12_Provider -------------------------- */ 163 /* refby( zx_e_Header_s ) */ 164 #ifndef zx_b12_Provider_EXT 165 #define zx_b12_Provider_EXT 166 #endif 167 struct zx_b12_Provider_s { 168 ZX_ELEM_EXT 169 zx_b12_Provider_EXT 170 struct zx_attr_s* affiliationID; /* {0,1} attribute xs:anyURI */ 171 struct zx_attr_s* id; /* {0,1} attribute xs:ID */ 172 struct zx_attr_s* providerID; /* {1,1} attribute xs:anyURI */ 173 struct zx_attr_s* actor; /* {0,1} attribute xs:anyURI */ 174 struct zx_attr_s* mustUnderstand; /* {0,1} attribute xs:boolean */ 175 }; 176 177 #define zx_NEW_b12_Provider(c, father) (struct zx_b12_Provider_s*)zx_new_elem((c),(father),zx_b12_Provider_ELEM) 178 int zx_DEC_ATTR_b12_Provider(struct zx_ctx* c, struct zx_b12_Provider_s* x); 179 int zx_DEC_ELEM_b12_Provider(struct zx_ctx* c, struct zx_b12_Provider_s* x); 180 181 #ifdef ZX_ENA_AUX 182 struct zx_b12_Provider_s* zx_DEEP_CLONE_b12_Provider(struct zx_ctx* c, struct zx_b12_Provider_s* x, int dup_strs); 183 void zx_DUP_STRS_b12_Provider(struct zx_ctx* c, struct zx_b12_Provider_s* x); 184 int zx_WALK_SO_b12_Provider(struct zx_ctx* c, struct zx_b12_Provider_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 185 int zx_WALK_WO_b12_Provider(struct zx_ctx* c, struct zx_b12_Provider_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 186 #endif 187 188 #ifdef ZX_ENA_GETPUT 189 struct zx_attr_s* zx_b12_Provider_GET_affiliationID(struct zx_b12_Provider_s* x); 190 struct zx_attr_s* zx_b12_Provider_GET_id(struct zx_b12_Provider_s* x); 191 struct zx_attr_s* zx_b12_Provider_GET_providerID(struct zx_b12_Provider_s* x); 192 struct zx_attr_s* zx_b12_Provider_GET_actor(struct zx_b12_Provider_s* x); 193 struct zx_attr_s* zx_b12_Provider_GET_mustUnderstand(struct zx_b12_Provider_s* x); 194 195 196 197 198 199 void zx_b12_Provider_PUT_affiliationID(struct zx_b12_Provider_s* x, struct zx_attr_s* y); 200 void zx_b12_Provider_PUT_id(struct zx_b12_Provider_s* x, struct zx_attr_s* y); 201 void zx_b12_Provider_PUT_providerID(struct zx_b12_Provider_s* x, struct zx_attr_s* y); 202 void zx_b12_Provider_PUT_actor(struct zx_b12_Provider_s* x, struct zx_attr_s* y); 203 void zx_b12_Provider_PUT_mustUnderstand(struct zx_b12_Provider_s* x, struct zx_attr_s* y); 204 205 206 207 208 209 #endif 210 /* -------------------------- b12_UsageDirective -------------------------- */ 211 /* refby( zx_e_Header_s ) */ 212 #ifndef zx_b12_UsageDirective_EXT 213 #define zx_b12_UsageDirective_EXT 214 #endif 215 struct zx_b12_UsageDirective_s { 216 ZX_ELEM_EXT 217 zx_b12_UsageDirective_EXT 218 struct zx_attr_s* id; /* {0,1} attribute xs:ID */ 219 struct zx_attr_s* ref; /* {1,1} attribute xs:anyURI */ 220 struct zx_attr_s* actor; /* {0,1} attribute xs:anyURI */ 221 struct zx_attr_s* mustUnderstand; /* {0,1} attribute xs:boolean */ 222 }; 223 224 #define zx_NEW_b12_UsageDirective(c, father) (struct zx_b12_UsageDirective_s*)zx_new_elem((c),(father),zx_b12_UsageDirective_ELEM) 225 int zx_DEC_ATTR_b12_UsageDirective(struct zx_ctx* c, struct zx_b12_UsageDirective_s* x); 226 int zx_DEC_ELEM_b12_UsageDirective(struct zx_ctx* c, struct zx_b12_UsageDirective_s* x); 227 228 #ifdef ZX_ENA_AUX 229 struct zx_b12_UsageDirective_s* zx_DEEP_CLONE_b12_UsageDirective(struct zx_ctx* c, struct zx_b12_UsageDirective_s* x, int dup_strs); 230 void zx_DUP_STRS_b12_UsageDirective(struct zx_ctx* c, struct zx_b12_UsageDirective_s* x); 231 int zx_WALK_SO_b12_UsageDirective(struct zx_ctx* c, struct zx_b12_UsageDirective_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 232 int zx_WALK_WO_b12_UsageDirective(struct zx_ctx* c, struct zx_b12_UsageDirective_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 233 #endif 234 235 #ifdef ZX_ENA_GETPUT 236 struct zx_attr_s* zx_b12_UsageDirective_GET_id(struct zx_b12_UsageDirective_s* x); 237 struct zx_attr_s* zx_b12_UsageDirective_GET_ref(struct zx_b12_UsageDirective_s* x); 238 struct zx_attr_s* zx_b12_UsageDirective_GET_actor(struct zx_b12_UsageDirective_s* x); 239 struct zx_attr_s* zx_b12_UsageDirective_GET_mustUnderstand(struct zx_b12_UsageDirective_s* x); 240 241 242 243 244 245 void zx_b12_UsageDirective_PUT_id(struct zx_b12_UsageDirective_s* x, struct zx_attr_s* y); 246 void zx_b12_UsageDirective_PUT_ref(struct zx_b12_UsageDirective_s* x, struct zx_attr_s* y); 247 void zx_b12_UsageDirective_PUT_actor(struct zx_b12_UsageDirective_s* x, struct zx_attr_s* y); 248 void zx_b12_UsageDirective_PUT_mustUnderstand(struct zx_b12_UsageDirective_s* x, struct zx_attr_s* y); 249 250 251 252 253 254 #endif 255 256 #endif 257