Utilise new MergeSym feature to no longer overwrite the source .DEF file when buildin...
[openh323.git] / src / h4505.cxx
blobcd62736f22715babdfcb73c0321288723a2ceb8a
1 //
2 // h4505.cxx
3 //
4 // Code automatically generated by asnparse.
5 //
7 #ifdef P_USE_PRAGMA
8 #pragma implementation "h4505.h"
9 #endif
11 #include <ptlib.h>
12 #include "h4505.h"
14 #define new PNEW
17 #if ! H323_DISABLE_H4505
21 #ifndef PASN_NOPRINTON
22 const static PASN_Names Names_H4505_CallParkPickupOperations[]={
23 {"cpRequest",106}
24 ,{"cpSetup",107}
25 ,{"groupIndicationOn",8}
26 ,{"groupIndicationOff",9}
27 ,{"pickrequ",110}
28 ,{"pickup",111}
29 ,{"pickExe",112}
30 ,{"cpNotify",113}
31 ,{"cpickupNotify",114}
33 #endif
35 // CallParkPickupOperations
38 H4505_CallParkPickupOperations::H4505_CallParkPickupOperations(unsigned tag, PASN_Object::TagClass tagClass)
39 : PASN_Enumeration(tag, tagClass, 114, FALSE
40 #ifndef PASN_NOPRINTON
41 ,(const PASN_Names *)Names_H4505_CallParkPickupOperations,9
42 #endif
48 H4505_CallParkPickupOperations & H4505_CallParkPickupOperations::operator=(unsigned v)
50 SetValue(v);
51 return *this;
55 PObject * H4505_CallParkPickupOperations::Clone() const
57 #ifndef PASN_LEANANDMEAN
58 PAssert(IsClass(H4505_CallParkPickupOperations::Class()), PInvalidCast);
59 #endif
60 return new H4505_CallParkPickupOperations(*this);
65 // ParkedToPosition
68 H4505_ParkedToPosition::H4505_ParkedToPosition(unsigned tag, PASN_Object::TagClass tagClass)
69 : PASN_Integer(tag, tagClass)
71 SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
75 H4505_ParkedToPosition & H4505_ParkedToPosition::operator=(int v)
77 SetValue(v);
78 return *this;
82 H4505_ParkedToPosition & H4505_ParkedToPosition::operator=(unsigned v)
84 SetValue(v);
85 return *this;
89 PObject * H4505_ParkedToPosition::Clone() const
91 #ifndef PASN_LEANANDMEAN
92 PAssert(IsClass(H4505_ParkedToPosition::Class()), PInvalidCast);
93 #endif
94 return new H4505_ParkedToPosition(*this);
98 #ifndef PASN_NOPRINTON
99 const static PASN_Names Names_H4505_ParkCondition[]={
100 {"unspecified",0}
101 ,{"parkedToUserIdle",1}
102 ,{"parkedToUserBusy",2}
103 ,{"parkedToGroup",3}
105 #endif
107 // ParkCondition
110 H4505_ParkCondition::H4505_ParkCondition(unsigned tag, PASN_Object::TagClass tagClass)
111 : PASN_Enumeration(tag, tagClass, 3, TRUE
112 #ifndef PASN_NOPRINTON
113 ,(const PASN_Names *)Names_H4505_ParkCondition,4
114 #endif
120 H4505_ParkCondition & H4505_ParkCondition::operator=(unsigned v)
122 SetValue(v);
123 return *this;
127 PObject * H4505_ParkCondition::Clone() const
129 #ifndef PASN_LEANANDMEAN
130 PAssert(IsClass(H4505_ParkCondition::Class()), PInvalidCast);
131 #endif
132 return new H4505_ParkCondition(*this);
136 #ifndef PASN_NOPRINTON
137 const static PASN_Names Names_H4505_CallType[]={
138 {"parkedCall",0}
139 ,{"alertingCall",1}
141 #endif
143 // CallType
146 H4505_CallType::H4505_CallType(unsigned tag, PASN_Object::TagClass tagClass)
147 : PASN_Enumeration(tag, tagClass, 1, TRUE
148 #ifndef PASN_NOPRINTON
149 ,(const PASN_Names *)Names_H4505_CallType,2
150 #endif
156 H4505_CallType & H4505_CallType::operator=(unsigned v)
158 SetValue(v);
159 return *this;
163 PObject * H4505_CallType::Clone() const
165 #ifndef PASN_LEANANDMEAN
166 PAssert(IsClass(H4505_CallType::Class()), PInvalidCast);
167 #endif
168 return new H4505_CallType(*this);
172 #ifndef PASN_NOPRINTON
173 const static PASN_Names Names_H4505_CallPickupErrors[]={
174 {"callPickupIdInvalid",2000}
175 ,{"callAlreadyPickedUp",2001}
176 ,{"undefined",2002}
178 #endif
180 // CallPickupErrors
183 H4505_CallPickupErrors::H4505_CallPickupErrors(unsigned tag, PASN_Object::TagClass tagClass)
184 : PASN_Enumeration(tag, tagClass, 2002, FALSE
185 #ifndef PASN_NOPRINTON
186 ,(const PASN_Names *)Names_H4505_CallPickupErrors,3
187 #endif
193 H4505_CallPickupErrors & H4505_CallPickupErrors::operator=(unsigned v)
195 SetValue(v);
196 return *this;
200 PObject * H4505_CallPickupErrors::Clone() const
202 #ifndef PASN_LEANANDMEAN
203 PAssert(IsClass(H4505_CallPickupErrors::Class()), PInvalidCast);
204 #endif
205 return new H4505_CallPickupErrors(*this);
210 // ArrayOf_MixedExtension
213 H4505_ArrayOf_MixedExtension::H4505_ArrayOf_MixedExtension(unsigned tag, PASN_Object::TagClass tagClass)
214 : PASN_Array(tag, tagClass)
219 PASN_Object * H4505_ArrayOf_MixedExtension::CreateObject() const
221 return new H4504_MixedExtension;
225 H4504_MixedExtension & H4505_ArrayOf_MixedExtension::operator[](PINDEX i) const
227 return (H4504_MixedExtension &)array[i];
231 PObject * H4505_ArrayOf_MixedExtension::Clone() const
233 #ifndef PASN_LEANANDMEAN
234 PAssert(IsClass(H4505_ArrayOf_MixedExtension::Class()), PInvalidCast);
235 #endif
236 return new H4505_ArrayOf_MixedExtension(*this);
241 // CpRequestArg
244 H4505_CpRequestArg::H4505_CpRequestArg(unsigned tag, PASN_Object::TagClass tagClass)
245 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
247 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
251 #ifndef PASN_NOPRINTON
252 void H4505_CpRequestArg::PrintOn(ostream & strm) const
254 int indent = strm.precision() + 2;
255 strm << "{\n";
256 strm << setw(indent+16) << "parkingNumber = " << setprecision(indent) << m_parkingNumber << '\n';
257 strm << setw(indent+15) << "parkedNumber = " << setprecision(indent) << m_parkedNumber << '\n';
258 strm << setw(indent+17) << "parkedToNumber = " << setprecision(indent) << m_parkedToNumber << '\n';
259 if (HasOptionalField(e_parkedToPosition))
260 strm << setw(indent+19) << "parkedToPosition = " << setprecision(indent) << m_parkedToPosition << '\n';
261 if (HasOptionalField(e_extensionArg))
262 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
263 strm << setw(indent-1) << setprecision(indent-2) << "}";
265 #endif
268 PObject::Comparison H4505_CpRequestArg::Compare(const PObject & obj) const
270 #ifndef PASN_LEANANDMEAN
271 PAssert(PIsDescendant(&obj, H4505_CpRequestArg), PInvalidCast);
272 #endif
273 const H4505_CpRequestArg & other = (const H4505_CpRequestArg &)obj;
275 Comparison result;
277 if ((result = m_parkingNumber.Compare(other.m_parkingNumber)) != EqualTo)
278 return result;
279 if ((result = m_parkedNumber.Compare(other.m_parkedNumber)) != EqualTo)
280 return result;
281 if ((result = m_parkedToNumber.Compare(other.m_parkedToNumber)) != EqualTo)
282 return result;
283 if ((result = m_parkedToPosition.Compare(other.m_parkedToPosition)) != EqualTo)
284 return result;
285 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
286 return result;
288 return PASN_Sequence::Compare(other);
292 PINDEX H4505_CpRequestArg::GetDataLength() const
294 PINDEX length = 0;
295 length += m_parkingNumber.GetObjectLength();
296 length += m_parkedNumber.GetObjectLength();
297 length += m_parkedToNumber.GetObjectLength();
298 if (HasOptionalField(e_parkedToPosition))
299 length += m_parkedToPosition.GetObjectLength();
300 if (HasOptionalField(e_extensionArg))
301 length += m_extensionArg.GetObjectLength();
302 return length;
306 BOOL H4505_CpRequestArg::Decode(PASN_Stream & strm)
308 if (!PreambleDecode(strm))
309 return FALSE;
311 if (!m_parkingNumber.Decode(strm))
312 return FALSE;
313 if (!m_parkedNumber.Decode(strm))
314 return FALSE;
315 if (!m_parkedToNumber.Decode(strm))
316 return FALSE;
317 if (HasOptionalField(e_parkedToPosition) && !m_parkedToPosition.Decode(strm))
318 return FALSE;
319 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
320 return FALSE;
322 return UnknownExtensionsDecode(strm);
326 void H4505_CpRequestArg::Encode(PASN_Stream & strm) const
328 PreambleEncode(strm);
330 m_parkingNumber.Encode(strm);
331 m_parkedNumber.Encode(strm);
332 m_parkedToNumber.Encode(strm);
333 if (HasOptionalField(e_parkedToPosition))
334 m_parkedToPosition.Encode(strm);
335 if (HasOptionalField(e_extensionArg))
336 m_extensionArg.Encode(strm);
338 UnknownExtensionsEncode(strm);
342 PObject * H4505_CpRequestArg::Clone() const
344 #ifndef PASN_LEANANDMEAN
345 PAssert(IsClass(H4505_CpRequestArg::Class()), PInvalidCast);
346 #endif
347 return new H4505_CpRequestArg(*this);
352 // CpRequestRes
355 H4505_CpRequestRes::H4505_CpRequestRes(unsigned tag, PASN_Object::TagClass tagClass)
356 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
358 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
362 #ifndef PASN_NOPRINTON
363 void H4505_CpRequestRes::PrintOn(ostream & strm) const
365 int indent = strm.precision() + 2;
366 strm << "{\n";
367 strm << setw(indent+17) << "parkedToNumber = " << setprecision(indent) << m_parkedToNumber << '\n';
368 if (HasOptionalField(e_parkedToPosition))
369 strm << setw(indent+19) << "parkedToPosition = " << setprecision(indent) << m_parkedToPosition << '\n';
370 strm << setw(indent+16) << "parkCondition = " << setprecision(indent) << m_parkCondition << '\n';
371 if (HasOptionalField(e_extensionRes))
372 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
373 strm << setw(indent-1) << setprecision(indent-2) << "}";
375 #endif
378 PObject::Comparison H4505_CpRequestRes::Compare(const PObject & obj) const
380 #ifndef PASN_LEANANDMEAN
381 PAssert(PIsDescendant(&obj, H4505_CpRequestRes), PInvalidCast);
382 #endif
383 const H4505_CpRequestRes & other = (const H4505_CpRequestRes &)obj;
385 Comparison result;
387 if ((result = m_parkedToNumber.Compare(other.m_parkedToNumber)) != EqualTo)
388 return result;
389 if ((result = m_parkedToPosition.Compare(other.m_parkedToPosition)) != EqualTo)
390 return result;
391 if ((result = m_parkCondition.Compare(other.m_parkCondition)) != EqualTo)
392 return result;
393 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
394 return result;
396 return PASN_Sequence::Compare(other);
400 PINDEX H4505_CpRequestRes::GetDataLength() const
402 PINDEX length = 0;
403 length += m_parkedToNumber.GetObjectLength();
404 if (HasOptionalField(e_parkedToPosition))
405 length += m_parkedToPosition.GetObjectLength();
406 length += m_parkCondition.GetObjectLength();
407 if (HasOptionalField(e_extensionRes))
408 length += m_extensionRes.GetObjectLength();
409 return length;
413 BOOL H4505_CpRequestRes::Decode(PASN_Stream & strm)
415 if (!PreambleDecode(strm))
416 return FALSE;
418 if (!m_parkedToNumber.Decode(strm))
419 return FALSE;
420 if (HasOptionalField(e_parkedToPosition) && !m_parkedToPosition.Decode(strm))
421 return FALSE;
422 if (!m_parkCondition.Decode(strm))
423 return FALSE;
424 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
425 return FALSE;
427 return UnknownExtensionsDecode(strm);
431 void H4505_CpRequestRes::Encode(PASN_Stream & strm) const
433 PreambleEncode(strm);
435 m_parkedToNumber.Encode(strm);
436 if (HasOptionalField(e_parkedToPosition))
437 m_parkedToPosition.Encode(strm);
438 m_parkCondition.Encode(strm);
439 if (HasOptionalField(e_extensionRes))
440 m_extensionRes.Encode(strm);
442 UnknownExtensionsEncode(strm);
446 PObject * H4505_CpRequestRes::Clone() const
448 #ifndef PASN_LEANANDMEAN
449 PAssert(IsClass(H4505_CpRequestRes::Class()), PInvalidCast);
450 #endif
451 return new H4505_CpRequestRes(*this);
456 // CpSetupArg
459 H4505_CpSetupArg::H4505_CpSetupArg(unsigned tag, PASN_Object::TagClass tagClass)
460 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
462 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
466 #ifndef PASN_NOPRINTON
467 void H4505_CpSetupArg::PrintOn(ostream & strm) const
469 int indent = strm.precision() + 2;
470 strm << "{\n";
471 strm << setw(indent+16) << "parkingNumber = " << setprecision(indent) << m_parkingNumber << '\n';
472 strm << setw(indent+15) << "parkedNumber = " << setprecision(indent) << m_parkedNumber << '\n';
473 strm << setw(indent+17) << "parkedToNumber = " << setprecision(indent) << m_parkedToNumber << '\n';
474 if (HasOptionalField(e_parkedToPosition))
475 strm << setw(indent+19) << "parkedToPosition = " << setprecision(indent) << m_parkedToPosition << '\n';
476 if (HasOptionalField(e_extensionArg))
477 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
478 strm << setw(indent-1) << setprecision(indent-2) << "}";
480 #endif
483 PObject::Comparison H4505_CpSetupArg::Compare(const PObject & obj) const
485 #ifndef PASN_LEANANDMEAN
486 PAssert(PIsDescendant(&obj, H4505_CpSetupArg), PInvalidCast);
487 #endif
488 const H4505_CpSetupArg & other = (const H4505_CpSetupArg &)obj;
490 Comparison result;
492 if ((result = m_parkingNumber.Compare(other.m_parkingNumber)) != EqualTo)
493 return result;
494 if ((result = m_parkedNumber.Compare(other.m_parkedNumber)) != EqualTo)
495 return result;
496 if ((result = m_parkedToNumber.Compare(other.m_parkedToNumber)) != EqualTo)
497 return result;
498 if ((result = m_parkedToPosition.Compare(other.m_parkedToPosition)) != EqualTo)
499 return result;
500 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
501 return result;
503 return PASN_Sequence::Compare(other);
507 PINDEX H4505_CpSetupArg::GetDataLength() const
509 PINDEX length = 0;
510 length += m_parkingNumber.GetObjectLength();
511 length += m_parkedNumber.GetObjectLength();
512 length += m_parkedToNumber.GetObjectLength();
513 if (HasOptionalField(e_parkedToPosition))
514 length += m_parkedToPosition.GetObjectLength();
515 if (HasOptionalField(e_extensionArg))
516 length += m_extensionArg.GetObjectLength();
517 return length;
521 BOOL H4505_CpSetupArg::Decode(PASN_Stream & strm)
523 if (!PreambleDecode(strm))
524 return FALSE;
526 if (!m_parkingNumber.Decode(strm))
527 return FALSE;
528 if (!m_parkedNumber.Decode(strm))
529 return FALSE;
530 if (!m_parkedToNumber.Decode(strm))
531 return FALSE;
532 if (HasOptionalField(e_parkedToPosition) && !m_parkedToPosition.Decode(strm))
533 return FALSE;
534 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
535 return FALSE;
537 return UnknownExtensionsDecode(strm);
541 void H4505_CpSetupArg::Encode(PASN_Stream & strm) const
543 PreambleEncode(strm);
545 m_parkingNumber.Encode(strm);
546 m_parkedNumber.Encode(strm);
547 m_parkedToNumber.Encode(strm);
548 if (HasOptionalField(e_parkedToPosition))
549 m_parkedToPosition.Encode(strm);
550 if (HasOptionalField(e_extensionArg))
551 m_extensionArg.Encode(strm);
553 UnknownExtensionsEncode(strm);
557 PObject * H4505_CpSetupArg::Clone() const
559 #ifndef PASN_LEANANDMEAN
560 PAssert(IsClass(H4505_CpSetupArg::Class()), PInvalidCast);
561 #endif
562 return new H4505_CpSetupArg(*this);
567 // CpSetupRes
570 H4505_CpSetupRes::H4505_CpSetupRes(unsigned tag, PASN_Object::TagClass tagClass)
571 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
573 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
577 #ifndef PASN_NOPRINTON
578 void H4505_CpSetupRes::PrintOn(ostream & strm) const
580 int indent = strm.precision() + 2;
581 strm << "{\n";
582 strm << setw(indent+17) << "parkedToNumber = " << setprecision(indent) << m_parkedToNumber << '\n';
583 if (HasOptionalField(e_parkedToPosition))
584 strm << setw(indent+19) << "parkedToPosition = " << setprecision(indent) << m_parkedToPosition << '\n';
585 strm << setw(indent+16) << "parkCondition = " << setprecision(indent) << m_parkCondition << '\n';
586 if (HasOptionalField(e_extensionRes))
587 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
588 strm << setw(indent-1) << setprecision(indent-2) << "}";
590 #endif
593 PObject::Comparison H4505_CpSetupRes::Compare(const PObject & obj) const
595 #ifndef PASN_LEANANDMEAN
596 PAssert(PIsDescendant(&obj, H4505_CpSetupRes), PInvalidCast);
597 #endif
598 const H4505_CpSetupRes & other = (const H4505_CpSetupRes &)obj;
600 Comparison result;
602 if ((result = m_parkedToNumber.Compare(other.m_parkedToNumber)) != EqualTo)
603 return result;
604 if ((result = m_parkedToPosition.Compare(other.m_parkedToPosition)) != EqualTo)
605 return result;
606 if ((result = m_parkCondition.Compare(other.m_parkCondition)) != EqualTo)
607 return result;
608 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
609 return result;
611 return PASN_Sequence::Compare(other);
615 PINDEX H4505_CpSetupRes::GetDataLength() const
617 PINDEX length = 0;
618 length += m_parkedToNumber.GetObjectLength();
619 if (HasOptionalField(e_parkedToPosition))
620 length += m_parkedToPosition.GetObjectLength();
621 length += m_parkCondition.GetObjectLength();
622 if (HasOptionalField(e_extensionRes))
623 length += m_extensionRes.GetObjectLength();
624 return length;
628 BOOL H4505_CpSetupRes::Decode(PASN_Stream & strm)
630 if (!PreambleDecode(strm))
631 return FALSE;
633 if (!m_parkedToNumber.Decode(strm))
634 return FALSE;
635 if (HasOptionalField(e_parkedToPosition) && !m_parkedToPosition.Decode(strm))
636 return FALSE;
637 if (!m_parkCondition.Decode(strm))
638 return FALSE;
639 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
640 return FALSE;
642 return UnknownExtensionsDecode(strm);
646 void H4505_CpSetupRes::Encode(PASN_Stream & strm) const
648 PreambleEncode(strm);
650 m_parkedToNumber.Encode(strm);
651 if (HasOptionalField(e_parkedToPosition))
652 m_parkedToPosition.Encode(strm);
653 m_parkCondition.Encode(strm);
654 if (HasOptionalField(e_extensionRes))
655 m_extensionRes.Encode(strm);
657 UnknownExtensionsEncode(strm);
661 PObject * H4505_CpSetupRes::Clone() const
663 #ifndef PASN_LEANANDMEAN
664 PAssert(IsClass(H4505_CpSetupRes::Class()), PInvalidCast);
665 #endif
666 return new H4505_CpSetupRes(*this);
671 // GroupIndicationOnArg
674 H4505_GroupIndicationOnArg::H4505_GroupIndicationOnArg(unsigned tag, PASN_Object::TagClass tagClass)
675 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
677 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
681 #ifndef PASN_NOPRINTON
682 void H4505_GroupIndicationOnArg::PrintOn(ostream & strm) const
684 int indent = strm.precision() + 2;
685 strm << "{\n";
686 strm << setw(indent+15) << "callPickupId = " << setprecision(indent) << m_callPickupId << '\n';
687 strm << setw(indent+20) << "groupMemberUserNr = " << setprecision(indent) << m_groupMemberUserNr << '\n';
688 strm << setw(indent+19) << "retrieveCallType = " << setprecision(indent) << m_retrieveCallType << '\n';
689 strm << setw(indent+18) << "partyToRetrieve = " << setprecision(indent) << m_partyToRetrieve << '\n';
690 strm << setw(indent+18) << "retrieveAddress = " << setprecision(indent) << m_retrieveAddress << '\n';
691 if (HasOptionalField(e_parkPosition))
692 strm << setw(indent+15) << "parkPosition = " << setprecision(indent) << m_parkPosition << '\n';
693 if (HasOptionalField(e_extensionArg))
694 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
695 strm << setw(indent-1) << setprecision(indent-2) << "}";
697 #endif
700 PObject::Comparison H4505_GroupIndicationOnArg::Compare(const PObject & obj) const
702 #ifndef PASN_LEANANDMEAN
703 PAssert(PIsDescendant(&obj, H4505_GroupIndicationOnArg), PInvalidCast);
704 #endif
705 const H4505_GroupIndicationOnArg & other = (const H4505_GroupIndicationOnArg &)obj;
707 Comparison result;
709 if ((result = m_callPickupId.Compare(other.m_callPickupId)) != EqualTo)
710 return result;
711 if ((result = m_groupMemberUserNr.Compare(other.m_groupMemberUserNr)) != EqualTo)
712 return result;
713 if ((result = m_retrieveCallType.Compare(other.m_retrieveCallType)) != EqualTo)
714 return result;
715 if ((result = m_partyToRetrieve.Compare(other.m_partyToRetrieve)) != EqualTo)
716 return result;
717 if ((result = m_retrieveAddress.Compare(other.m_retrieveAddress)) != EqualTo)
718 return result;
719 if ((result = m_parkPosition.Compare(other.m_parkPosition)) != EqualTo)
720 return result;
721 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
722 return result;
724 return PASN_Sequence::Compare(other);
728 PINDEX H4505_GroupIndicationOnArg::GetDataLength() const
730 PINDEX length = 0;
731 length += m_callPickupId.GetObjectLength();
732 length += m_groupMemberUserNr.GetObjectLength();
733 length += m_retrieveCallType.GetObjectLength();
734 length += m_partyToRetrieve.GetObjectLength();
735 length += m_retrieveAddress.GetObjectLength();
736 if (HasOptionalField(e_parkPosition))
737 length += m_parkPosition.GetObjectLength();
738 if (HasOptionalField(e_extensionArg))
739 length += m_extensionArg.GetObjectLength();
740 return length;
744 BOOL H4505_GroupIndicationOnArg::Decode(PASN_Stream & strm)
746 if (!PreambleDecode(strm))
747 return FALSE;
749 if (!m_callPickupId.Decode(strm))
750 return FALSE;
751 if (!m_groupMemberUserNr.Decode(strm))
752 return FALSE;
753 if (!m_retrieveCallType.Decode(strm))
754 return FALSE;
755 if (!m_partyToRetrieve.Decode(strm))
756 return FALSE;
757 if (!m_retrieveAddress.Decode(strm))
758 return FALSE;
759 if (HasOptionalField(e_parkPosition) && !m_parkPosition.Decode(strm))
760 return FALSE;
761 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
762 return FALSE;
764 return UnknownExtensionsDecode(strm);
768 void H4505_GroupIndicationOnArg::Encode(PASN_Stream & strm) const
770 PreambleEncode(strm);
772 m_callPickupId.Encode(strm);
773 m_groupMemberUserNr.Encode(strm);
774 m_retrieveCallType.Encode(strm);
775 m_partyToRetrieve.Encode(strm);
776 m_retrieveAddress.Encode(strm);
777 if (HasOptionalField(e_parkPosition))
778 m_parkPosition.Encode(strm);
779 if (HasOptionalField(e_extensionArg))
780 m_extensionArg.Encode(strm);
782 UnknownExtensionsEncode(strm);
786 PObject * H4505_GroupIndicationOnArg::Clone() const
788 #ifndef PASN_LEANANDMEAN
789 PAssert(IsClass(H4505_GroupIndicationOnArg::Class()), PInvalidCast);
790 #endif
791 return new H4505_GroupIndicationOnArg(*this);
796 // GroupIndicationOnRes
799 H4505_GroupIndicationOnRes::H4505_GroupIndicationOnRes(unsigned tag, PASN_Object::TagClass tagClass)
800 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
802 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
806 #ifndef PASN_NOPRINTON
807 void H4505_GroupIndicationOnRes::PrintOn(ostream & strm) const
809 int indent = strm.precision() + 2;
810 strm << "{\n";
811 if (HasOptionalField(e_extensionRes))
812 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
813 strm << setw(indent-1) << setprecision(indent-2) << "}";
815 #endif
818 PObject::Comparison H4505_GroupIndicationOnRes::Compare(const PObject & obj) const
820 #ifndef PASN_LEANANDMEAN
821 PAssert(PIsDescendant(&obj, H4505_GroupIndicationOnRes), PInvalidCast);
822 #endif
823 const H4505_GroupIndicationOnRes & other = (const H4505_GroupIndicationOnRes &)obj;
825 Comparison result;
827 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
828 return result;
830 return PASN_Sequence::Compare(other);
834 PINDEX H4505_GroupIndicationOnRes::GetDataLength() const
836 PINDEX length = 0;
837 if (HasOptionalField(e_extensionRes))
838 length += m_extensionRes.GetObjectLength();
839 return length;
843 BOOL H4505_GroupIndicationOnRes::Decode(PASN_Stream & strm)
845 if (!PreambleDecode(strm))
846 return FALSE;
848 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
849 return FALSE;
851 return UnknownExtensionsDecode(strm);
855 void H4505_GroupIndicationOnRes::Encode(PASN_Stream & strm) const
857 PreambleEncode(strm);
859 if (HasOptionalField(e_extensionRes))
860 m_extensionRes.Encode(strm);
862 UnknownExtensionsEncode(strm);
866 PObject * H4505_GroupIndicationOnRes::Clone() const
868 #ifndef PASN_LEANANDMEAN
869 PAssert(IsClass(H4505_GroupIndicationOnRes::Class()), PInvalidCast);
870 #endif
871 return new H4505_GroupIndicationOnRes(*this);
876 // GroupIndicationOffArg
879 H4505_GroupIndicationOffArg::H4505_GroupIndicationOffArg(unsigned tag, PASN_Object::TagClass tagClass)
880 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
882 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
886 #ifndef PASN_NOPRINTON
887 void H4505_GroupIndicationOffArg::PrintOn(ostream & strm) const
889 int indent = strm.precision() + 2;
890 strm << "{\n";
891 strm << setw(indent+15) << "callPickupId = " << setprecision(indent) << m_callPickupId << '\n';
892 strm << setw(indent+20) << "groupMemberUserNr = " << setprecision(indent) << m_groupMemberUserNr << '\n';
893 if (HasOptionalField(e_extensionArg))
894 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
895 strm << setw(indent-1) << setprecision(indent-2) << "}";
897 #endif
900 PObject::Comparison H4505_GroupIndicationOffArg::Compare(const PObject & obj) const
902 #ifndef PASN_LEANANDMEAN
903 PAssert(PIsDescendant(&obj, H4505_GroupIndicationOffArg), PInvalidCast);
904 #endif
905 const H4505_GroupIndicationOffArg & other = (const H4505_GroupIndicationOffArg &)obj;
907 Comparison result;
909 if ((result = m_callPickupId.Compare(other.m_callPickupId)) != EqualTo)
910 return result;
911 if ((result = m_groupMemberUserNr.Compare(other.m_groupMemberUserNr)) != EqualTo)
912 return result;
913 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
914 return result;
916 return PASN_Sequence::Compare(other);
920 PINDEX H4505_GroupIndicationOffArg::GetDataLength() const
922 PINDEX length = 0;
923 length += m_callPickupId.GetObjectLength();
924 length += m_groupMemberUserNr.GetObjectLength();
925 if (HasOptionalField(e_extensionArg))
926 length += m_extensionArg.GetObjectLength();
927 return length;
931 BOOL H4505_GroupIndicationOffArg::Decode(PASN_Stream & strm)
933 if (!PreambleDecode(strm))
934 return FALSE;
936 if (!m_callPickupId.Decode(strm))
937 return FALSE;
938 if (!m_groupMemberUserNr.Decode(strm))
939 return FALSE;
940 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
941 return FALSE;
943 return UnknownExtensionsDecode(strm);
947 void H4505_GroupIndicationOffArg::Encode(PASN_Stream & strm) const
949 PreambleEncode(strm);
951 m_callPickupId.Encode(strm);
952 m_groupMemberUserNr.Encode(strm);
953 if (HasOptionalField(e_extensionArg))
954 m_extensionArg.Encode(strm);
956 UnknownExtensionsEncode(strm);
960 PObject * H4505_GroupIndicationOffArg::Clone() const
962 #ifndef PASN_LEANANDMEAN
963 PAssert(IsClass(H4505_GroupIndicationOffArg::Class()), PInvalidCast);
964 #endif
965 return new H4505_GroupIndicationOffArg(*this);
970 // GroupIndicationOffRes
973 H4505_GroupIndicationOffRes::H4505_GroupIndicationOffRes(unsigned tag, PASN_Object::TagClass tagClass)
974 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
976 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
980 #ifndef PASN_NOPRINTON
981 void H4505_GroupIndicationOffRes::PrintOn(ostream & strm) const
983 int indent = strm.precision() + 2;
984 strm << "{\n";
985 if (HasOptionalField(e_extensionRes))
986 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
987 strm << setw(indent-1) << setprecision(indent-2) << "}";
989 #endif
992 PObject::Comparison H4505_GroupIndicationOffRes::Compare(const PObject & obj) const
994 #ifndef PASN_LEANANDMEAN
995 PAssert(PIsDescendant(&obj, H4505_GroupIndicationOffRes), PInvalidCast);
996 #endif
997 const H4505_GroupIndicationOffRes & other = (const H4505_GroupIndicationOffRes &)obj;
999 Comparison result;
1001 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
1002 return result;
1004 return PASN_Sequence::Compare(other);
1008 PINDEX H4505_GroupIndicationOffRes::GetDataLength() const
1010 PINDEX length = 0;
1011 if (HasOptionalField(e_extensionRes))
1012 length += m_extensionRes.GetObjectLength();
1013 return length;
1017 BOOL H4505_GroupIndicationOffRes::Decode(PASN_Stream & strm)
1019 if (!PreambleDecode(strm))
1020 return FALSE;
1022 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
1023 return FALSE;
1025 return UnknownExtensionsDecode(strm);
1029 void H4505_GroupIndicationOffRes::Encode(PASN_Stream & strm) const
1031 PreambleEncode(strm);
1033 if (HasOptionalField(e_extensionRes))
1034 m_extensionRes.Encode(strm);
1036 UnknownExtensionsEncode(strm);
1040 PObject * H4505_GroupIndicationOffRes::Clone() const
1042 #ifndef PASN_LEANANDMEAN
1043 PAssert(IsClass(H4505_GroupIndicationOffRes::Class()), PInvalidCast);
1044 #endif
1045 return new H4505_GroupIndicationOffRes(*this);
1050 // PickrequArg
1053 H4505_PickrequArg::H4505_PickrequArg(unsigned tag, PASN_Object::TagClass tagClass)
1054 : PASN_Sequence(tag, tagClass, 4, TRUE, 0)
1056 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1060 #ifndef PASN_NOPRINTON
1061 void H4505_PickrequArg::PrintOn(ostream & strm) const
1063 int indent = strm.precision() + 2;
1064 strm << "{\n";
1065 strm << setw(indent+19) << "picking_upNumber = " << setprecision(indent) << m_picking_upNumber << '\n';
1066 if (HasOptionalField(e_callPickupId))
1067 strm << setw(indent+15) << "callPickupId = " << setprecision(indent) << m_callPickupId << '\n';
1068 if (HasOptionalField(e_partyToRetrieve))
1069 strm << setw(indent+18) << "partyToRetrieve = " << setprecision(indent) << m_partyToRetrieve << '\n';
1070 strm << setw(indent+18) << "retrieveAddress = " << setprecision(indent) << m_retrieveAddress << '\n';
1071 if (HasOptionalField(e_parkPosition))
1072 strm << setw(indent+15) << "parkPosition = " << setprecision(indent) << m_parkPosition << '\n';
1073 if (HasOptionalField(e_extensionArg))
1074 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
1075 strm << setw(indent-1) << setprecision(indent-2) << "}";
1077 #endif
1080 PObject::Comparison H4505_PickrequArg::Compare(const PObject & obj) const
1082 #ifndef PASN_LEANANDMEAN
1083 PAssert(PIsDescendant(&obj, H4505_PickrequArg), PInvalidCast);
1084 #endif
1085 const H4505_PickrequArg & other = (const H4505_PickrequArg &)obj;
1087 Comparison result;
1089 if ((result = m_picking_upNumber.Compare(other.m_picking_upNumber)) != EqualTo)
1090 return result;
1091 if ((result = m_callPickupId.Compare(other.m_callPickupId)) != EqualTo)
1092 return result;
1093 if ((result = m_partyToRetrieve.Compare(other.m_partyToRetrieve)) != EqualTo)
1094 return result;
1095 if ((result = m_retrieveAddress.Compare(other.m_retrieveAddress)) != EqualTo)
1096 return result;
1097 if ((result = m_parkPosition.Compare(other.m_parkPosition)) != EqualTo)
1098 return result;
1099 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
1100 return result;
1102 return PASN_Sequence::Compare(other);
1106 PINDEX H4505_PickrequArg::GetDataLength() const
1108 PINDEX length = 0;
1109 length += m_picking_upNumber.GetObjectLength();
1110 if (HasOptionalField(e_callPickupId))
1111 length += m_callPickupId.GetObjectLength();
1112 if (HasOptionalField(e_partyToRetrieve))
1113 length += m_partyToRetrieve.GetObjectLength();
1114 length += m_retrieveAddress.GetObjectLength();
1115 if (HasOptionalField(e_parkPosition))
1116 length += m_parkPosition.GetObjectLength();
1117 if (HasOptionalField(e_extensionArg))
1118 length += m_extensionArg.GetObjectLength();
1119 return length;
1123 BOOL H4505_PickrequArg::Decode(PASN_Stream & strm)
1125 if (!PreambleDecode(strm))
1126 return FALSE;
1128 if (!m_picking_upNumber.Decode(strm))
1129 return FALSE;
1130 if (HasOptionalField(e_callPickupId) && !m_callPickupId.Decode(strm))
1131 return FALSE;
1132 if (HasOptionalField(e_partyToRetrieve) && !m_partyToRetrieve.Decode(strm))
1133 return FALSE;
1134 if (!m_retrieveAddress.Decode(strm))
1135 return FALSE;
1136 if (HasOptionalField(e_parkPosition) && !m_parkPosition.Decode(strm))
1137 return FALSE;
1138 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
1139 return FALSE;
1141 return UnknownExtensionsDecode(strm);
1145 void H4505_PickrequArg::Encode(PASN_Stream & strm) const
1147 PreambleEncode(strm);
1149 m_picking_upNumber.Encode(strm);
1150 if (HasOptionalField(e_callPickupId))
1151 m_callPickupId.Encode(strm);
1152 if (HasOptionalField(e_partyToRetrieve))
1153 m_partyToRetrieve.Encode(strm);
1154 m_retrieveAddress.Encode(strm);
1155 if (HasOptionalField(e_parkPosition))
1156 m_parkPosition.Encode(strm);
1157 if (HasOptionalField(e_extensionArg))
1158 m_extensionArg.Encode(strm);
1160 UnknownExtensionsEncode(strm);
1164 PObject * H4505_PickrequArg::Clone() const
1166 #ifndef PASN_LEANANDMEAN
1167 PAssert(IsClass(H4505_PickrequArg::Class()), PInvalidCast);
1168 #endif
1169 return new H4505_PickrequArg(*this);
1174 // PickrequRes
1177 H4505_PickrequRes::H4505_PickrequRes(unsigned tag, PASN_Object::TagClass tagClass)
1178 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1180 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1184 #ifndef PASN_NOPRINTON
1185 void H4505_PickrequRes::PrintOn(ostream & strm) const
1187 int indent = strm.precision() + 2;
1188 strm << "{\n";
1189 strm << setw(indent+15) << "callPickupId = " << setprecision(indent) << m_callPickupId << '\n';
1190 if (HasOptionalField(e_extensionRes))
1191 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
1192 strm << setw(indent-1) << setprecision(indent-2) << "}";
1194 #endif
1197 PObject::Comparison H4505_PickrequRes::Compare(const PObject & obj) const
1199 #ifndef PASN_LEANANDMEAN
1200 PAssert(PIsDescendant(&obj, H4505_PickrequRes), PInvalidCast);
1201 #endif
1202 const H4505_PickrequRes & other = (const H4505_PickrequRes &)obj;
1204 Comparison result;
1206 if ((result = m_callPickupId.Compare(other.m_callPickupId)) != EqualTo)
1207 return result;
1208 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
1209 return result;
1211 return PASN_Sequence::Compare(other);
1215 PINDEX H4505_PickrequRes::GetDataLength() const
1217 PINDEX length = 0;
1218 length += m_callPickupId.GetObjectLength();
1219 if (HasOptionalField(e_extensionRes))
1220 length += m_extensionRes.GetObjectLength();
1221 return length;
1225 BOOL H4505_PickrequRes::Decode(PASN_Stream & strm)
1227 if (!PreambleDecode(strm))
1228 return FALSE;
1230 if (!m_callPickupId.Decode(strm))
1231 return FALSE;
1232 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
1233 return FALSE;
1235 return UnknownExtensionsDecode(strm);
1239 void H4505_PickrequRes::Encode(PASN_Stream & strm) const
1241 PreambleEncode(strm);
1243 m_callPickupId.Encode(strm);
1244 if (HasOptionalField(e_extensionRes))
1245 m_extensionRes.Encode(strm);
1247 UnknownExtensionsEncode(strm);
1251 PObject * H4505_PickrequRes::Clone() const
1253 #ifndef PASN_LEANANDMEAN
1254 PAssert(IsClass(H4505_PickrequRes::Class()), PInvalidCast);
1255 #endif
1256 return new H4505_PickrequRes(*this);
1261 // PickupArg
1264 H4505_PickupArg::H4505_PickupArg(unsigned tag, PASN_Object::TagClass tagClass)
1265 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1267 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1271 #ifndef PASN_NOPRINTON
1272 void H4505_PickupArg::PrintOn(ostream & strm) const
1274 int indent = strm.precision() + 2;
1275 strm << "{\n";
1276 strm << setw(indent+15) << "callPickupId = " << setprecision(indent) << m_callPickupId << '\n';
1277 strm << setw(indent+19) << "picking_upNumber = " << setprecision(indent) << m_picking_upNumber << '\n';
1278 if (HasOptionalField(e_extensionArg))
1279 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
1280 strm << setw(indent-1) << setprecision(indent-2) << "}";
1282 #endif
1285 PObject::Comparison H4505_PickupArg::Compare(const PObject & obj) const
1287 #ifndef PASN_LEANANDMEAN
1288 PAssert(PIsDescendant(&obj, H4505_PickupArg), PInvalidCast);
1289 #endif
1290 const H4505_PickupArg & other = (const H4505_PickupArg &)obj;
1292 Comparison result;
1294 if ((result = m_callPickupId.Compare(other.m_callPickupId)) != EqualTo)
1295 return result;
1296 if ((result = m_picking_upNumber.Compare(other.m_picking_upNumber)) != EqualTo)
1297 return result;
1298 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
1299 return result;
1301 return PASN_Sequence::Compare(other);
1305 PINDEX H4505_PickupArg::GetDataLength() const
1307 PINDEX length = 0;
1308 length += m_callPickupId.GetObjectLength();
1309 length += m_picking_upNumber.GetObjectLength();
1310 if (HasOptionalField(e_extensionArg))
1311 length += m_extensionArg.GetObjectLength();
1312 return length;
1316 BOOL H4505_PickupArg::Decode(PASN_Stream & strm)
1318 if (!PreambleDecode(strm))
1319 return FALSE;
1321 if (!m_callPickupId.Decode(strm))
1322 return FALSE;
1323 if (!m_picking_upNumber.Decode(strm))
1324 return FALSE;
1325 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
1326 return FALSE;
1328 return UnknownExtensionsDecode(strm);
1332 void H4505_PickupArg::Encode(PASN_Stream & strm) const
1334 PreambleEncode(strm);
1336 m_callPickupId.Encode(strm);
1337 m_picking_upNumber.Encode(strm);
1338 if (HasOptionalField(e_extensionArg))
1339 m_extensionArg.Encode(strm);
1341 UnknownExtensionsEncode(strm);
1345 PObject * H4505_PickupArg::Clone() const
1347 #ifndef PASN_LEANANDMEAN
1348 PAssert(IsClass(H4505_PickupArg::Class()), PInvalidCast);
1349 #endif
1350 return new H4505_PickupArg(*this);
1355 // PickupRes
1358 H4505_PickupRes::H4505_PickupRes(unsigned tag, PASN_Object::TagClass tagClass)
1359 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1361 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1365 #ifndef PASN_NOPRINTON
1366 void H4505_PickupRes::PrintOn(ostream & strm) const
1368 int indent = strm.precision() + 2;
1369 strm << "{\n";
1370 if (HasOptionalField(e_extensionRes))
1371 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
1372 strm << setw(indent-1) << setprecision(indent-2) << "}";
1374 #endif
1377 PObject::Comparison H4505_PickupRes::Compare(const PObject & obj) const
1379 #ifndef PASN_LEANANDMEAN
1380 PAssert(PIsDescendant(&obj, H4505_PickupRes), PInvalidCast);
1381 #endif
1382 const H4505_PickupRes & other = (const H4505_PickupRes &)obj;
1384 Comparison result;
1386 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
1387 return result;
1389 return PASN_Sequence::Compare(other);
1393 PINDEX H4505_PickupRes::GetDataLength() const
1395 PINDEX length = 0;
1396 if (HasOptionalField(e_extensionRes))
1397 length += m_extensionRes.GetObjectLength();
1398 return length;
1402 BOOL H4505_PickupRes::Decode(PASN_Stream & strm)
1404 if (!PreambleDecode(strm))
1405 return FALSE;
1407 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
1408 return FALSE;
1410 return UnknownExtensionsDecode(strm);
1414 void H4505_PickupRes::Encode(PASN_Stream & strm) const
1416 PreambleEncode(strm);
1418 if (HasOptionalField(e_extensionRes))
1419 m_extensionRes.Encode(strm);
1421 UnknownExtensionsEncode(strm);
1425 PObject * H4505_PickupRes::Clone() const
1427 #ifndef PASN_LEANANDMEAN
1428 PAssert(IsClass(H4505_PickupRes::Class()), PInvalidCast);
1429 #endif
1430 return new H4505_PickupRes(*this);
1435 // PickExeArg
1438 H4505_PickExeArg::H4505_PickExeArg(unsigned tag, PASN_Object::TagClass tagClass)
1439 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1441 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1445 #ifndef PASN_NOPRINTON
1446 void H4505_PickExeArg::PrintOn(ostream & strm) const
1448 int indent = strm.precision() + 2;
1449 strm << "{\n";
1450 strm << setw(indent+15) << "callPickupId = " << setprecision(indent) << m_callPickupId << '\n';
1451 strm << setw(indent+19) << "picking_upNumber = " << setprecision(indent) << m_picking_upNumber << '\n';
1452 strm << setw(indent+18) << "partyToRetrieve = " << setprecision(indent) << m_partyToRetrieve << '\n';
1453 if (HasOptionalField(e_extensionArg))
1454 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
1455 strm << setw(indent-1) << setprecision(indent-2) << "}";
1457 #endif
1460 PObject::Comparison H4505_PickExeArg::Compare(const PObject & obj) const
1462 #ifndef PASN_LEANANDMEAN
1463 PAssert(PIsDescendant(&obj, H4505_PickExeArg), PInvalidCast);
1464 #endif
1465 const H4505_PickExeArg & other = (const H4505_PickExeArg &)obj;
1467 Comparison result;
1469 if ((result = m_callPickupId.Compare(other.m_callPickupId)) != EqualTo)
1470 return result;
1471 if ((result = m_picking_upNumber.Compare(other.m_picking_upNumber)) != EqualTo)
1472 return result;
1473 if ((result = m_partyToRetrieve.Compare(other.m_partyToRetrieve)) != EqualTo)
1474 return result;
1475 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
1476 return result;
1478 return PASN_Sequence::Compare(other);
1482 PINDEX H4505_PickExeArg::GetDataLength() const
1484 PINDEX length = 0;
1485 length += m_callPickupId.GetObjectLength();
1486 length += m_picking_upNumber.GetObjectLength();
1487 length += m_partyToRetrieve.GetObjectLength();
1488 if (HasOptionalField(e_extensionArg))
1489 length += m_extensionArg.GetObjectLength();
1490 return length;
1494 BOOL H4505_PickExeArg::Decode(PASN_Stream & strm)
1496 if (!PreambleDecode(strm))
1497 return FALSE;
1499 if (!m_callPickupId.Decode(strm))
1500 return FALSE;
1501 if (!m_picking_upNumber.Decode(strm))
1502 return FALSE;
1503 if (!m_partyToRetrieve.Decode(strm))
1504 return FALSE;
1505 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
1506 return FALSE;
1508 return UnknownExtensionsDecode(strm);
1512 void H4505_PickExeArg::Encode(PASN_Stream & strm) const
1514 PreambleEncode(strm);
1516 m_callPickupId.Encode(strm);
1517 m_picking_upNumber.Encode(strm);
1518 m_partyToRetrieve.Encode(strm);
1519 if (HasOptionalField(e_extensionArg))
1520 m_extensionArg.Encode(strm);
1522 UnknownExtensionsEncode(strm);
1526 PObject * H4505_PickExeArg::Clone() const
1528 #ifndef PASN_LEANANDMEAN
1529 PAssert(IsClass(H4505_PickExeArg::Class()), PInvalidCast);
1530 #endif
1531 return new H4505_PickExeArg(*this);
1536 // PickExeRes
1539 H4505_PickExeRes::H4505_PickExeRes(unsigned tag, PASN_Object::TagClass tagClass)
1540 : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
1542 m_extensionRes.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1546 #ifndef PASN_NOPRINTON
1547 void H4505_PickExeRes::PrintOn(ostream & strm) const
1549 int indent = strm.precision() + 2;
1550 strm << "{\n";
1551 if (HasOptionalField(e_extensionRes))
1552 strm << setw(indent+15) << "extensionRes = " << setprecision(indent) << m_extensionRes << '\n';
1553 strm << setw(indent-1) << setprecision(indent-2) << "}";
1555 #endif
1558 PObject::Comparison H4505_PickExeRes::Compare(const PObject & obj) const
1560 #ifndef PASN_LEANANDMEAN
1561 PAssert(PIsDescendant(&obj, H4505_PickExeRes), PInvalidCast);
1562 #endif
1563 const H4505_PickExeRes & other = (const H4505_PickExeRes &)obj;
1565 Comparison result;
1567 if ((result = m_extensionRes.Compare(other.m_extensionRes)) != EqualTo)
1568 return result;
1570 return PASN_Sequence::Compare(other);
1574 PINDEX H4505_PickExeRes::GetDataLength() const
1576 PINDEX length = 0;
1577 if (HasOptionalField(e_extensionRes))
1578 length += m_extensionRes.GetObjectLength();
1579 return length;
1583 BOOL H4505_PickExeRes::Decode(PASN_Stream & strm)
1585 if (!PreambleDecode(strm))
1586 return FALSE;
1588 if (HasOptionalField(e_extensionRes) && !m_extensionRes.Decode(strm))
1589 return FALSE;
1591 return UnknownExtensionsDecode(strm);
1595 void H4505_PickExeRes::Encode(PASN_Stream & strm) const
1597 PreambleEncode(strm);
1599 if (HasOptionalField(e_extensionRes))
1600 m_extensionRes.Encode(strm);
1602 UnknownExtensionsEncode(strm);
1606 PObject * H4505_PickExeRes::Clone() const
1608 #ifndef PASN_LEANANDMEAN
1609 PAssert(IsClass(H4505_PickExeRes::Class()), PInvalidCast);
1610 #endif
1611 return new H4505_PickExeRes(*this);
1616 // CpNotifyArg
1619 H4505_CpNotifyArg::H4505_CpNotifyArg(unsigned tag, PASN_Object::TagClass tagClass)
1620 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
1622 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1626 #ifndef PASN_NOPRINTON
1627 void H4505_CpNotifyArg::PrintOn(ostream & strm) const
1629 int indent = strm.precision() + 2;
1630 strm << "{\n";
1631 if (HasOptionalField(e_parkingNumber))
1632 strm << setw(indent+16) << "parkingNumber = " << setprecision(indent) << m_parkingNumber << '\n';
1633 if (HasOptionalField(e_extensionArg))
1634 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
1635 strm << setw(indent-1) << setprecision(indent-2) << "}";
1637 #endif
1640 PObject::Comparison H4505_CpNotifyArg::Compare(const PObject & obj) const
1642 #ifndef PASN_LEANANDMEAN
1643 PAssert(PIsDescendant(&obj, H4505_CpNotifyArg), PInvalidCast);
1644 #endif
1645 const H4505_CpNotifyArg & other = (const H4505_CpNotifyArg &)obj;
1647 Comparison result;
1649 if ((result = m_parkingNumber.Compare(other.m_parkingNumber)) != EqualTo)
1650 return result;
1651 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
1652 return result;
1654 return PASN_Sequence::Compare(other);
1658 PINDEX H4505_CpNotifyArg::GetDataLength() const
1660 PINDEX length = 0;
1661 if (HasOptionalField(e_parkingNumber))
1662 length += m_parkingNumber.GetObjectLength();
1663 if (HasOptionalField(e_extensionArg))
1664 length += m_extensionArg.GetObjectLength();
1665 return length;
1669 BOOL H4505_CpNotifyArg::Decode(PASN_Stream & strm)
1671 if (!PreambleDecode(strm))
1672 return FALSE;
1674 if (HasOptionalField(e_parkingNumber) && !m_parkingNumber.Decode(strm))
1675 return FALSE;
1676 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
1677 return FALSE;
1679 return UnknownExtensionsDecode(strm);
1683 void H4505_CpNotifyArg::Encode(PASN_Stream & strm) const
1685 PreambleEncode(strm);
1687 if (HasOptionalField(e_parkingNumber))
1688 m_parkingNumber.Encode(strm);
1689 if (HasOptionalField(e_extensionArg))
1690 m_extensionArg.Encode(strm);
1692 UnknownExtensionsEncode(strm);
1696 PObject * H4505_CpNotifyArg::Clone() const
1698 #ifndef PASN_LEANANDMEAN
1699 PAssert(IsClass(H4505_CpNotifyArg::Class()), PInvalidCast);
1700 #endif
1701 return new H4505_CpNotifyArg(*this);
1706 // CpickupNotifyArg
1709 H4505_CpickupNotifyArg::H4505_CpickupNotifyArg(unsigned tag, PASN_Object::TagClass tagClass)
1710 : PASN_Sequence(tag, tagClass, 2, TRUE, 0)
1712 m_extensionArg.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
1716 #ifndef PASN_NOPRINTON
1717 void H4505_CpickupNotifyArg::PrintOn(ostream & strm) const
1719 int indent = strm.precision() + 2;
1720 strm << "{\n";
1721 if (HasOptionalField(e_picking_upNumber))
1722 strm << setw(indent+19) << "picking_upNumber = " << setprecision(indent) << m_picking_upNumber << '\n';
1723 if (HasOptionalField(e_extensionArg))
1724 strm << setw(indent+15) << "extensionArg = " << setprecision(indent) << m_extensionArg << '\n';
1725 strm << setw(indent-1) << setprecision(indent-2) << "}";
1727 #endif
1730 PObject::Comparison H4505_CpickupNotifyArg::Compare(const PObject & obj) const
1732 #ifndef PASN_LEANANDMEAN
1733 PAssert(PIsDescendant(&obj, H4505_CpickupNotifyArg), PInvalidCast);
1734 #endif
1735 const H4505_CpickupNotifyArg & other = (const H4505_CpickupNotifyArg &)obj;
1737 Comparison result;
1739 if ((result = m_picking_upNumber.Compare(other.m_picking_upNumber)) != EqualTo)
1740 return result;
1741 if ((result = m_extensionArg.Compare(other.m_extensionArg)) != EqualTo)
1742 return result;
1744 return PASN_Sequence::Compare(other);
1748 PINDEX H4505_CpickupNotifyArg::GetDataLength() const
1750 PINDEX length = 0;
1751 if (HasOptionalField(e_picking_upNumber))
1752 length += m_picking_upNumber.GetObjectLength();
1753 if (HasOptionalField(e_extensionArg))
1754 length += m_extensionArg.GetObjectLength();
1755 return length;
1759 BOOL H4505_CpickupNotifyArg::Decode(PASN_Stream & strm)
1761 if (!PreambleDecode(strm))
1762 return FALSE;
1764 if (HasOptionalField(e_picking_upNumber) && !m_picking_upNumber.Decode(strm))
1765 return FALSE;
1766 if (HasOptionalField(e_extensionArg) && !m_extensionArg.Decode(strm))
1767 return FALSE;
1769 return UnknownExtensionsDecode(strm);
1773 void H4505_CpickupNotifyArg::Encode(PASN_Stream & strm) const
1775 PreambleEncode(strm);
1777 if (HasOptionalField(e_picking_upNumber))
1778 m_picking_upNumber.Encode(strm);
1779 if (HasOptionalField(e_extensionArg))
1780 m_extensionArg.Encode(strm);
1782 UnknownExtensionsEncode(strm);
1786 PObject * H4505_CpickupNotifyArg::Clone() const
1788 #ifndef PASN_LEANANDMEAN
1789 PAssert(IsClass(H4505_CpickupNotifyArg::Class()), PInvalidCast);
1790 #endif
1791 return new H4505_CpickupNotifyArg(*this);
1795 #endif // if ! H323_DISABLE_H4505
1798 // End of h4505.cxx