Utilise new MergeSym feature to no longer overwrite the source .DEF file when buildin...
[openh323.git] / src / h4502.cxx
blob88237e640ecb1204b835b061758e7a86434ac57c
1 //
2 // h4502.cxx
3 //
4 // Code automatically generated by asnparse.
5 //
7 #ifdef P_USE_PRAGMA
8 #pragma implementation "h4502.h"
9 #endif
11 #include <ptlib.h>
12 #include "h4502.h"
14 #define new PNEW
17 #if ! H323_DISABLE_H4502
22 #ifndef PASN_NOPRINTON
23 const static PASN_Names Names_H4502_DummyArg[]={
24 {"extensionSeq",0}
25 ,{"nonStandardData",1}
27 #endif
29 // DummyArg
32 H4502_DummyArg::H4502_DummyArg(unsigned tag, PASN_Object::TagClass tagClass)
33 : PASN_Choice(tag, tagClass, 2, FALSE
34 #ifndef PASN_NOPRINTON
35 ,(const PASN_Names *)Names_H4502_DummyArg,2
36 #endif
42 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
43 H4502_DummyArg::operator H4502_ExtensionSeq &() const
44 #else
45 H4502_DummyArg::operator H4502_ExtensionSeq &()
47 #ifndef PASN_LEANANDMEAN
48 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
49 #endif
50 return *(H4502_ExtensionSeq *)choice;
54 H4502_DummyArg::operator const H4502_ExtensionSeq &() const
55 #endif
57 #ifndef PASN_LEANANDMEAN
58 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
59 #endif
60 return *(H4502_ExtensionSeq *)choice;
64 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
65 H4502_DummyArg::operator H225_NonStandardParameter &() const
66 #else
67 H4502_DummyArg::operator H225_NonStandardParameter &()
69 #ifndef PASN_LEANANDMEAN
70 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
71 #endif
72 return *(H225_NonStandardParameter *)choice;
76 H4502_DummyArg::operator const H225_NonStandardParameter &() const
77 #endif
79 #ifndef PASN_LEANANDMEAN
80 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
81 #endif
82 return *(H225_NonStandardParameter *)choice;
86 BOOL H4502_DummyArg::CreateObject()
88 switch (tag) {
89 case e_extensionSeq :
90 choice = new H4502_ExtensionSeq();
91 return TRUE;
92 case e_nonStandardData :
93 choice = new H225_NonStandardParameter();
94 return TRUE;
97 choice = NULL;
98 return FALSE;
102 PObject * H4502_DummyArg::Clone() const
104 #ifndef PASN_LEANANDMEAN
105 PAssert(IsClass(H4502_DummyArg::Class()), PInvalidCast);
106 #endif
107 return new H4502_DummyArg(*this);
112 #ifndef PASN_NOPRINTON
113 const static PASN_Names Names_H4502_DummyRes[]={
114 {"extensionSeq",0}
115 ,{"nonStandardData",1}
117 #endif
119 // DummyRes
122 H4502_DummyRes::H4502_DummyRes(unsigned tag, PASN_Object::TagClass tagClass)
123 : PASN_Choice(tag, tagClass, 2, FALSE
124 #ifndef PASN_NOPRINTON
125 ,(const PASN_Names *)Names_H4502_DummyRes,2
126 #endif
132 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
133 H4502_DummyRes::operator H4502_ExtensionSeq &() const
134 #else
135 H4502_DummyRes::operator H4502_ExtensionSeq &()
137 #ifndef PASN_LEANANDMEAN
138 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
139 #endif
140 return *(H4502_ExtensionSeq *)choice;
144 H4502_DummyRes::operator const H4502_ExtensionSeq &() const
145 #endif
147 #ifndef PASN_LEANANDMEAN
148 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
149 #endif
150 return *(H4502_ExtensionSeq *)choice;
154 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
155 H4502_DummyRes::operator H225_NonStandardParameter &() const
156 #else
157 H4502_DummyRes::operator H225_NonStandardParameter &()
159 #ifndef PASN_LEANANDMEAN
160 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
161 #endif
162 return *(H225_NonStandardParameter *)choice;
166 H4502_DummyRes::operator const H225_NonStandardParameter &() const
167 #endif
169 #ifndef PASN_LEANANDMEAN
170 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
171 #endif
172 return *(H225_NonStandardParameter *)choice;
176 BOOL H4502_DummyRes::CreateObject()
178 switch (tag) {
179 case e_extensionSeq :
180 choice = new H4502_ExtensionSeq();
181 return TRUE;
182 case e_nonStandardData :
183 choice = new H225_NonStandardParameter();
184 return TRUE;
187 choice = NULL;
188 return FALSE;
192 PObject * H4502_DummyRes::Clone() const
194 #ifndef PASN_LEANANDMEAN
195 PAssert(IsClass(H4502_DummyRes::Class()), PInvalidCast);
196 #endif
197 return new H4502_DummyRes(*this);
201 #ifndef PASN_NOPRINTON
202 const static PASN_Names Names_H4502_EndDesignation[]={
203 {"primaryEnd",0}
204 ,{"secondaryEnd",1}
206 #endif
208 // EndDesignation
211 H4502_EndDesignation::H4502_EndDesignation(unsigned tag, PASN_Object::TagClass tagClass)
212 : PASN_Enumeration(tag, tagClass, 1, TRUE
213 #ifndef PASN_NOPRINTON
214 ,(const PASN_Names *)Names_H4502_EndDesignation,2
215 #endif
221 H4502_EndDesignation & H4502_EndDesignation::operator=(unsigned v)
223 SetValue(v);
224 return *this;
228 PObject * H4502_EndDesignation::Clone() const
230 #ifndef PASN_LEANANDMEAN
231 PAssert(IsClass(H4502_EndDesignation::Class()), PInvalidCast);
232 #endif
233 return new H4502_EndDesignation(*this);
237 #ifndef PASN_NOPRINTON
238 const static PASN_Names Names_H4502_CallStatus[]={
239 {"answered",0}
240 ,{"alerting",1}
242 #endif
244 // CallStatus
247 H4502_CallStatus::H4502_CallStatus(unsigned tag, PASN_Object::TagClass tagClass)
248 : PASN_Enumeration(tag, tagClass, 1, TRUE
249 #ifndef PASN_NOPRINTON
250 ,(const PASN_Names *)Names_H4502_CallStatus,2
251 #endif
257 H4502_CallStatus & H4502_CallStatus::operator=(unsigned v)
259 SetValue(v);
260 return *this;
264 PObject * H4502_CallStatus::Clone() const
266 #ifndef PASN_LEANANDMEAN
267 PAssert(IsClass(H4502_CallStatus::Class()), PInvalidCast);
268 #endif
269 return new H4502_CallStatus(*this);
274 // CallIdentity
277 H4502_CallIdentity::H4502_CallIdentity(unsigned tag, PASN_Object::TagClass tagClass)
278 : PASN_NumericString(tag, tagClass)
280 SetConstraints(PASN_Object::FixedConstraint, 0, 4);
284 H4502_CallIdentity & H4502_CallIdentity::operator=(const char * v)
286 SetValue(v);
287 return *this;
291 H4502_CallIdentity & H4502_CallIdentity::operator=(const PString & v)
293 SetValue(v);
294 return *this;
298 PObject * H4502_CallIdentity::Clone() const
300 #ifndef PASN_LEANANDMEAN
301 PAssert(IsClass(H4502_CallIdentity::Class()), PInvalidCast);
302 #endif
303 return new H4502_CallIdentity(*this);
308 // ExtensionSeq
311 H4502_ExtensionSeq::H4502_ExtensionSeq(unsigned tag, PASN_Object::TagClass tagClass)
312 : PASN_Array(tag, tagClass)
317 PASN_Object * H4502_ExtensionSeq::CreateObject() const
319 return new H4501_Extension;
323 H4501_Extension & H4502_ExtensionSeq::operator[](PINDEX i) const
325 return (H4501_Extension &)array[i];
329 PObject * H4502_ExtensionSeq::Clone() const
331 #ifndef PASN_LEANANDMEAN
332 PAssert(IsClass(H4502_ExtensionSeq::Class()), PInvalidCast);
333 #endif
334 return new H4502_ExtensionSeq(*this);
338 #ifndef PASN_NOPRINTON
339 const static PASN_Names Names_H4502_CallTransferOperation[]={
340 {"callTransferIdentify",7}
341 ,{"callTransferAbandon",8}
342 ,{"callTransferInitiate",9}
343 ,{"callTransferSetup",10}
344 ,{"callTransferUpdate",13}
345 ,{"subaddressTransfer",14}
346 ,{"callTransferComplete",12}
347 ,{"callTransferActive",11}
349 #endif
351 // CallTransferOperation
354 H4502_CallTransferOperation::H4502_CallTransferOperation(unsigned tag, PASN_Object::TagClass tagClass)
355 : PASN_Enumeration(tag, tagClass, 14, FALSE
356 #ifndef PASN_NOPRINTON
357 ,(const PASN_Names *)Names_H4502_CallTransferOperation,8
358 #endif
364 H4502_CallTransferOperation & H4502_CallTransferOperation::operator=(unsigned v)
366 SetValue(v);
367 return *this;
371 PObject * H4502_CallTransferOperation::Clone() const
373 #ifndef PASN_LEANANDMEAN
374 PAssert(IsClass(H4502_CallTransferOperation::Class()), PInvalidCast);
375 #endif
376 return new H4502_CallTransferOperation(*this);
380 #ifndef PASN_NOPRINTON
381 const static PASN_Names Names_H4502_CallTransferErrors[]={
382 {"unspecified",1008}
383 ,{"invalidReroutingNumber",1004}
384 ,{"unrecognizedCallIdentity",1005}
385 ,{"establishmentFailure",1006}
387 #endif
389 // CallTransferErrors
392 H4502_CallTransferErrors::H4502_CallTransferErrors(unsigned tag, PASN_Object::TagClass tagClass)
393 : PASN_Enumeration(tag, tagClass, 1008, FALSE
394 #ifndef PASN_NOPRINTON
395 ,(const PASN_Names *)Names_H4502_CallTransferErrors,4
396 #endif
402 H4502_CallTransferErrors & H4502_CallTransferErrors::operator=(unsigned v)
404 SetValue(v);
405 return *this;
409 PObject * H4502_CallTransferErrors::Clone() const
411 #ifndef PASN_LEANANDMEAN
412 PAssert(IsClass(H4502_CallTransferErrors::Class()), PInvalidCast);
413 #endif
414 return new H4502_CallTransferErrors(*this);
419 #ifndef PASN_NOPRINTON
420 const static PASN_Names Names_H4502_CTInitiateArg_argumentExtension[]={
421 {"extensionSeq",0}
422 ,{"nonStandardData",1}
424 #endif
426 // CTInitiateArg_argumentExtension
429 H4502_CTInitiateArg_argumentExtension::H4502_CTInitiateArg_argumentExtension(unsigned tag, PASN_Object::TagClass tagClass)
430 : PASN_Choice(tag, tagClass, 2, FALSE
431 #ifndef PASN_NOPRINTON
432 ,(const PASN_Names *)Names_H4502_CTInitiateArg_argumentExtension,2
433 #endif
439 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
440 H4502_CTInitiateArg_argumentExtension::operator H4502_ExtensionSeq &() const
441 #else
442 H4502_CTInitiateArg_argumentExtension::operator H4502_ExtensionSeq &()
444 #ifndef PASN_LEANANDMEAN
445 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
446 #endif
447 return *(H4502_ExtensionSeq *)choice;
451 H4502_CTInitiateArg_argumentExtension::operator const H4502_ExtensionSeq &() const
452 #endif
454 #ifndef PASN_LEANANDMEAN
455 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
456 #endif
457 return *(H4502_ExtensionSeq *)choice;
461 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
462 H4502_CTInitiateArg_argumentExtension::operator H225_NonStandardParameter &() const
463 #else
464 H4502_CTInitiateArg_argumentExtension::operator H225_NonStandardParameter &()
466 #ifndef PASN_LEANANDMEAN
467 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
468 #endif
469 return *(H225_NonStandardParameter *)choice;
473 H4502_CTInitiateArg_argumentExtension::operator const H225_NonStandardParameter &() const
474 #endif
476 #ifndef PASN_LEANANDMEAN
477 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
478 #endif
479 return *(H225_NonStandardParameter *)choice;
483 BOOL H4502_CTInitiateArg_argumentExtension::CreateObject()
485 switch (tag) {
486 case e_extensionSeq :
487 choice = new H4502_ExtensionSeq();
488 return TRUE;
489 case e_nonStandardData :
490 choice = new H225_NonStandardParameter();
491 return TRUE;
494 choice = NULL;
495 return FALSE;
499 PObject * H4502_CTInitiateArg_argumentExtension::Clone() const
501 #ifndef PASN_LEANANDMEAN
502 PAssert(IsClass(H4502_CTInitiateArg_argumentExtension::Class()), PInvalidCast);
503 #endif
504 return new H4502_CTInitiateArg_argumentExtension(*this);
509 #ifndef PASN_NOPRINTON
510 const static PASN_Names Names_H4502_CTSetupArg_argumentExtension[]={
511 {"extensionSeq",0}
512 ,{"nonStandardData",1}
514 #endif
516 // CTSetupArg_argumentExtension
519 H4502_CTSetupArg_argumentExtension::H4502_CTSetupArg_argumentExtension(unsigned tag, PASN_Object::TagClass tagClass)
520 : PASN_Choice(tag, tagClass, 2, FALSE
521 #ifndef PASN_NOPRINTON
522 ,(const PASN_Names *)Names_H4502_CTSetupArg_argumentExtension,2
523 #endif
529 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
530 H4502_CTSetupArg_argumentExtension::operator H4502_ExtensionSeq &() const
531 #else
532 H4502_CTSetupArg_argumentExtension::operator H4502_ExtensionSeq &()
534 #ifndef PASN_LEANANDMEAN
535 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
536 #endif
537 return *(H4502_ExtensionSeq *)choice;
541 H4502_CTSetupArg_argumentExtension::operator const H4502_ExtensionSeq &() const
542 #endif
544 #ifndef PASN_LEANANDMEAN
545 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
546 #endif
547 return *(H4502_ExtensionSeq *)choice;
551 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
552 H4502_CTSetupArg_argumentExtension::operator H225_NonStandardParameter &() const
553 #else
554 H4502_CTSetupArg_argumentExtension::operator H225_NonStandardParameter &()
556 #ifndef PASN_LEANANDMEAN
557 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
558 #endif
559 return *(H225_NonStandardParameter *)choice;
563 H4502_CTSetupArg_argumentExtension::operator const H225_NonStandardParameter &() const
564 #endif
566 #ifndef PASN_LEANANDMEAN
567 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
568 #endif
569 return *(H225_NonStandardParameter *)choice;
573 BOOL H4502_CTSetupArg_argumentExtension::CreateObject()
575 switch (tag) {
576 case e_extensionSeq :
577 choice = new H4502_ExtensionSeq();
578 return TRUE;
579 case e_nonStandardData :
580 choice = new H225_NonStandardParameter();
581 return TRUE;
584 choice = NULL;
585 return FALSE;
589 PObject * H4502_CTSetupArg_argumentExtension::Clone() const
591 #ifndef PASN_LEANANDMEAN
592 PAssert(IsClass(H4502_CTSetupArg_argumentExtension::Class()), PInvalidCast);
593 #endif
594 return new H4502_CTSetupArg_argumentExtension(*this);
599 #ifndef PASN_NOPRINTON
600 const static PASN_Names Names_H4502_CTIdentifyRes_resultExtension[]={
601 {"extensionSeq",0}
602 ,{"nonStandardData",1}
604 #endif
606 // CTIdentifyRes_resultExtension
609 H4502_CTIdentifyRes_resultExtension::H4502_CTIdentifyRes_resultExtension(unsigned tag, PASN_Object::TagClass tagClass)
610 : PASN_Choice(tag, tagClass, 2, FALSE
611 #ifndef PASN_NOPRINTON
612 ,(const PASN_Names *)Names_H4502_CTIdentifyRes_resultExtension,2
613 #endif
619 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
620 H4502_CTIdentifyRes_resultExtension::operator H4502_ExtensionSeq &() const
621 #else
622 H4502_CTIdentifyRes_resultExtension::operator H4502_ExtensionSeq &()
624 #ifndef PASN_LEANANDMEAN
625 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
626 #endif
627 return *(H4502_ExtensionSeq *)choice;
631 H4502_CTIdentifyRes_resultExtension::operator const H4502_ExtensionSeq &() const
632 #endif
634 #ifndef PASN_LEANANDMEAN
635 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
636 #endif
637 return *(H4502_ExtensionSeq *)choice;
641 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
642 H4502_CTIdentifyRes_resultExtension::operator H225_NonStandardParameter &() const
643 #else
644 H4502_CTIdentifyRes_resultExtension::operator H225_NonStandardParameter &()
646 #ifndef PASN_LEANANDMEAN
647 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
648 #endif
649 return *(H225_NonStandardParameter *)choice;
653 H4502_CTIdentifyRes_resultExtension::operator const H225_NonStandardParameter &() const
654 #endif
656 #ifndef PASN_LEANANDMEAN
657 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
658 #endif
659 return *(H225_NonStandardParameter *)choice;
663 BOOL H4502_CTIdentifyRes_resultExtension::CreateObject()
665 switch (tag) {
666 case e_extensionSeq :
667 choice = new H4502_ExtensionSeq();
668 return TRUE;
669 case e_nonStandardData :
670 choice = new H225_NonStandardParameter();
671 return TRUE;
674 choice = NULL;
675 return FALSE;
679 PObject * H4502_CTIdentifyRes_resultExtension::Clone() const
681 #ifndef PASN_LEANANDMEAN
682 PAssert(IsClass(H4502_CTIdentifyRes_resultExtension::Class()), PInvalidCast);
683 #endif
684 return new H4502_CTIdentifyRes_resultExtension(*this);
689 #ifndef PASN_NOPRINTON
690 const static PASN_Names Names_H4502_CTUpdateArg_argumentExtension[]={
691 {"extensionSeq",0}
692 ,{"nonStandardData",1}
694 #endif
696 // CTUpdateArg_argumentExtension
699 H4502_CTUpdateArg_argumentExtension::H4502_CTUpdateArg_argumentExtension(unsigned tag, PASN_Object::TagClass tagClass)
700 : PASN_Choice(tag, tagClass, 2, FALSE
701 #ifndef PASN_NOPRINTON
702 ,(const PASN_Names *)Names_H4502_CTUpdateArg_argumentExtension,2
703 #endif
709 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
710 H4502_CTUpdateArg_argumentExtension::operator H4502_ExtensionSeq &() const
711 #else
712 H4502_CTUpdateArg_argumentExtension::operator H4502_ExtensionSeq &()
714 #ifndef PASN_LEANANDMEAN
715 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
716 #endif
717 return *(H4502_ExtensionSeq *)choice;
721 H4502_CTUpdateArg_argumentExtension::operator const H4502_ExtensionSeq &() const
722 #endif
724 #ifndef PASN_LEANANDMEAN
725 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
726 #endif
727 return *(H4502_ExtensionSeq *)choice;
731 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
732 H4502_CTUpdateArg_argumentExtension::operator H225_NonStandardParameter &() const
733 #else
734 H4502_CTUpdateArg_argumentExtension::operator H225_NonStandardParameter &()
736 #ifndef PASN_LEANANDMEAN
737 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
738 #endif
739 return *(H225_NonStandardParameter *)choice;
743 H4502_CTUpdateArg_argumentExtension::operator const H225_NonStandardParameter &() const
744 #endif
746 #ifndef PASN_LEANANDMEAN
747 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
748 #endif
749 return *(H225_NonStandardParameter *)choice;
753 BOOL H4502_CTUpdateArg_argumentExtension::CreateObject()
755 switch (tag) {
756 case e_extensionSeq :
757 choice = new H4502_ExtensionSeq();
758 return TRUE;
759 case e_nonStandardData :
760 choice = new H225_NonStandardParameter();
761 return TRUE;
764 choice = NULL;
765 return FALSE;
769 PObject * H4502_CTUpdateArg_argumentExtension::Clone() const
771 #ifndef PASN_LEANANDMEAN
772 PAssert(IsClass(H4502_CTUpdateArg_argumentExtension::Class()), PInvalidCast);
773 #endif
774 return new H4502_CTUpdateArg_argumentExtension(*this);
779 #ifndef PASN_NOPRINTON
780 const static PASN_Names Names_H4502_SubaddressTransferArg_argumentExtension[]={
781 {"extensionSeq",0}
782 ,{"nonStandardData",1}
784 #endif
786 // SubaddressTransferArg_argumentExtension
789 H4502_SubaddressTransferArg_argumentExtension::H4502_SubaddressTransferArg_argumentExtension(unsigned tag, PASN_Object::TagClass tagClass)
790 : PASN_Choice(tag, tagClass, 2, FALSE
791 #ifndef PASN_NOPRINTON
792 ,(const PASN_Names *)Names_H4502_SubaddressTransferArg_argumentExtension,2
793 #endif
799 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
800 H4502_SubaddressTransferArg_argumentExtension::operator H4502_ExtensionSeq &() const
801 #else
802 H4502_SubaddressTransferArg_argumentExtension::operator H4502_ExtensionSeq &()
804 #ifndef PASN_LEANANDMEAN
805 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
806 #endif
807 return *(H4502_ExtensionSeq *)choice;
811 H4502_SubaddressTransferArg_argumentExtension::operator const H4502_ExtensionSeq &() const
812 #endif
814 #ifndef PASN_LEANANDMEAN
815 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
816 #endif
817 return *(H4502_ExtensionSeq *)choice;
821 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
822 H4502_SubaddressTransferArg_argumentExtension::operator H225_NonStandardParameter &() const
823 #else
824 H4502_SubaddressTransferArg_argumentExtension::operator H225_NonStandardParameter &()
826 #ifndef PASN_LEANANDMEAN
827 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
828 #endif
829 return *(H225_NonStandardParameter *)choice;
833 H4502_SubaddressTransferArg_argumentExtension::operator const H225_NonStandardParameter &() const
834 #endif
836 #ifndef PASN_LEANANDMEAN
837 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
838 #endif
839 return *(H225_NonStandardParameter *)choice;
843 BOOL H4502_SubaddressTransferArg_argumentExtension::CreateObject()
845 switch (tag) {
846 case e_extensionSeq :
847 choice = new H4502_ExtensionSeq();
848 return TRUE;
849 case e_nonStandardData :
850 choice = new H225_NonStandardParameter();
851 return TRUE;
854 choice = NULL;
855 return FALSE;
859 PObject * H4502_SubaddressTransferArg_argumentExtension::Clone() const
861 #ifndef PASN_LEANANDMEAN
862 PAssert(IsClass(H4502_SubaddressTransferArg_argumentExtension::Class()), PInvalidCast);
863 #endif
864 return new H4502_SubaddressTransferArg_argumentExtension(*this);
869 #ifndef PASN_NOPRINTON
870 const static PASN_Names Names_H4502_CTCompleteArg_argumentExtension[]={
871 {"extensionSeq",0}
872 ,{"nonStandardData",1}
874 #endif
876 // CTCompleteArg_argumentExtension
879 H4502_CTCompleteArg_argumentExtension::H4502_CTCompleteArg_argumentExtension(unsigned tag, PASN_Object::TagClass tagClass)
880 : PASN_Choice(tag, tagClass, 2, FALSE
881 #ifndef PASN_NOPRINTON
882 ,(const PASN_Names *)Names_H4502_CTCompleteArg_argumentExtension,2
883 #endif
889 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
890 H4502_CTCompleteArg_argumentExtension::operator H4502_ExtensionSeq &() const
891 #else
892 H4502_CTCompleteArg_argumentExtension::operator H4502_ExtensionSeq &()
894 #ifndef PASN_LEANANDMEAN
895 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
896 #endif
897 return *(H4502_ExtensionSeq *)choice;
901 H4502_CTCompleteArg_argumentExtension::operator const H4502_ExtensionSeq &() const
902 #endif
904 #ifndef PASN_LEANANDMEAN
905 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
906 #endif
907 return *(H4502_ExtensionSeq *)choice;
911 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
912 H4502_CTCompleteArg_argumentExtension::operator H225_NonStandardParameter &() const
913 #else
914 H4502_CTCompleteArg_argumentExtension::operator H225_NonStandardParameter &()
916 #ifndef PASN_LEANANDMEAN
917 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
918 #endif
919 return *(H225_NonStandardParameter *)choice;
923 H4502_CTCompleteArg_argumentExtension::operator const H225_NonStandardParameter &() const
924 #endif
926 #ifndef PASN_LEANANDMEAN
927 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
928 #endif
929 return *(H225_NonStandardParameter *)choice;
933 BOOL H4502_CTCompleteArg_argumentExtension::CreateObject()
935 switch (tag) {
936 case e_extensionSeq :
937 choice = new H4502_ExtensionSeq();
938 return TRUE;
939 case e_nonStandardData :
940 choice = new H225_NonStandardParameter();
941 return TRUE;
944 choice = NULL;
945 return FALSE;
949 PObject * H4502_CTCompleteArg_argumentExtension::Clone() const
951 #ifndef PASN_LEANANDMEAN
952 PAssert(IsClass(H4502_CTCompleteArg_argumentExtension::Class()), PInvalidCast);
953 #endif
954 return new H4502_CTCompleteArg_argumentExtension(*this);
959 #ifndef PASN_NOPRINTON
960 const static PASN_Names Names_H4502_CTActiveArg_argumentExtension[]={
961 {"extensionSeq",0}
962 ,{"nonStandardData",1}
964 #endif
966 // CTActiveArg_argumentExtension
969 H4502_CTActiveArg_argumentExtension::H4502_CTActiveArg_argumentExtension(unsigned tag, PASN_Object::TagClass tagClass)
970 : PASN_Choice(tag, tagClass, 2, FALSE
971 #ifndef PASN_NOPRINTON
972 ,(const PASN_Names *)Names_H4502_CTActiveArg_argumentExtension,2
973 #endif
979 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
980 H4502_CTActiveArg_argumentExtension::operator H4502_ExtensionSeq &() const
981 #else
982 H4502_CTActiveArg_argumentExtension::operator H4502_ExtensionSeq &()
984 #ifndef PASN_LEANANDMEAN
985 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
986 #endif
987 return *(H4502_ExtensionSeq *)choice;
991 H4502_CTActiveArg_argumentExtension::operator const H4502_ExtensionSeq &() const
992 #endif
994 #ifndef PASN_LEANANDMEAN
995 PAssert(PIsDescendant(PAssertNULL(choice), H4502_ExtensionSeq), PInvalidCast);
996 #endif
997 return *(H4502_ExtensionSeq *)choice;
1001 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
1002 H4502_CTActiveArg_argumentExtension::operator H225_NonStandardParameter &() const
1003 #else
1004 H4502_CTActiveArg_argumentExtension::operator H225_NonStandardParameter &()
1006 #ifndef PASN_LEANANDMEAN
1007 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
1008 #endif
1009 return *(H225_NonStandardParameter *)choice;
1013 H4502_CTActiveArg_argumentExtension::operator const H225_NonStandardParameter &() const
1014 #endif
1016 #ifndef PASN_LEANANDMEAN
1017 PAssert(PIsDescendant(PAssertNULL(choice), H225_NonStandardParameter), PInvalidCast);
1018 #endif
1019 return *(H225_NonStandardParameter *)choice;
1023 BOOL H4502_CTActiveArg_argumentExtension::CreateObject()
1025 switch (tag) {
1026 case e_extensionSeq :
1027 choice = new H4502_ExtensionSeq();
1028 return TRUE;
1029 case e_nonStandardData :
1030 choice = new H225_NonStandardParameter();
1031 return TRUE;
1034 choice = NULL;
1035 return FALSE;
1039 PObject * H4502_CTActiveArg_argumentExtension::Clone() const
1041 #ifndef PASN_LEANANDMEAN
1042 PAssert(IsClass(H4502_CTActiveArg_argumentExtension::Class()), PInvalidCast);
1043 #endif
1044 return new H4502_CTActiveArg_argumentExtension(*this);
1049 // CTInitiateArg
1052 H4502_CTInitiateArg::H4502_CTInitiateArg(unsigned tag, PASN_Object::TagClass tagClass)
1053 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1058 #ifndef PASN_NOPRINTON
1059 void H4502_CTInitiateArg::PrintOn(ostream & strm) const
1061 int indent = strm.precision() + 2;
1062 strm << "{\n";
1063 strm << setw(indent+15) << "callIdentity = " << setprecision(indent) << m_callIdentity << '\n';
1064 strm << setw(indent+18) << "reroutingNumber = " << setprecision(indent) << m_reroutingNumber << '\n';
1065 if (HasOptionalField(e_argumentExtension))
1066 strm << setw(indent+20) << "argumentExtension = " << setprecision(indent) << m_argumentExtension << '\n';
1067 strm << setw(indent-1) << setprecision(indent-2) << "}";
1069 #endif
1072 PObject::Comparison H4502_CTInitiateArg::Compare(const PObject & obj) const
1074 #ifndef PASN_LEANANDMEAN
1075 PAssert(PIsDescendant(&obj, H4502_CTInitiateArg), PInvalidCast);
1076 #endif
1077 const H4502_CTInitiateArg & other = (const H4502_CTInitiateArg &)obj;
1079 Comparison result;
1081 if ((result = m_callIdentity.Compare(other.m_callIdentity)) != EqualTo)
1082 return result;
1083 if ((result = m_reroutingNumber.Compare(other.m_reroutingNumber)) != EqualTo)
1084 return result;
1085 if ((result = m_argumentExtension.Compare(other.m_argumentExtension)) != EqualTo)
1086 return result;
1088 return PASN_Sequence::Compare(other);
1092 PINDEX H4502_CTInitiateArg::GetDataLength() const
1094 PINDEX length = 0;
1095 length += m_callIdentity.GetObjectLength();
1096 length += m_reroutingNumber.GetObjectLength();
1097 if (HasOptionalField(e_argumentExtension))
1098 length += m_argumentExtension.GetObjectLength();
1099 return length;
1103 BOOL H4502_CTInitiateArg::Decode(PASN_Stream & strm)
1105 if (!PreambleDecode(strm))
1106 return FALSE;
1108 if (!m_callIdentity.Decode(strm))
1109 return FALSE;
1110 if (!m_reroutingNumber.Decode(strm))
1111 return FALSE;
1112 if (HasOptionalField(e_argumentExtension) && !m_argumentExtension.Decode(strm))
1113 return FALSE;
1115 return UnknownExtensionsDecode(strm);
1119 void H4502_CTInitiateArg::Encode(PASN_Stream & strm) const
1121 PreambleEncode(strm);
1123 m_callIdentity.Encode(strm);
1124 m_reroutingNumber.Encode(strm);
1125 if (HasOptionalField(e_argumentExtension))
1126 m_argumentExtension.Encode(strm);
1128 UnknownExtensionsEncode(strm);
1132 PObject * H4502_CTInitiateArg::Clone() const
1134 #ifndef PASN_LEANANDMEAN
1135 PAssert(IsClass(H4502_CTInitiateArg::Class()), PInvalidCast);
1136 #endif
1137 return new H4502_CTInitiateArg(*this);
1142 // CTSetupArg
1145 H4502_CTSetupArg::H4502_CTSetupArg(unsigned tag, PASN_Object::TagClass tagClass)
1146 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
1151 #ifndef PASN_NOPRINTON
1152 void H4502_CTSetupArg::PrintOn(ostream & strm) const
1154 int indent = strm.precision() + 2;
1155 strm << "{\n";
1156 strm << setw(indent+15) << "callIdentity = " << setprecision(indent) << m_callIdentity << '\n';
1157 if (HasOptionalField(e_transferringNumber))
1158 strm << setw(indent+21) << "transferringNumber = " << setprecision(indent) << m_transferringNumber << '\n';
1159 if (HasOptionalField(e_argumentExtension))
1160 strm << setw(indent+20) << "argumentExtension = " << setprecision(indent) << m_argumentExtension << '\n';
1161 strm << setw(indent-1) << setprecision(indent-2) << "}";
1163 #endif
1166 PObject::Comparison H4502_CTSetupArg::Compare(const PObject & obj) const
1168 #ifndef PASN_LEANANDMEAN
1169 PAssert(PIsDescendant(&obj, H4502_CTSetupArg), PInvalidCast);
1170 #endif
1171 const H4502_CTSetupArg & other = (const H4502_CTSetupArg &)obj;
1173 Comparison result;
1175 if ((result = m_callIdentity.Compare(other.m_callIdentity)) != EqualTo)
1176 return result;
1177 if ((result = m_transferringNumber.Compare(other.m_transferringNumber)) != EqualTo)
1178 return result;
1179 if ((result = m_argumentExtension.Compare(other.m_argumentExtension)) != EqualTo)
1180 return result;
1182 return PASN_Sequence::Compare(other);
1186 PINDEX H4502_CTSetupArg::GetDataLength() const
1188 PINDEX length = 0;
1189 length += m_callIdentity.GetObjectLength();
1190 if (HasOptionalField(e_transferringNumber))
1191 length += m_transferringNumber.GetObjectLength();
1192 if (HasOptionalField(e_argumentExtension))
1193 length += m_argumentExtension.GetObjectLength();
1194 return length;
1198 BOOL H4502_CTSetupArg::Decode(PASN_Stream & strm)
1200 if (!PreambleDecode(strm))
1201 return FALSE;
1203 if (!m_callIdentity.Decode(strm))
1204 return FALSE;
1205 if (HasOptionalField(e_transferringNumber) && !m_transferringNumber.Decode(strm))
1206 return FALSE;
1207 if (HasOptionalField(e_argumentExtension) && !m_argumentExtension.Decode(strm))
1208 return FALSE;
1210 return UnknownExtensionsDecode(strm);
1214 void H4502_CTSetupArg::Encode(PASN_Stream & strm) const
1216 PreambleEncode(strm);
1218 m_callIdentity.Encode(strm);
1219 if (HasOptionalField(e_transferringNumber))
1220 m_transferringNumber.Encode(strm);
1221 if (HasOptionalField(e_argumentExtension))
1222 m_argumentExtension.Encode(strm);
1224 UnknownExtensionsEncode(strm);
1228 PObject * H4502_CTSetupArg::Clone() const
1230 #ifndef PASN_LEANANDMEAN
1231 PAssert(IsClass(H4502_CTSetupArg::Class()), PInvalidCast);
1232 #endif
1233 return new H4502_CTSetupArg(*this);
1238 // CTIdentifyRes
1241 H4502_CTIdentifyRes::H4502_CTIdentifyRes(unsigned tag, PASN_Object::TagClass tagClass)
1242 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1247 #ifndef PASN_NOPRINTON
1248 void H4502_CTIdentifyRes::PrintOn(ostream & strm) const
1250 int indent = strm.precision() + 2;
1251 strm << "{\n";
1252 strm << setw(indent+15) << "callIdentity = " << setprecision(indent) << m_callIdentity << '\n';
1253 strm << setw(indent+18) << "reroutingNumber = " << setprecision(indent) << m_reroutingNumber << '\n';
1254 if (HasOptionalField(e_resultExtension))
1255 strm << setw(indent+18) << "resultExtension = " << setprecision(indent) << m_resultExtension << '\n';
1256 strm << setw(indent-1) << setprecision(indent-2) << "}";
1258 #endif
1261 PObject::Comparison H4502_CTIdentifyRes::Compare(const PObject & obj) const
1263 #ifndef PASN_LEANANDMEAN
1264 PAssert(PIsDescendant(&obj, H4502_CTIdentifyRes), PInvalidCast);
1265 #endif
1266 const H4502_CTIdentifyRes & other = (const H4502_CTIdentifyRes &)obj;
1268 Comparison result;
1270 if ((result = m_callIdentity.Compare(other.m_callIdentity)) != EqualTo)
1271 return result;
1272 if ((result = m_reroutingNumber.Compare(other.m_reroutingNumber)) != EqualTo)
1273 return result;
1274 if ((result = m_resultExtension.Compare(other.m_resultExtension)) != EqualTo)
1275 return result;
1277 return PASN_Sequence::Compare(other);
1281 PINDEX H4502_CTIdentifyRes::GetDataLength() const
1283 PINDEX length = 0;
1284 length += m_callIdentity.GetObjectLength();
1285 length += m_reroutingNumber.GetObjectLength();
1286 if (HasOptionalField(e_resultExtension))
1287 length += m_resultExtension.GetObjectLength();
1288 return length;
1292 BOOL H4502_CTIdentifyRes::Decode(PASN_Stream & strm)
1294 if (!PreambleDecode(strm))
1295 return FALSE;
1297 if (!m_callIdentity.Decode(strm))
1298 return FALSE;
1299 if (!m_reroutingNumber.Decode(strm))
1300 return FALSE;
1301 if (HasOptionalField(e_resultExtension) && !m_resultExtension.Decode(strm))
1302 return FALSE;
1304 return UnknownExtensionsDecode(strm);
1308 void H4502_CTIdentifyRes::Encode(PASN_Stream & strm) const
1310 PreambleEncode(strm);
1312 m_callIdentity.Encode(strm);
1313 m_reroutingNumber.Encode(strm);
1314 if (HasOptionalField(e_resultExtension))
1315 m_resultExtension.Encode(strm);
1317 UnknownExtensionsEncode(strm);
1321 PObject * H4502_CTIdentifyRes::Clone() const
1323 #ifndef PASN_LEANANDMEAN
1324 PAssert(IsClass(H4502_CTIdentifyRes::Class()), PInvalidCast);
1325 #endif
1326 return new H4502_CTIdentifyRes(*this);
1331 // CTUpdateArg
1334 H4502_CTUpdateArg::H4502_CTUpdateArg(unsigned tag, PASN_Object::TagClass tagClass)
1335 : PASN_Sequence(tag, tagClass, 3, TRUE, 0)
1337 m_redirectionInfo.SetConstraints(PASN_Object::FixedConstraint, 1, 128);
1341 #ifndef PASN_NOPRINTON
1342 void H4502_CTUpdateArg::PrintOn(ostream & strm) const
1344 int indent = strm.precision() + 2;
1345 strm << "{\n";
1346 strm << setw(indent+20) << "redirectionNumber = " << setprecision(indent) << m_redirectionNumber << '\n';
1347 if (HasOptionalField(e_redirectionInfo))
1348 strm << setw(indent+18) << "redirectionInfo = " << setprecision(indent) << m_redirectionInfo << '\n';
1349 if (HasOptionalField(e_basicCallInfoElements))
1350 strm << setw(indent+24) << "basicCallInfoElements = " << setprecision(indent) << m_basicCallInfoElements << '\n';
1351 if (HasOptionalField(e_argumentExtension))
1352 strm << setw(indent+20) << "argumentExtension = " << setprecision(indent) << m_argumentExtension << '\n';
1353 strm << setw(indent-1) << setprecision(indent-2) << "}";
1355 #endif
1358 PObject::Comparison H4502_CTUpdateArg::Compare(const PObject & obj) const
1360 #ifndef PASN_LEANANDMEAN
1361 PAssert(PIsDescendant(&obj, H4502_CTUpdateArg), PInvalidCast);
1362 #endif
1363 const H4502_CTUpdateArg & other = (const H4502_CTUpdateArg &)obj;
1365 Comparison result;
1367 if ((result = m_redirectionNumber.Compare(other.m_redirectionNumber)) != EqualTo)
1368 return result;
1369 if ((result = m_redirectionInfo.Compare(other.m_redirectionInfo)) != EqualTo)
1370 return result;
1371 if ((result = m_basicCallInfoElements.Compare(other.m_basicCallInfoElements)) != EqualTo)
1372 return result;
1373 if ((result = m_argumentExtension.Compare(other.m_argumentExtension)) != EqualTo)
1374 return result;
1376 return PASN_Sequence::Compare(other);
1380 PINDEX H4502_CTUpdateArg::GetDataLength() const
1382 PINDEX length = 0;
1383 length += m_redirectionNumber.GetObjectLength();
1384 if (HasOptionalField(e_redirectionInfo))
1385 length += m_redirectionInfo.GetObjectLength();
1386 if (HasOptionalField(e_basicCallInfoElements))
1387 length += m_basicCallInfoElements.GetObjectLength();
1388 if (HasOptionalField(e_argumentExtension))
1389 length += m_argumentExtension.GetObjectLength();
1390 return length;
1394 BOOL H4502_CTUpdateArg::Decode(PASN_Stream & strm)
1396 if (!PreambleDecode(strm))
1397 return FALSE;
1399 if (!m_redirectionNumber.Decode(strm))
1400 return FALSE;
1401 if (HasOptionalField(e_redirectionInfo) && !m_redirectionInfo.Decode(strm))
1402 return FALSE;
1403 if (HasOptionalField(e_basicCallInfoElements) && !m_basicCallInfoElements.Decode(strm))
1404 return FALSE;
1405 if (HasOptionalField(e_argumentExtension) && !m_argumentExtension.Decode(strm))
1406 return FALSE;
1408 return UnknownExtensionsDecode(strm);
1412 void H4502_CTUpdateArg::Encode(PASN_Stream & strm) const
1414 PreambleEncode(strm);
1416 m_redirectionNumber.Encode(strm);
1417 if (HasOptionalField(e_redirectionInfo))
1418 m_redirectionInfo.Encode(strm);
1419 if (HasOptionalField(e_basicCallInfoElements))
1420 m_basicCallInfoElements.Encode(strm);
1421 if (HasOptionalField(e_argumentExtension))
1422 m_argumentExtension.Encode(strm);
1424 UnknownExtensionsEncode(strm);
1428 PObject * H4502_CTUpdateArg::Clone() const
1430 #ifndef PASN_LEANANDMEAN
1431 PAssert(IsClass(H4502_CTUpdateArg::Class()), PInvalidCast);
1432 #endif
1433 return new H4502_CTUpdateArg(*this);
1438 // SubaddressTransferArg
1441 H4502_SubaddressTransferArg::H4502_SubaddressTransferArg(unsigned tag, PASN_Object::TagClass tagClass)
1442 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1447 #ifndef PASN_NOPRINTON
1448 void H4502_SubaddressTransferArg::PrintOn(ostream & strm) const
1450 int indent = strm.precision() + 2;
1451 strm << "{\n";
1452 strm << setw(indent+24) << "redirectionSubaddress = " << setprecision(indent) << m_redirectionSubaddress << '\n';
1453 if (HasOptionalField(e_argumentExtension))
1454 strm << setw(indent+20) << "argumentExtension = " << setprecision(indent) << m_argumentExtension << '\n';
1455 strm << setw(indent-1) << setprecision(indent-2) << "}";
1457 #endif
1460 PObject::Comparison H4502_SubaddressTransferArg::Compare(const PObject & obj) const
1462 #ifndef PASN_LEANANDMEAN
1463 PAssert(PIsDescendant(&obj, H4502_SubaddressTransferArg), PInvalidCast);
1464 #endif
1465 const H4502_SubaddressTransferArg & other = (const H4502_SubaddressTransferArg &)obj;
1467 Comparison result;
1469 if ((result = m_redirectionSubaddress.Compare(other.m_redirectionSubaddress)) != EqualTo)
1470 return result;
1471 if ((result = m_argumentExtension.Compare(other.m_argumentExtension)) != EqualTo)
1472 return result;
1474 return PASN_Sequence::Compare(other);
1478 PINDEX H4502_SubaddressTransferArg::GetDataLength() const
1480 PINDEX length = 0;
1481 length += m_redirectionSubaddress.GetObjectLength();
1482 if (HasOptionalField(e_argumentExtension))
1483 length += m_argumentExtension.GetObjectLength();
1484 return length;
1488 BOOL H4502_SubaddressTransferArg::Decode(PASN_Stream & strm)
1490 if (!PreambleDecode(strm))
1491 return FALSE;
1493 if (!m_redirectionSubaddress.Decode(strm))
1494 return FALSE;
1495 if (HasOptionalField(e_argumentExtension) && !m_argumentExtension.Decode(strm))
1496 return FALSE;
1498 return UnknownExtensionsDecode(strm);
1502 void H4502_SubaddressTransferArg::Encode(PASN_Stream & strm) const
1504 PreambleEncode(strm);
1506 m_redirectionSubaddress.Encode(strm);
1507 if (HasOptionalField(e_argumentExtension))
1508 m_argumentExtension.Encode(strm);
1510 UnknownExtensionsEncode(strm);
1514 PObject * H4502_SubaddressTransferArg::Clone() const
1516 #ifndef PASN_LEANANDMEAN
1517 PAssert(IsClass(H4502_SubaddressTransferArg::Class()), PInvalidCast);
1518 #endif
1519 return new H4502_SubaddressTransferArg(*this);
1524 // CTCompleteArg
1527 H4502_CTCompleteArg::H4502_CTCompleteArg(unsigned tag, PASN_Object::TagClass tagClass)
1528 : PASN_Sequence(tag, tagClass, 3, TRUE, 0)
1530 m_redirectionInfo.SetConstraints(PASN_Object::FixedConstraint, 1, 128);
1534 #ifndef PASN_NOPRINTON
1535 void H4502_CTCompleteArg::PrintOn(ostream & strm) const
1537 int indent = strm.precision() + 2;
1538 strm << "{\n";
1539 strm << setw(indent+17) << "endDesignation = " << setprecision(indent) << m_endDesignation << '\n';
1540 strm << setw(indent+20) << "redirectionNumber = " << setprecision(indent) << m_redirectionNumber << '\n';
1541 if (HasOptionalField(e_basicCallInfoElements))
1542 strm << setw(indent+24) << "basicCallInfoElements = " << setprecision(indent) << m_basicCallInfoElements << '\n';
1543 if (HasOptionalField(e_redirectionInfo))
1544 strm << setw(indent+18) << "redirectionInfo = " << setprecision(indent) << m_redirectionInfo << '\n';
1545 strm << setw(indent+13) << "callStatus = " << setprecision(indent) << m_callStatus << '\n';
1546 if (HasOptionalField(e_argumentExtension))
1547 strm << setw(indent+20) << "argumentExtension = " << setprecision(indent) << m_argumentExtension << '\n';
1548 strm << setw(indent-1) << setprecision(indent-2) << "}";
1550 #endif
1553 PObject::Comparison H4502_CTCompleteArg::Compare(const PObject & obj) const
1555 #ifndef PASN_LEANANDMEAN
1556 PAssert(PIsDescendant(&obj, H4502_CTCompleteArg), PInvalidCast);
1557 #endif
1558 const H4502_CTCompleteArg & other = (const H4502_CTCompleteArg &)obj;
1560 Comparison result;
1562 if ((result = m_endDesignation.Compare(other.m_endDesignation)) != EqualTo)
1563 return result;
1564 if ((result = m_redirectionNumber.Compare(other.m_redirectionNumber)) != EqualTo)
1565 return result;
1566 if ((result = m_basicCallInfoElements.Compare(other.m_basicCallInfoElements)) != EqualTo)
1567 return result;
1568 if ((result = m_redirectionInfo.Compare(other.m_redirectionInfo)) != EqualTo)
1569 return result;
1570 if ((result = m_callStatus.Compare(other.m_callStatus)) != EqualTo)
1571 return result;
1572 if ((result = m_argumentExtension.Compare(other.m_argumentExtension)) != EqualTo)
1573 return result;
1575 return PASN_Sequence::Compare(other);
1579 PINDEX H4502_CTCompleteArg::GetDataLength() const
1581 PINDEX length = 0;
1582 length += m_endDesignation.GetObjectLength();
1583 length += m_redirectionNumber.GetObjectLength();
1584 if (HasOptionalField(e_basicCallInfoElements))
1585 length += m_basicCallInfoElements.GetObjectLength();
1586 if (HasOptionalField(e_redirectionInfo))
1587 length += m_redirectionInfo.GetObjectLength();
1588 length += m_callStatus.GetObjectLength();
1589 if (HasOptionalField(e_argumentExtension))
1590 length += m_argumentExtension.GetObjectLength();
1591 return length;
1595 BOOL H4502_CTCompleteArg::Decode(PASN_Stream & strm)
1597 if (!PreambleDecode(strm))
1598 return FALSE;
1600 if (!m_endDesignation.Decode(strm))
1601 return FALSE;
1602 if (!m_redirectionNumber.Decode(strm))
1603 return FALSE;
1604 if (HasOptionalField(e_basicCallInfoElements) && !m_basicCallInfoElements.Decode(strm))
1605 return FALSE;
1606 if (HasOptionalField(e_redirectionInfo) && !m_redirectionInfo.Decode(strm))
1607 return FALSE;
1608 if (!m_callStatus.Decode(strm))
1609 return FALSE;
1610 if (HasOptionalField(e_argumentExtension) && !m_argumentExtension.Decode(strm))
1611 return FALSE;
1613 return UnknownExtensionsDecode(strm);
1617 void H4502_CTCompleteArg::Encode(PASN_Stream & strm) const
1619 PreambleEncode(strm);
1621 m_endDesignation.Encode(strm);
1622 m_redirectionNumber.Encode(strm);
1623 if (HasOptionalField(e_basicCallInfoElements))
1624 m_basicCallInfoElements.Encode(strm);
1625 if (HasOptionalField(e_redirectionInfo))
1626 m_redirectionInfo.Encode(strm);
1627 m_callStatus.Encode(strm);
1628 if (HasOptionalField(e_argumentExtension))
1629 m_argumentExtension.Encode(strm);
1631 UnknownExtensionsEncode(strm);
1635 PObject * H4502_CTCompleteArg::Clone() const
1637 #ifndef PASN_LEANANDMEAN
1638 PAssert(IsClass(H4502_CTCompleteArg::Class()), PInvalidCast);
1639 #endif
1640 return new H4502_CTCompleteArg(*this);
1645 // CTActiveArg
1648 H4502_CTActiveArg::H4502_CTActiveArg(unsigned tag, PASN_Object::TagClass tagClass)
1649 : PASN_Sequence(tag, tagClass, 3, TRUE, 0)
1651 m_connectedInfo.SetConstraints(PASN_Object::FixedConstraint, 1, 128);
1655 #ifndef PASN_NOPRINTON
1656 void H4502_CTActiveArg::PrintOn(ostream & strm) const
1658 int indent = strm.precision() + 2;
1659 strm << "{\n";
1660 strm << setw(indent+19) << "connectedAddress = " << setprecision(indent) << m_connectedAddress << '\n';
1661 if (HasOptionalField(e_basicCallInfoElements))
1662 strm << setw(indent+24) << "basicCallInfoElements = " << setprecision(indent) << m_basicCallInfoElements << '\n';
1663 if (HasOptionalField(e_connectedInfo))
1664 strm << setw(indent+16) << "connectedInfo = " << setprecision(indent) << m_connectedInfo << '\n';
1665 if (HasOptionalField(e_argumentExtension))
1666 strm << setw(indent+20) << "argumentExtension = " << setprecision(indent) << m_argumentExtension << '\n';
1667 strm << setw(indent-1) << setprecision(indent-2) << "}";
1669 #endif
1672 PObject::Comparison H4502_CTActiveArg::Compare(const PObject & obj) const
1674 #ifndef PASN_LEANANDMEAN
1675 PAssert(PIsDescendant(&obj, H4502_CTActiveArg), PInvalidCast);
1676 #endif
1677 const H4502_CTActiveArg & other = (const H4502_CTActiveArg &)obj;
1679 Comparison result;
1681 if ((result = m_connectedAddress.Compare(other.m_connectedAddress)) != EqualTo)
1682 return result;
1683 if ((result = m_basicCallInfoElements.Compare(other.m_basicCallInfoElements)) != EqualTo)
1684 return result;
1685 if ((result = m_connectedInfo.Compare(other.m_connectedInfo)) != EqualTo)
1686 return result;
1687 if ((result = m_argumentExtension.Compare(other.m_argumentExtension)) != EqualTo)
1688 return result;
1690 return PASN_Sequence::Compare(other);
1694 PINDEX H4502_CTActiveArg::GetDataLength() const
1696 PINDEX length = 0;
1697 length += m_connectedAddress.GetObjectLength();
1698 if (HasOptionalField(e_basicCallInfoElements))
1699 length += m_basicCallInfoElements.GetObjectLength();
1700 if (HasOptionalField(e_connectedInfo))
1701 length += m_connectedInfo.GetObjectLength();
1702 if (HasOptionalField(e_argumentExtension))
1703 length += m_argumentExtension.GetObjectLength();
1704 return length;
1708 BOOL H4502_CTActiveArg::Decode(PASN_Stream & strm)
1710 if (!PreambleDecode(strm))
1711 return FALSE;
1713 if (!m_connectedAddress.Decode(strm))
1714 return FALSE;
1715 if (HasOptionalField(e_basicCallInfoElements) && !m_basicCallInfoElements.Decode(strm))
1716 return FALSE;
1717 if (HasOptionalField(e_connectedInfo) && !m_connectedInfo.Decode(strm))
1718 return FALSE;
1719 if (HasOptionalField(e_argumentExtension) && !m_argumentExtension.Decode(strm))
1720 return FALSE;
1722 return UnknownExtensionsDecode(strm);
1726 void H4502_CTActiveArg::Encode(PASN_Stream & strm) const
1728 PreambleEncode(strm);
1730 m_connectedAddress.Encode(strm);
1731 if (HasOptionalField(e_basicCallInfoElements))
1732 m_basicCallInfoElements.Encode(strm);
1733 if (HasOptionalField(e_connectedInfo))
1734 m_connectedInfo.Encode(strm);
1735 if (HasOptionalField(e_argumentExtension))
1736 m_argumentExtension.Encode(strm);
1738 UnknownExtensionsEncode(strm);
1742 PObject * H4502_CTActiveArg::Clone() const
1744 #ifndef PASN_LEANANDMEAN
1745 PAssert(IsClass(H4502_CTActiveArg::Class()), PInvalidCast);
1746 #endif
1747 return new H4502_CTActiveArg(*this);
1751 #endif // if ! H323_DISABLE_H4502
1754 // End of h4502.cxx