Utilise new MergeSym feature to no longer overwrite the source .DEF file when buildin...
[openh323.git] / include / x880.h
blobfa335975376ad0bd66f6912c51129b059e828f65
1 //
2 // x880.h
3 //
4 // Code automatically generated by asnparse.
5 //
7 #if ! H323_DISABLE_X880
9 #ifndef __X880_H
10 #define __X880_H
12 #ifdef P_USE_PRAGMA
13 #pragma interface
14 #endif
16 #include <ptclib/asner.h>
19 // ROS
22 class X880_Invoke;
23 class X880_ReturnResult;
24 class X880_ReturnError;
25 class X880_Reject;
27 class X880_ROS : public PASN_Choice
29 #ifndef PASN_LEANANDMEAN
30 PCLASSINFO(X880_ROS, PASN_Choice);
31 #endif
32 public:
33 X880_ROS(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
35 enum Choices {
36 e_invoke,
37 e_returnResult,
38 e_returnError,
39 e_reject
42 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
43 operator X880_Invoke &() const;
44 #else
45 operator X880_Invoke &();
46 operator const X880_Invoke &() const;
47 #endif
48 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
49 operator X880_ReturnResult &() const;
50 #else
51 operator X880_ReturnResult &();
52 operator const X880_ReturnResult &() const;
53 #endif
54 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
55 operator X880_ReturnError &() const;
56 #else
57 operator X880_ReturnError &();
58 operator const X880_ReturnError &() const;
59 #endif
60 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
61 operator X880_Reject &() const;
62 #else
63 operator X880_Reject &();
64 operator const X880_Reject &() const;
65 #endif
67 BOOL CreateObject();
68 PObject * Clone() const;
73 // GeneralProblem
76 class X880_GeneralProblem : public PASN_Integer
78 #ifndef PASN_LEANANDMEAN
79 PCLASSINFO(X880_GeneralProblem, PASN_Integer);
80 #endif
81 public:
82 X880_GeneralProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
84 X880_GeneralProblem & operator=(int v);
85 X880_GeneralProblem & operator=(unsigned v);
86 PObject * Clone() const;
91 // InvokeProblem
94 class X880_InvokeProblem : public PASN_Integer
96 #ifndef PASN_LEANANDMEAN
97 PCLASSINFO(X880_InvokeProblem, PASN_Integer);
98 #endif
99 public:
100 X880_InvokeProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
102 X880_InvokeProblem & operator=(int v);
103 X880_InvokeProblem & operator=(unsigned v);
104 PObject * Clone() const;
109 // ReturnResultProblem
112 class X880_ReturnResultProblem : public PASN_Integer
114 #ifndef PASN_LEANANDMEAN
115 PCLASSINFO(X880_ReturnResultProblem, PASN_Integer);
116 #endif
117 public:
118 X880_ReturnResultProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
120 X880_ReturnResultProblem & operator=(int v);
121 X880_ReturnResultProblem & operator=(unsigned v);
122 PObject * Clone() const;
127 // ReturnErrorProblem
130 class X880_ReturnErrorProblem : public PASN_Integer
132 #ifndef PASN_LEANANDMEAN
133 PCLASSINFO(X880_ReturnErrorProblem, PASN_Integer);
134 #endif
135 public:
136 X880_ReturnErrorProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
138 X880_ReturnErrorProblem & operator=(int v);
139 X880_ReturnErrorProblem & operator=(unsigned v);
140 PObject * Clone() const;
145 // RejectProblem
148 class X880_RejectProblem : public PASN_Integer
150 #ifndef PASN_LEANANDMEAN
151 PCLASSINFO(X880_RejectProblem, PASN_Integer);
152 #endif
153 public:
154 X880_RejectProblem(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
156 X880_RejectProblem & operator=(int v);
157 X880_RejectProblem & operator=(unsigned v);
158 PObject * Clone() const;
163 // InvokeId
166 class X880_InvokeId : public PASN_Integer
168 #ifndef PASN_LEANANDMEAN
169 PCLASSINFO(X880_InvokeId, PASN_Integer);
170 #endif
171 public:
172 X880_InvokeId(unsigned tag = UniversalInteger, TagClass tagClass = UniversalTagClass);
174 X880_InvokeId & operator=(int v);
175 X880_InvokeId & operator=(unsigned v);
176 PObject * Clone() const;
181 // Code
184 class X880_Code : public PASN_Choice
186 #ifndef PASN_LEANANDMEAN
187 PCLASSINFO(X880_Code, PASN_Choice);
188 #endif
189 public:
190 X880_Code(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
192 enum Choices {
193 e_local,
194 e_global
197 BOOL CreateObject();
198 PObject * Clone() const;
203 // ReturnResult_result
206 class X880_ReturnResult_result : public PASN_Sequence
208 #ifndef PASN_LEANANDMEAN
209 PCLASSINFO(X880_ReturnResult_result, PASN_Sequence);
210 #endif
211 public:
212 X880_ReturnResult_result(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
214 X880_Code m_opcode;
215 PASN_OctetString m_result;
217 PINDEX GetDataLength() const;
218 BOOL Decode(PASN_Stream & strm);
219 void Encode(PASN_Stream & strm) const;
220 #ifndef PASN_NOPRINTON
221 void PrintOn(ostream & strm) const;
222 #endif
223 Comparison Compare(const PObject & obj) const;
224 PObject * Clone() const;
229 // Reject_problem
232 class X880_GeneralProblem;
233 class X880_InvokeProblem;
234 class X880_ReturnResultProblem;
235 class X880_ReturnErrorProblem;
237 class X880_Reject_problem : public PASN_Choice
239 #ifndef PASN_LEANANDMEAN
240 PCLASSINFO(X880_Reject_problem, PASN_Choice);
241 #endif
242 public:
243 X880_Reject_problem(unsigned tag = 0, TagClass tagClass = UniversalTagClass);
245 enum Choices {
246 e_general,
247 e_invoke,
248 e_returnResult,
249 e_returnError
252 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
253 operator X880_GeneralProblem &() const;
254 #else
255 operator X880_GeneralProblem &();
256 operator const X880_GeneralProblem &() const;
257 #endif
258 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
259 operator X880_InvokeProblem &() const;
260 #else
261 operator X880_InvokeProblem &();
262 operator const X880_InvokeProblem &() const;
263 #endif
264 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
265 operator X880_ReturnResultProblem &() const;
266 #else
267 operator X880_ReturnResultProblem &();
268 operator const X880_ReturnResultProblem &() const;
269 #endif
270 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
271 operator X880_ReturnErrorProblem &() const;
272 #else
273 operator X880_ReturnErrorProblem &();
274 operator const X880_ReturnErrorProblem &() const;
275 #endif
277 BOOL CreateObject();
278 PObject * Clone() const;
283 // Invoke
286 class X880_Invoke : public PASN_Sequence
288 #ifndef PASN_LEANANDMEAN
289 PCLASSINFO(X880_Invoke, PASN_Sequence);
290 #endif
291 public:
292 X880_Invoke(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
294 enum OptionalFields {
295 e_linkedId,
296 e_argument
299 PASN_Integer m_invokeId;
300 X880_InvokeId m_linkedId;
301 X880_Code m_opcode;
302 PASN_OctetString m_argument;
304 PINDEX GetDataLength() const;
305 BOOL Decode(PASN_Stream & strm);
306 void Encode(PASN_Stream & strm) const;
307 #ifndef PASN_NOPRINTON
308 void PrintOn(ostream & strm) const;
309 #endif
310 Comparison Compare(const PObject & obj) const;
311 PObject * Clone() const;
316 // ReturnResult
319 class X880_ReturnResult : public PASN_Sequence
321 #ifndef PASN_LEANANDMEAN
322 PCLASSINFO(X880_ReturnResult, PASN_Sequence);
323 #endif
324 public:
325 X880_ReturnResult(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
327 enum OptionalFields {
328 e_result
331 X880_InvokeId m_invokeId;
332 X880_ReturnResult_result m_result;
334 PINDEX GetDataLength() const;
335 BOOL Decode(PASN_Stream & strm);
336 void Encode(PASN_Stream & strm) const;
337 #ifndef PASN_NOPRINTON
338 void PrintOn(ostream & strm) const;
339 #endif
340 Comparison Compare(const PObject & obj) const;
341 PObject * Clone() const;
346 // ReturnError
349 class X880_ReturnError : public PASN_Sequence
351 #ifndef PASN_LEANANDMEAN
352 PCLASSINFO(X880_ReturnError, PASN_Sequence);
353 #endif
354 public:
355 X880_ReturnError(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
357 enum OptionalFields {
358 e_parameter
361 X880_InvokeId m_invokeId;
362 X880_Code m_errorCode;
363 PASN_OctetString m_parameter;
365 PINDEX GetDataLength() const;
366 BOOL Decode(PASN_Stream & strm);
367 void Encode(PASN_Stream & strm) const;
368 #ifndef PASN_NOPRINTON
369 void PrintOn(ostream & strm) const;
370 #endif
371 Comparison Compare(const PObject & obj) const;
372 PObject * Clone() const;
377 // Reject
380 class X880_Reject : public PASN_Sequence
382 #ifndef PASN_LEANANDMEAN
383 PCLASSINFO(X880_Reject, PASN_Sequence);
384 #endif
385 public:
386 X880_Reject(unsigned tag = UniversalSequence, TagClass tagClass = UniversalTagClass);
388 X880_InvokeId m_invokeId;
389 X880_Reject_problem m_problem;
391 PINDEX GetDataLength() const;
392 BOOL Decode(PASN_Stream & strm);
393 void Encode(PASN_Stream & strm) const;
394 #ifndef PASN_NOPRINTON
395 void PrintOn(ostream & strm) const;
396 #endif
397 Comparison Compare(const PObject & obj) const;
398 PObject * Clone() const;
402 #endif // __X880_H
404 #endif // if ! H323_DISABLE_X880
407 // End of x880.h