1 /******************************************************************************
2 * Copyright (c) 2000-2014 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
15 type record of boolean RoB;
20 type record of integer RoI;
21 type integer int_1_3 (1..3)
26 type record of float RoF
31 type bitstring BitStrings1 ('0'B, '1'B );
32 type bitstring BitStrings2 ('00'B, '01'B, '10'B, '11'B);
33 type bitstring BitStrings_1_2 (BitStrings1, BitStrings2);
35 type record of hexstring RoBS;
36 //wrapper to test charstring in record:
41 type record of RBS RoRBS;
43 template RBS t_rbs(template bitstring pl_bs) := { bs:=pl_bs }
48 type record of octetstring RoOS;
49 //wrapper to test charstring in record:
51 octetstring os optional
54 type record of ROS RoROS;
56 template ROS t_ros(template octetstring pl_os) := { os:=pl_os }
61 type record of hexstring RoHS;
62 //wrapper to test charstring in record:
67 type record of RHS RoRHS;
69 template RHS t_rhs(template hexstring pl_hs) := { hs:=pl_hs }
75 type record of charstring RoCS;
76 //wrapper to test charstring in record:
78 charstring cs optional
81 type record of RCS RoRCS;
83 template RCS t_rcs(template charstring pl_cs) := { cs:=pl_cs }
87 group g_universal_charstring {
89 type record of universal charstring RoUCS;
90 //wrapper to test charstring in record:
92 universal charstring ucs optional
95 type record of RUCS RoRUCS;
97 template RUCS t_rucs(template universal charstring pl_ucs) := { ucs:=pl_ucs }
107 charstring cs optional,
108 bitstring bs optional
110 type record of REC RoREC;
112 type record RREC { REC rec optional };
114 template RoREC t_rorec(template REC pl_rec) := { pl_rec }
115 template RREC t_rrec( template REC pl_rec) := { rec := pl_rec }
119 charstring cs optional,
122 type record of REC2 RoREC2;
124 //record of boolean, octetstring, hexstring:
125 type record REC_BOH {
127 octetstring o optional,
131 type record REC_BAI3 {
136 template REC t_rec(template integer pl_i, template float pl_f, template charstring pl_cs, template bitstring pl_bs) := {
147 // see earlier: type record of integer RoI
148 type record of RoI RoRoI;
149 type record of RoB RoRoB;
150 //type record of float RoF;
151 type record of RoF RoRoF;
159 type integer AI2x3[2][3];
161 type record of AI3 RoAI3;
162 type record of AI2x3 RoAI2x3;
168 type record of RAI3 RoRAI3;
169 template RAI3 t_rai3(template AI3 pl_ai3) := { ai3 := pl_ai3 };
172 //array of bitstrings
173 //array of octetstrings
174 //array of hexstrings
175 //array of charstrings
194 bitstring bs optional,
195 octetstring os optional,
196 hexstring hs optional,
197 charstring cs optional
199 type record of SET RoSET;
200 //template RoSET t_roset(template SET pl_set) := { pl_set };
202 type record RSET { SET s optional }
203 template RSET t_rset(template SET pl_set) := {s:= pl_set };
204 type record of RSET RoRSET;
209 type set of charstring SoCS;
210 type record of SoCS RoSoCS;
211 type record RSoCS { SoCS s optional }
212 template RSoCS t_rsocs(template SoCS pl_s) := { s := pl_s }
213 type record of RSoCS RoRSoCS
218 type enumerated MyEnum { first, second, third }
220 type record REnum { MyEnum e optional }
221 template REnum t_renum(template MyEnum pl_e) := { e := pl_e }
241 type record RU { U u optional }
242 template RU t_ru(template U pl_u) := { u := pl_u }