blob: 7f602d849cedcb3ccad37f3b1e047a972e712761 [file] [log] [blame]
Lev Walkinac760bf2005-10-05 08:59:03 +00001
2/*** <<< INCLUDES [TestSet] >>> ***/
3
4#include <VisibleString.h>
5#include <constr_SET.h>
6
7/*** <<< DEPS [TestSet] >>> ***/
8
9
10/*
11 * Method of determining the components presence
12 */
13typedef enum TestSet_PR {
14 TestSet_PR_m0, /* Member m0 is present */
15 TestSet_PR_m1, /* Member m1 is present */
16 TestSet_PR_m2, /* Member m2 is present */
17 TestSet_PR_m3, /* Member m3 is present */
18 TestSet_PR_m4, /* Member m4 is present */
19 TestSet_PR_m5, /* Member m5 is present */
20 TestSet_PR_m6, /* Member m6 is present */
21 TestSet_PR_m7, /* Member m7 is present */
22 TestSet_PR_m8, /* Member m8 is present */
23 TestSet_PR_m9, /* Member m9 is present */
24} TestSet_PR;
25
26/*** <<< TYPE-DECLS [TestSet] >>> ***/
27
28typedef struct TestSet {
29 VisibleString_t m0;
30 VisibleString_t *m1 /* OPTIONAL */;
31 VisibleString_t m2;
32 VisibleString_t m3;
33 VisibleString_t *m4 /* OPTIONAL */;
34 VisibleString_t m5;
35 VisibleString_t m6;
36 VisibleString_t m7;
37 VisibleString_t *m8 /* OPTIONAL */;
38 VisibleString_t m9;
39 /*
40 * This type is extensible,
41 * possible extensions are below.
42 */
43
44 /* Presence bitmask: ASN_SET_ISPRESENT(pTestSet, TestSet_PR_x) */
45 unsigned int _presence_map
46 [((10+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
47
48 /* Context for parsing across buffer boundaries */
49 asn_struct_ctx_t _asn_ctx;
50} TestSet_t;
51
52/*** <<< FUNC-DECLS [TestSet] >>> ***/
53
54extern asn_TYPE_descriptor_t asn_DEF_TestSet;
55
56/*** <<< STAT-DEFS [TestSet] >>> ***/
57
58static asn_TYPE_member_t asn_MBR_TestSet_1[] = {
59 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m0),
60 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
61 .tag_mode = -1, /* IMPLICIT tag at current level */
62 .type = &asn_DEF_VisibleString,
63 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040064 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000065 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
66 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000067 .name = "m0"
68 },
69 { ATF_POINTER, 1, offsetof(struct TestSet, m1),
70 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
71 .tag_mode = -1, /* IMPLICIT tag at current level */
72 .type = &asn_DEF_VisibleString,
73 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040074 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000075 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
76 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000077 .name = "m1"
78 },
79 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m2),
80 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
81 .tag_mode = -1, /* IMPLICIT tag at current level */
82 .type = &asn_DEF_VisibleString,
83 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040084 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000085 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
86 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000087 .name = "m2"
88 },
89 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m3),
90 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
91 .tag_mode = -1, /* IMPLICIT tag at current level */
92 .type = &asn_DEF_VisibleString,
93 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040094 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000095 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
96 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +000097 .name = "m3"
98 },
99 { ATF_POINTER, 1, offsetof(struct TestSet, m4),
100 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
101 .tag_mode = -1, /* IMPLICIT tag at current level */
102 .type = &asn_DEF_VisibleString,
103 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400104 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000105 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
106 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000107 .name = "m4"
108 },
109 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m5),
110 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
111 .tag_mode = -1, /* IMPLICIT tag at current level */
112 .type = &asn_DEF_VisibleString,
113 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400114 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000115 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
116 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000117 .name = "m5"
118 },
119 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m6),
120 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
121 .tag_mode = -1, /* IMPLICIT tag at current level */
122 .type = &asn_DEF_VisibleString,
123 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400124 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000125 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
126 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000127 .name = "m6"
128 },
129 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m7),
130 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
131 .tag_mode = -1, /* IMPLICIT tag at current level */
132 .type = &asn_DEF_VisibleString,
133 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400134 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000135 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
136 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000137 .name = "m7"
138 },
139 { ATF_POINTER, 1, offsetof(struct TestSet, m8),
140 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
141 .tag_mode = -1, /* IMPLICIT tag at current level */
142 .type = &asn_DEF_VisibleString,
143 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400144 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000145 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
146 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000147 .name = "m8"
148 },
149 { ATF_NOFLAGS, 0, offsetof(struct TestSet, m9),
150 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
151 .tag_mode = -1, /* IMPLICIT tag at current level */
152 .type = &asn_DEF_VisibleString,
153 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400154 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000155 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
156 .default_value = 0,
Lev Walkinac760bf2005-10-05 08:59:03 +0000157 .name = "m9"
158 },
159};
Lev Walkina7591b52014-10-12 18:37:35 -0700160static const ber_tlv_tag_t asn_DEF_TestSet_tags_1[] = {
Lev Walkinac760bf2005-10-05 08:59:03 +0000161 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
162};
Lev Walkina7591b52014-10-12 18:37:35 -0700163static const asn_TYPE_tag2member_t asn_MAP_TestSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700164 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m0 */
165 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* m1 */
166 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* m2 */
167 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* m3 */
168 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* m4 */
169 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* m5 */
170 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* m6 */
171 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* m7 */
172 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* m8 */
173 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* m9 */
Lev Walkinac760bf2005-10-05 08:59:03 +0000174};
Lev Walkina7591b52014-10-12 18:37:35 -0700175static const uint8_t asn_MAP_TestSet_mmap_1[(10 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinac760bf2005-10-05 08:59:03 +0000176 (1 << 7) | (0 << 6) | (1 << 5) | (1 << 4) | (0 << 3) | (1 << 2) | (1 << 1) | (1 << 0),
177 (0 << 7) | (1 << 6)
178};
Lev Walkin59b176e2005-11-26 11:25:14 +0000179static asn_SET_specifics_t asn_SPC_TestSet_specs_1 = {
Lev Walkinac760bf2005-10-05 08:59:03 +0000180 sizeof(struct TestSet),
181 offsetof(struct TestSet, _asn_ctx),
182 offsetof(struct TestSet, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000183 asn_MAP_TestSet_tag2el_1,
Lev Walkinac760bf2005-10-05 08:59:03 +0000184 10, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000185 asn_MAP_TestSet_tag2el_1, /* Same as above */
Lev Walkinac760bf2005-10-05 08:59:03 +0000186 10, /* Count of tags in the CXER map */
187 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700188 (const unsigned int *)asn_MAP_TestSet_mmap_1 /* Mandatory elements map */
Lev Walkinac760bf2005-10-05 08:59:03 +0000189};
190asn_TYPE_descriptor_t asn_DEF_TestSet = {
191 "TestSet",
192 "TestSet",
193 SET_free,
194 SET_print,
195 SET_constraint,
196 SET_decode_ber,
197 SET_encode_der,
198 SET_decode_xer,
199 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700200 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400201 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinac760bf2005-10-05 08:59:03 +0000202 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000203 asn_DEF_TestSet_tags_1,
204 sizeof(asn_DEF_TestSet_tags_1)
205 /sizeof(asn_DEF_TestSet_tags_1[0]), /* 1 */
206 asn_DEF_TestSet_tags_1, /* Same as above */
207 sizeof(asn_DEF_TestSet_tags_1)
208 /sizeof(asn_DEF_TestSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400209 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000210 0, /* No PER visible constraints */
Lev Walkinac760bf2005-10-05 08:59:03 +0000211 asn_MBR_TestSet_1,
212 10, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000213 &asn_SPC_TestSet_specs_1 /* Additional specs */
Lev Walkinac760bf2005-10-05 08:59:03 +0000214};
215