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