| 1 |
|
| 2 |
/*** <<< INCLUDES [Collection] >>> ***/ |
| 3 |
|
| 4 |
#include <REAL.h> |
| 5 |
#include <asn_SET_OF.h> |
| 6 |
#include <constr_SET_OF.h> |
| 7 |
#include <IA5String.h> |
| 8 |
|
| 9 |
/*** <<< TYPE-DECLS [Collection] >>> ***/ |
| 10 |
|
| 11 |
typedef struct Collection_16P0 { |
| 12 |
A_SET_OF(REAL_t) list; |
| 13 |
|
| 14 |
/* Context for parsing across buffer boundaries */ |
| 15 |
asn_struct_ctx_t _asn_ctx; |
| 16 |
} Collection_16P0_t; |
| 17 |
typedef struct Collection_16P1 { |
| 18 |
A_SET_OF(IA5String_t) list; |
| 19 |
|
| 20 |
/* Context for parsing across buffer boundaries */ |
| 21 |
asn_struct_ctx_t _asn_ctx; |
| 22 |
} Collection_16P1_t; |
| 23 |
|
| 24 |
/*** <<< FUNC-DECLS [Collection] >>> ***/ |
| 25 |
|
| 26 |
extern asn_TYPE_descriptor_t asn_DEF_Collection_16P0; |
| 27 |
extern asn_TYPE_descriptor_t asn_DEF_Collection_16P1; |
| 28 |
|
| 29 |
/*** <<< STAT-DEFS [Collection] >>> ***/ |
| 30 |
|
| 31 |
static asn_TYPE_member_t asn_MBR_Collection_16P0_1[] = { |
| 32 |
{ ATF_POINTER, 0, 0, |
| 33 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), |
| 34 |
.tag_mode = 0, |
| 35 |
.type = &asn_DEF_REAL, |
| 36 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 37 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 38 |
.default_value = 0, |
| 39 |
.name = "" |
| 40 |
}, |
| 41 |
}; |
| 42 |
static const ber_tlv_tag_t asn_DEF_Collection_16P0_tags_1[] = { |
| 43 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 44 |
}; |
| 45 |
static asn_SET_OF_specifics_t asn_SPC_Collection_16P0_specs_1 = { |
| 46 |
sizeof(struct Collection_16P0), |
| 47 |
offsetof(struct Collection_16P0, _asn_ctx), |
| 48 |
0, /* XER encoding is XMLDelimitedItemList */ |
| 49 |
}; |
| 50 |
asn_TYPE_descriptor_t asn_DEF_Collection_16P0 = { |
| 51 |
"Collection", |
| 52 |
"Collection", |
| 53 |
SET_OF_free, |
| 54 |
SET_OF_print, |
| 55 |
SET_OF_constraint, |
| 56 |
SET_OF_decode_ber, |
| 57 |
SET_OF_encode_der, |
| 58 |
SET_OF_decode_xer, |
| 59 |
SET_OF_encode_xer, |
| 60 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 61 |
0, /* Use generic outmost tag fetcher */ |
| 62 |
asn_DEF_Collection_16P0_tags_1, |
| 63 |
sizeof(asn_DEF_Collection_16P0_tags_1) |
| 64 |
/sizeof(asn_DEF_Collection_16P0_tags_1[0]), /* 1 */ |
| 65 |
asn_DEF_Collection_16P0_tags_1, /* Same as above */ |
| 66 |
sizeof(asn_DEF_Collection_16P0_tags_1) |
| 67 |
/sizeof(asn_DEF_Collection_16P0_tags_1[0]), /* 1 */ |
| 68 |
0, /* No PER visible constraints */ |
| 69 |
asn_MBR_Collection_16P0_1, |
| 70 |
1, /* Single element */ |
| 71 |
&asn_SPC_Collection_16P0_specs_1 /* Additional specs */ |
| 72 |
}; |
| 73 |
|
| 74 |
static asn_TYPE_member_t asn_MBR_Collection_16P1_3[] = { |
| 75 |
{ ATF_POINTER, 0, 0, |
| 76 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), |
| 77 |
.tag_mode = 0, |
| 78 |
.type = &asn_DEF_IA5String, |
| 79 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 80 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 81 |
.default_value = 0, |
| 82 |
.name = "" |
| 83 |
}, |
| 84 |
}; |
| 85 |
static const ber_tlv_tag_t asn_DEF_Collection_16P1_tags_3[] = { |
| 86 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 87 |
}; |
| 88 |
static asn_SET_OF_specifics_t asn_SPC_Collection_16P1_specs_3 = { |
| 89 |
sizeof(struct Collection_16P1), |
| 90 |
offsetof(struct Collection_16P1, _asn_ctx), |
| 91 |
0, /* XER encoding is XMLDelimitedItemList */ |
| 92 |
}; |
| 93 |
asn_TYPE_descriptor_t asn_DEF_Collection_16P1 = { |
| 94 |
"Collection", |
| 95 |
"Collection", |
| 96 |
SET_OF_free, |
| 97 |
SET_OF_print, |
| 98 |
SET_OF_constraint, |
| 99 |
SET_OF_decode_ber, |
| 100 |
SET_OF_encode_der, |
| 101 |
SET_OF_decode_xer, |
| 102 |
SET_OF_encode_xer, |
| 103 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 104 |
0, /* Use generic outmost tag fetcher */ |
| 105 |
asn_DEF_Collection_16P1_tags_3, |
| 106 |
sizeof(asn_DEF_Collection_16P1_tags_3) |
| 107 |
/sizeof(asn_DEF_Collection_16P1_tags_3[0]), /* 1 */ |
| 108 |
asn_DEF_Collection_16P1_tags_3, /* Same as above */ |
| 109 |
sizeof(asn_DEF_Collection_16P1_tags_3) |
| 110 |
/sizeof(asn_DEF_Collection_16P1_tags_3[0]), /* 1 */ |
| 111 |
0, /* No PER visible constraints */ |
| 112 |
asn_MBR_Collection_16P1_3, |
| 113 |
1, /* Single element */ |
| 114 |
&asn_SPC_Collection_16P1_specs_3 /* Additional specs */ |
| 115 |
}; |
| 116 |
|
| 117 |
|
| 118 |
/*** <<< INCLUDES [Bunch] >>> ***/ |
| 119 |
|
| 120 |
#include "Collection.h" |
| 121 |
#include <constr_SEQUENCE.h> |
| 122 |
|
| 123 |
/*** <<< TYPE-DECLS [Bunch] >>> ***/ |
| 124 |
|
| 125 |
typedef struct Bunch { |
| 126 |
Collection_16P0_t field_REAL; |
| 127 |
Collection_16P1_t field_IA5String; |
| 128 |
|
| 129 |
/* Context for parsing across buffer boundaries */ |
| 130 |
asn_struct_ctx_t _asn_ctx; |
| 131 |
} Bunch_t; |
| 132 |
|
| 133 |
/*** <<< FUNC-DECLS [Bunch] >>> ***/ |
| 134 |
|
| 135 |
extern asn_TYPE_descriptor_t asn_DEF_Bunch; |
| 136 |
|
| 137 |
/*** <<< STAT-DEFS [Bunch] >>> ***/ |
| 138 |
|
| 139 |
static asn_TYPE_member_t asn_MBR_Bunch_1[] = { |
| 140 |
{ ATF_NOFLAGS, 0, offsetof(struct Bunch, field_REAL), |
| 141 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 142 |
.tag_mode = 0, |
| 143 |
.type = &asn_DEF_Collection_16P0, |
| 144 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 145 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 146 |
.default_value = 0, |
| 147 |
.name = "field-REAL" |
| 148 |
}, |
| 149 |
{ ATF_NOFLAGS, 0, offsetof(struct Bunch, field_IA5String), |
| 150 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 151 |
.tag_mode = 0, |
| 152 |
.type = &asn_DEF_Collection_16P1, |
| 153 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 154 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 155 |
.default_value = 0, |
| 156 |
.name = "field-IA5String" |
| 157 |
}, |
| 158 |
}; |
| 159 |
static const ber_tlv_tag_t asn_DEF_Bunch_tags_1[] = { |
| 160 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 161 |
}; |
| 162 |
static const asn_TYPE_tag2member_t asn_MAP_Bunch_tag2el_1[] = { |
| 163 |
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 1 }, /* field-REAL */ |
| 164 |
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, -1, 0 } /* field-IA5String */ |
| 165 |
}; |
| 166 |
static asn_SEQUENCE_specifics_t asn_SPC_Bunch_specs_1 = { |
| 167 |
sizeof(struct Bunch), |
| 168 |
offsetof(struct Bunch, _asn_ctx), |
| 169 |
asn_MAP_Bunch_tag2el_1, |
| 170 |
2, /* Count of tags in the map */ |
| 171 |
0, 0, 0, /* Optional elements (not needed) */ |
| 172 |
-1, /* Start extensions */ |
| 173 |
-1 /* Stop extensions */ |
| 174 |
}; |
| 175 |
asn_TYPE_descriptor_t asn_DEF_Bunch = { |
| 176 |
"Bunch", |
| 177 |
"Bunch", |
| 178 |
SEQUENCE_free, |
| 179 |
SEQUENCE_print, |
| 180 |
SEQUENCE_constraint, |
| 181 |
SEQUENCE_decode_ber, |
| 182 |
SEQUENCE_encode_der, |
| 183 |
SEQUENCE_decode_xer, |
| 184 |
SEQUENCE_encode_xer, |
| 185 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 186 |
0, /* Use generic outmost tag fetcher */ |
| 187 |
asn_DEF_Bunch_tags_1, |
| 188 |
sizeof(asn_DEF_Bunch_tags_1) |
| 189 |
/sizeof(asn_DEF_Bunch_tags_1[0]), /* 1 */ |
| 190 |
asn_DEF_Bunch_tags_1, /* Same as above */ |
| 191 |
sizeof(asn_DEF_Bunch_tags_1) |
| 192 |
/sizeof(asn_DEF_Bunch_tags_1[0]), /* 1 */ |
| 193 |
0, /* No PER visible constraints */ |
| 194 |
asn_MBR_Bunch_1, |
| 195 |
2, /* Elements count */ |
| 196 |
&asn_SPC_Bunch_specs_1 /* Additional specs */ |
| 197 |
}; |
| 198 |
|