1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H RecordSyntax-generic */
8 #include <yaz/z-core.h>
13 typedef struct Z_GenericRecord Z_GenericRecord;
14 YAZ_EXPORT int z_GenericRecord (ODR o, Z_GenericRecord **p, int opt, const char *name);
16 typedef struct Z_TaggedElement Z_TaggedElement;
17 YAZ_EXPORT int z_TaggedElement (ODR o, Z_TaggedElement **p, int opt, const char *name);
19 typedef struct Z_ElementData Z_ElementData;
20 YAZ_EXPORT int z_ElementData (ODR o, Z_ElementData **p, int opt, const char *name);
22 typedef struct Z_ElementMetaData Z_ElementMetaData;
23 YAZ_EXPORT int z_ElementMetaData (ODR o, Z_ElementMetaData **p, int opt, const char *name);
25 typedef struct Z_TagPath_s Z_TagPath_s;
26 YAZ_EXPORT int z_TagPath_s (ODR o, Z_TagPath_s **p, int opt, const char *name);
28 typedef struct Z_TagPath Z_TagPath;
29 YAZ_EXPORT int z_TagPath (ODR o, Z_TagPath **p, int opt, const char *name);
31 typedef struct Z_Order Z_Order;
32 YAZ_EXPORT int z_Order (ODR o, Z_Order **p, int opt, const char *name);
34 typedef struct Z_Usage Z_Usage;
35 YAZ_EXPORT int z_Usage (ODR o, Z_Usage **p, int opt, const char *name);
37 typedef struct Z_HitVector Z_HitVector;
38 YAZ_EXPORT int z_HitVector (ODR o, Z_HitVector **p, int opt, const char *name);
40 typedef struct Z_Triple Z_Triple;
41 YAZ_EXPORT int z_Triple (ODR o, Z_Triple **p, int opt, const char *name);
43 typedef struct Z_Variant Z_Variant;
44 YAZ_EXPORT int z_Variant (ODR o, Z_Variant **p, int opt, const char *name);
51 struct Z_GenericRecord {
53 Z_TaggedElement **elements;
56 struct Z_TaggedElement {
57 int *tagType; /* OPT */
58 Z_StringOrNumeric *tagValue;
59 int *tagOccurrence; /* OPT */
60 Z_ElementData *content;
61 Z_ElementMetaData *metaData; /* OPT */
62 Z_Variant *appliedVariant; /* OPT */
65 struct Z_ElementData {
72 Z_InternationalString *string;
76 Odr_null *elementNotThere;
77 Odr_null *elementEmpty;
78 Odr_null *noDataRequested;
79 Z_External *diagnostic;
80 Z_GenericRecord *subtree;
81 #define Z_ElementData_octets 1
82 #define Z_ElementData_numeric 2
83 #define Z_ElementData_date 3
84 #define Z_ElementData_ext 4
85 #define Z_ElementData_string 5
86 #define Z_ElementData_trueOrFalse 6
87 #define Z_ElementData_oid 7
88 #define Z_ElementData_intUnit 8
89 #define Z_ElementData_elementNotThere 9
90 #define Z_ElementData_elementEmpty 10
91 #define Z_ElementData_noDataRequested 11
92 #define Z_ElementData_diagnostic 12
93 #define Z_ElementData_subtree 13
97 struct Z_ElementMetaData {
98 Z_Order *seriesOrder; /* OPT */
99 Z_Usage *usageRight; /* OPT */
101 Z_HitVector **hits; /* OPT */
102 Z_InternationalString *displayName; /* OPT */
103 int num_supportedVariants;
104 Z_Variant **supportedVariants; /* OPT */
105 Z_InternationalString *message; /* OPT */
106 Odr_oct *elementDescriptor; /* OPT */
107 Z_TagPath *surrogateFor; /* OPT */
108 Z_TagPath *surrogateElement; /* OPT */
109 Z_External *other; /* OPT */
113 int *tagType; /* OPT */
114 Z_StringOrNumeric *tagValue;
115 int *tagOccurrence; /* OPT */
120 Z_TagPath_s **elements;
129 #define Z_Usage_redistributable 1
130 #define Z_Usage_restricted 2
131 #define Z_Usage_licensePointer 3
133 Z_InternationalString *restriction; /* OPT */
137 Z_Term *satisfier; /* OPT */
138 Z_IntUnit *offsetIntoElement; /* OPT */
139 Z_IntUnit *length; /* OPT */
140 int *hitRank; /* OPT */
141 Odr_oct *targetToken; /* OPT */
145 Odr_oid *variantSetId; /* OPT */
151 Z_InternationalString *internationalString;
152 Odr_oct *octetString;
153 Odr_oid *objectIdentifier;
157 Z_IntUnit *valueAndUnit;
158 #define Z_Triple_integer 1
159 #define Z_Triple_internationalString 2
160 #define Z_Triple_octetString 3
161 #define Z_Triple_objectIdentifier 4
162 #define Z_Triple_boolean 5
163 #define Z_Triple_null 6
164 #define Z_Triple_unit 7
165 #define Z_Triple_valueAndUnit 8
170 Odr_oid *globalVariantSetId; /* OPT */