|
1 // Copyright (c) 2001-2009 Objective Systems, Inc. (http://www.obj-sys.com) |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 |
|
9 /** |
|
10 * This file was generated by the Objective Systems ASN1C Compiler |
|
11 * (http://www.obj-sys.com). |
|
12 */ |
|
13 #ifndef SUPL_POS_H |
|
14 #define SUPL_POS_H |
|
15 |
|
16 #include <stdio.h> |
|
17 #include <stdlib.h> |
|
18 #include "rtkey.h" |
|
19 #include "rtpersrc/asn1PerCppTypes.h" |
|
20 #include "ULP-Components.h" |
|
21 |
|
22 /** |
|
23 * Header file for ASN.1 module SUPL-POS |
|
24 */ |
|
25 /**************************************************************/ |
|
26 /* */ |
|
27 /* PosPayLoad_tia801payload */ |
|
28 /* */ |
|
29 /**************************************************************/ |
|
30 |
|
31 #define TV_PosPayLoad_tia801payload (TM_UNIV|TM_PRIM|4) |
|
32 |
|
33 struct ASN1T_PosPayLoad_tia801payload { |
|
34 OSUINT32 numocts; |
|
35 OSOCTET data[8192]; |
|
36 // ctors |
|
37 ASN1T_PosPayLoad_tia801payload () : numocts(0) {} |
|
38 ASN1T_PosPayLoad_tia801payload (OSUINT32 _numocts, const OSOCTET* _data) : |
|
39 numocts (_numocts) { |
|
40 OSCRTLMEMCPY (data, _data, OSRTMIN (numocts, sizeof(data))); |
|
41 } |
|
42 ASN1T_PosPayLoad_tia801payload (const char* cstring) { |
|
43 if (strlen(cstring) > 0) { |
|
44 numocts = OSRTMIN ((OSCRTLSTRLEN(cstring)+1), sizeof(data)); |
|
45 OSCRTLSTRNCPY ((char*)data, cstring, sizeof(data)); |
|
46 } |
|
47 else numocts = 0; |
|
48 } |
|
49 // assignment operators |
|
50 ASN1T_PosPayLoad_tia801payload& operator= (const char* cstring) { |
|
51 if (strlen(cstring) > 0) { |
|
52 numocts = OSRTMIN ((OSCRTLSTRLEN(cstring)+1), sizeof(data)); |
|
53 OSCRTLSTRNCPY ((char*)data, cstring, sizeof(data)); |
|
54 } |
|
55 else numocts = 0; |
|
56 return *this; |
|
57 } |
|
58 } ; |
|
59 |
|
60 IMPORT_C int asn1PE_PosPayLoad_tia801payload (OSCTXT* pctxt, ASN1T_PosPayLoad_tia801payload* pvalue); |
|
61 |
|
62 IMPORT_C int asn1PD_PosPayLoad_tia801payload (OSCTXT* pctxt, ASN1T_PosPayLoad_tia801payload* pvalue); |
|
63 |
|
64 IMPORT_C void asn1Print_PosPayLoad_tia801payload |
|
65 (const char* name, ASN1T_PosPayLoad_tia801payload* pvalue); |
|
66 |
|
67 /**************************************************************/ |
|
68 /* */ |
|
69 /* PosPayLoad_rrcPayload */ |
|
70 /* */ |
|
71 /**************************************************************/ |
|
72 |
|
73 #define TV_PosPayLoad_rrcPayload (TM_UNIV|TM_PRIM|4) |
|
74 |
|
75 struct ASN1T_PosPayLoad_rrcPayload { |
|
76 OSUINT32 numocts; |
|
77 OSOCTET data[8192]; |
|
78 // ctors |
|
79 ASN1T_PosPayLoad_rrcPayload () : numocts(0) {} |
|
80 ASN1T_PosPayLoad_rrcPayload (OSUINT32 _numocts, const OSOCTET* _data) : |
|
81 numocts (_numocts) { |
|
82 OSCRTLMEMCPY (data, _data, OSRTMIN (numocts, sizeof(data))); |
|
83 } |
|
84 ASN1T_PosPayLoad_rrcPayload (const char* cstring) { |
|
85 if (strlen(cstring) > 0) { |
|
86 numocts = OSRTMIN ((OSCRTLSTRLEN(cstring)+1), sizeof(data)); |
|
87 OSCRTLSTRNCPY ((char*)data, cstring, sizeof(data)); |
|
88 } |
|
89 else numocts = 0; |
|
90 } |
|
91 // assignment operators |
|
92 ASN1T_PosPayLoad_rrcPayload& operator= (const char* cstring) { |
|
93 if (strlen(cstring) > 0) { |
|
94 numocts = OSRTMIN ((OSCRTLSTRLEN(cstring)+1), sizeof(data)); |
|
95 OSCRTLSTRNCPY ((char*)data, cstring, sizeof(data)); |
|
96 } |
|
97 else numocts = 0; |
|
98 return *this; |
|
99 } |
|
100 } ; |
|
101 |
|
102 IMPORT_C int asn1PE_PosPayLoad_rrcPayload (OSCTXT* pctxt, ASN1T_PosPayLoad_rrcPayload* pvalue); |
|
103 |
|
104 IMPORT_C int asn1PD_PosPayLoad_rrcPayload (OSCTXT* pctxt, ASN1T_PosPayLoad_rrcPayload* pvalue); |
|
105 |
|
106 IMPORT_C void asn1Print_PosPayLoad_rrcPayload |
|
107 (const char* name, ASN1T_PosPayLoad_rrcPayload* pvalue); |
|
108 |
|
109 /**************************************************************/ |
|
110 /* */ |
|
111 /* PosPayLoad_rrlpPayload */ |
|
112 /* */ |
|
113 /**************************************************************/ |
|
114 |
|
115 #define TV_PosPayLoad_rrlpPayload (TM_UNIV|TM_PRIM|4) |
|
116 |
|
117 struct ASN1T_PosPayLoad_rrlpPayload { |
|
118 OSUINT32 numocts; |
|
119 OSOCTET data[8192]; |
|
120 // ctors |
|
121 ASN1T_PosPayLoad_rrlpPayload () : numocts(0) {} |
|
122 ASN1T_PosPayLoad_rrlpPayload (OSUINT32 _numocts, const OSOCTET* _data) : |
|
123 numocts (_numocts) { |
|
124 OSCRTLMEMCPY (data, _data, OSRTMIN (numocts, sizeof(data))); |
|
125 } |
|
126 ASN1T_PosPayLoad_rrlpPayload (const char* cstring) { |
|
127 if (strlen(cstring) > 0) { |
|
128 numocts = OSRTMIN ((OSCRTLSTRLEN(cstring)+1), sizeof(data)); |
|
129 OSCRTLSTRNCPY ((char*)data, cstring, sizeof(data)); |
|
130 } |
|
131 else numocts = 0; |
|
132 } |
|
133 // assignment operators |
|
134 ASN1T_PosPayLoad_rrlpPayload& operator= (const char* cstring) { |
|
135 if (strlen(cstring) > 0) { |
|
136 numocts = OSRTMIN ((OSCRTLSTRLEN(cstring)+1), sizeof(data)); |
|
137 OSCRTLSTRNCPY ((char*)data, cstring, sizeof(data)); |
|
138 } |
|
139 else numocts = 0; |
|
140 return *this; |
|
141 } |
|
142 } ; |
|
143 |
|
144 IMPORT_C int asn1PE_PosPayLoad_rrlpPayload (OSCTXT* pctxt, ASN1T_PosPayLoad_rrlpPayload* pvalue); |
|
145 |
|
146 IMPORT_C int asn1PD_PosPayLoad_rrlpPayload (OSCTXT* pctxt, ASN1T_PosPayLoad_rrlpPayload* pvalue); |
|
147 |
|
148 IMPORT_C void asn1Print_PosPayLoad_rrlpPayload |
|
149 (const char* name, ASN1T_PosPayLoad_rrlpPayload* pvalue); |
|
150 |
|
151 /**************************************************************/ |
|
152 /* */ |
|
153 /* PosPayLoad */ |
|
154 /* */ |
|
155 /**************************************************************/ |
|
156 |
|
157 /* Choice tag constants */ |
|
158 |
|
159 #define T_PosPayLoad_tia801payload 1 |
|
160 #define T_PosPayLoad_rrcPayload 2 |
|
161 #define T_PosPayLoad_rrlpPayload 3 |
|
162 #define T_PosPayLoad_extElem1 4 |
|
163 |
|
164 struct ASN1T_PosPayLoad { |
|
165 int t; |
|
166 union { |
|
167 /* t = 1 */ |
|
168 ASN1T_PosPayLoad_tia801payload *tia801payload; |
|
169 /* t = 2 */ |
|
170 ASN1T_PosPayLoad_rrcPayload *rrcPayload; |
|
171 /* t = 3 */ |
|
172 ASN1T_PosPayLoad_rrlpPayload *rrlpPayload; |
|
173 /* t = 4 */ |
|
174 } u; |
|
175 } ; |
|
176 |
|
177 IMPORT_C int asn1PE_PosPayLoad (OSCTXT* pctxt, ASN1T_PosPayLoad* pvalue); |
|
178 |
|
179 IMPORT_C int asn1PD_PosPayLoad (OSCTXT* pctxt, ASN1T_PosPayLoad* pvalue); |
|
180 |
|
181 IMPORT_C void asn1Print_PosPayLoad |
|
182 (const char* name, ASN1T_PosPayLoad* pvalue); |
|
183 |
|
184 IMPORT_C void asn1Free_PosPayLoad (OSCTXT *pctxt, ASN1T_PosPayLoad* pvalue); |
|
185 |
|
186 /**************************************************************/ |
|
187 /* */ |
|
188 /* SUPLPOS */ |
|
189 /* */ |
|
190 /**************************************************************/ |
|
191 |
|
192 #define TV_SUPLPOS (TM_UNIV|TM_CONS|16) |
|
193 |
|
194 struct ASN1T_SUPLPOS { |
|
195 struct { |
|
196 unsigned velocityPresent : 1; |
|
197 } m; |
|
198 ASN1T_PosPayLoad posPayLoad; |
|
199 ASN1T_Velocity velocity; |
|
200 IMPORT_C ASN1T_SUPLPOS (); |
|
201 } ; |
|
202 |
|
203 IMPORT_C int asn1PE_SUPLPOS (OSCTXT* pctxt, ASN1T_SUPLPOS* pvalue); |
|
204 |
|
205 IMPORT_C int asn1PD_SUPLPOS (OSCTXT* pctxt, ASN1T_SUPLPOS* pvalue); |
|
206 |
|
207 IMPORT_C void asn1Print_SUPLPOS |
|
208 (const char* name, ASN1T_SUPLPOS* pvalue); |
|
209 |
|
210 IMPORT_C void asn1Free_SUPLPOS (OSCTXT *pctxt, ASN1T_SUPLPOS* pvalue); |
|
211 |
|
212 #endif |