D:/Storage/CVS_Head/h323plus/src/h245_1.cxx

00001 //
00002 // h245_1.cxx
00003 //
00004 // Code automatically generated by asnparse.
00005 //
00006 
00007 #ifdef P_USE_PRAGMA
00008 #pragma implementation "h245.h"
00009 #endif
00010 
00011 #include <ptlib.h>
00012 #include "h245.h"
00013 
00014 #define new PNEW
00015 
00016 
00017 #if ! H323_DISABLE_H245
00018 
00019 
00020 #ifndef PASN_NOPRINTON
00021 const static PASN_Names Names_H245_MultimediaSystemControlMessage[]={
00022       {"request",0}
00023      ,{"response",1}
00024      ,{"command",2}
00025      ,{"indication",3}
00026 };
00027 #endif
00028 //
00029 // MultimediaSystemControlMessage
00030 //
00031 
00032 H245_MultimediaSystemControlMessage::H245_MultimediaSystemControlMessage(unsigned tag, PASN_Object::TagClass tagClass)
00033   : PASN_Choice(tag, tagClass, 4, TRUE
00034 #ifndef PASN_NOPRINTON
00035     ,(const PASN_Names *)Names_H245_MultimediaSystemControlMessage,4
00036 #endif
00037 )
00038 {
00039 }
00040 
00041 
00042 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00043 H245_MultimediaSystemControlMessage::operator H245_RequestMessage &() const
00044 #else
00045 H245_MultimediaSystemControlMessage::operator H245_RequestMessage &()
00046 {
00047 #ifndef PASN_LEANANDMEAN
00048   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMessage), PInvalidCast);
00049 #endif
00050   return *(H245_RequestMessage *)choice;
00051 }
00052 
00053 
00054 H245_MultimediaSystemControlMessage::operator const H245_RequestMessage &() const
00055 #endif
00056 {
00057 #ifndef PASN_LEANANDMEAN
00058   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMessage), PInvalidCast);
00059 #endif
00060   return *(H245_RequestMessage *)choice;
00061 }
00062 
00063 
00064 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00065 H245_MultimediaSystemControlMessage::operator H245_ResponseMessage &() const
00066 #else
00067 H245_MultimediaSystemControlMessage::operator H245_ResponseMessage &()
00068 {
00069 #ifndef PASN_LEANANDMEAN
00070   PAssert(PIsDescendant(PAssertNULL(choice), H245_ResponseMessage), PInvalidCast);
00071 #endif
00072   return *(H245_ResponseMessage *)choice;
00073 }
00074 
00075 
00076 H245_MultimediaSystemControlMessage::operator const H245_ResponseMessage &() const
00077 #endif
00078 {
00079 #ifndef PASN_LEANANDMEAN
00080   PAssert(PIsDescendant(PAssertNULL(choice), H245_ResponseMessage), PInvalidCast);
00081 #endif
00082   return *(H245_ResponseMessage *)choice;
00083 }
00084 
00085 
00086 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00087 H245_MultimediaSystemControlMessage::operator H245_CommandMessage &() const
00088 #else
00089 H245_MultimediaSystemControlMessage::operator H245_CommandMessage &()
00090 {
00091 #ifndef PASN_LEANANDMEAN
00092   PAssert(PIsDescendant(PAssertNULL(choice), H245_CommandMessage), PInvalidCast);
00093 #endif
00094   return *(H245_CommandMessage *)choice;
00095 }
00096 
00097 
00098 H245_MultimediaSystemControlMessage::operator const H245_CommandMessage &() const
00099 #endif
00100 {
00101 #ifndef PASN_LEANANDMEAN
00102   PAssert(PIsDescendant(PAssertNULL(choice), H245_CommandMessage), PInvalidCast);
00103 #endif
00104   return *(H245_CommandMessage *)choice;
00105 }
00106 
00107 
00108 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00109 H245_MultimediaSystemControlMessage::operator H245_IndicationMessage &() const
00110 #else
00111 H245_MultimediaSystemControlMessage::operator H245_IndicationMessage &()
00112 {
00113 #ifndef PASN_LEANANDMEAN
00114   PAssert(PIsDescendant(PAssertNULL(choice), H245_IndicationMessage), PInvalidCast);
00115 #endif
00116   return *(H245_IndicationMessage *)choice;
00117 }
00118 
00119 
00120 H245_MultimediaSystemControlMessage::operator const H245_IndicationMessage &() const
00121 #endif
00122 {
00123 #ifndef PASN_LEANANDMEAN
00124   PAssert(PIsDescendant(PAssertNULL(choice), H245_IndicationMessage), PInvalidCast);
00125 #endif
00126   return *(H245_IndicationMessage *)choice;
00127 }
00128 
00129 
00130 BOOL H245_MultimediaSystemControlMessage::CreateObject()
00131 {
00132   switch (tag) {
00133     case e_request :
00134       choice = new H245_RequestMessage();
00135       return TRUE;
00136     case e_response :
00137       choice = new H245_ResponseMessage();
00138       return TRUE;
00139     case e_command :
00140       choice = new H245_CommandMessage();
00141       return TRUE;
00142     case e_indication :
00143       choice = new H245_IndicationMessage();
00144       return TRUE;
00145   }
00146 
00147   choice = NULL;
00148   return FALSE;
00149 }
00150 
00151 
00152 PObject * H245_MultimediaSystemControlMessage::Clone() const
00153 {
00154 #ifndef PASN_LEANANDMEAN
00155   PAssert(IsClass(H245_MultimediaSystemControlMessage::Class()), PInvalidCast);
00156 #endif
00157   return new H245_MultimediaSystemControlMessage(*this);
00158 }
00159 
00160 
00161 
00162 #ifndef PASN_NOPRINTON
00163 const static PASN_Names Names_H245_RequestMessage[]={
00164       {"nonStandard",0}
00165      ,{"masterSlaveDetermination",1}
00166      ,{"terminalCapabilitySet",2}
00167      ,{"openLogicalChannel",3}
00168      ,{"closeLogicalChannel",4}
00169      ,{"requestChannelClose",5}
00170      ,{"multiplexEntrySend",6}
00171      ,{"requestMultiplexEntry",7}
00172      ,{"requestMode",8}
00173      ,{"roundTripDelayRequest",9}
00174      ,{"maintenanceLoopRequest",10}
00175      ,{"communicationModeRequest",11}
00176      ,{"conferenceRequest",12}
00177      ,{"multilinkRequest",13}
00178      ,{"logicalChannelRateRequest",14}
00179      ,{"genericRequest",15}
00180 };
00181 #endif
00182 //
00183 // RequestMessage
00184 //
00185 
00186 H245_RequestMessage::H245_RequestMessage(unsigned tag, PASN_Object::TagClass tagClass)
00187   : PASN_Choice(tag, tagClass, 11, TRUE
00188 #ifndef PASN_NOPRINTON
00189     ,(const PASN_Names *)Names_H245_RequestMessage,16
00190 #endif
00191 )
00192 {
00193 }
00194 
00195 
00196 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00197 H245_RequestMessage::operator H245_NonStandardMessage &() const
00198 #else
00199 H245_RequestMessage::operator H245_NonStandardMessage &()
00200 {
00201 #ifndef PASN_LEANANDMEAN
00202   PAssert(PIsDescendant(PAssertNULL(choice), H245_NonStandardMessage), PInvalidCast);
00203 #endif
00204   return *(H245_NonStandardMessage *)choice;
00205 }
00206 
00207 
00208 H245_RequestMessage::operator const H245_NonStandardMessage &() const
00209 #endif
00210 {
00211 #ifndef PASN_LEANANDMEAN
00212   PAssert(PIsDescendant(PAssertNULL(choice), H245_NonStandardMessage), PInvalidCast);
00213 #endif
00214   return *(H245_NonStandardMessage *)choice;
00215 }
00216 
00217 
00218 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00219 H245_RequestMessage::operator H245_MasterSlaveDetermination &() const
00220 #else
00221 H245_RequestMessage::operator H245_MasterSlaveDetermination &()
00222 {
00223 #ifndef PASN_LEANANDMEAN
00224   PAssert(PIsDescendant(PAssertNULL(choice), H245_MasterSlaveDetermination), PInvalidCast);
00225 #endif
00226   return *(H245_MasterSlaveDetermination *)choice;
00227 }
00228 
00229 
00230 H245_RequestMessage::operator const H245_MasterSlaveDetermination &() const
00231 #endif
00232 {
00233 #ifndef PASN_LEANANDMEAN
00234   PAssert(PIsDescendant(PAssertNULL(choice), H245_MasterSlaveDetermination), PInvalidCast);
00235 #endif
00236   return *(H245_MasterSlaveDetermination *)choice;
00237 }
00238 
00239 
00240 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00241 H245_RequestMessage::operator H245_TerminalCapabilitySet &() const
00242 #else
00243 H245_RequestMessage::operator H245_TerminalCapabilitySet &()
00244 {
00245 #ifndef PASN_LEANANDMEAN
00246   PAssert(PIsDescendant(PAssertNULL(choice), H245_TerminalCapabilitySet), PInvalidCast);
00247 #endif
00248   return *(H245_TerminalCapabilitySet *)choice;
00249 }
00250 
00251 
00252 H245_RequestMessage::operator const H245_TerminalCapabilitySet &() const
00253 #endif
00254 {
00255 #ifndef PASN_LEANANDMEAN
00256   PAssert(PIsDescendant(PAssertNULL(choice), H245_TerminalCapabilitySet), PInvalidCast);
00257 #endif
00258   return *(H245_TerminalCapabilitySet *)choice;
00259 }
00260 
00261 
00262 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00263 H245_RequestMessage::operator H245_OpenLogicalChannel &() const
00264 #else
00265 H245_RequestMessage::operator H245_OpenLogicalChannel &()
00266 {
00267 #ifndef PASN_LEANANDMEAN
00268   PAssert(PIsDescendant(PAssertNULL(choice), H245_OpenLogicalChannel), PInvalidCast);
00269 #endif
00270   return *(H245_OpenLogicalChannel *)choice;
00271 }
00272 
00273 
00274 H245_RequestMessage::operator const H245_OpenLogicalChannel &() const
00275 #endif
00276 {
00277 #ifndef PASN_LEANANDMEAN
00278   PAssert(PIsDescendant(PAssertNULL(choice), H245_OpenLogicalChannel), PInvalidCast);
00279 #endif
00280   return *(H245_OpenLogicalChannel *)choice;
00281 }
00282 
00283 
00284 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00285 H245_RequestMessage::operator H245_CloseLogicalChannel &() const
00286 #else
00287 H245_RequestMessage::operator H245_CloseLogicalChannel &()
00288 {
00289 #ifndef PASN_LEANANDMEAN
00290   PAssert(PIsDescendant(PAssertNULL(choice), H245_CloseLogicalChannel), PInvalidCast);
00291 #endif
00292   return *(H245_CloseLogicalChannel *)choice;
00293 }
00294 
00295 
00296 H245_RequestMessage::operator const H245_CloseLogicalChannel &() const
00297 #endif
00298 {
00299 #ifndef PASN_LEANANDMEAN
00300   PAssert(PIsDescendant(PAssertNULL(choice), H245_CloseLogicalChannel), PInvalidCast);
00301 #endif
00302   return *(H245_CloseLogicalChannel *)choice;
00303 }
00304 
00305 
00306 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00307 H245_RequestMessage::operator H245_RequestChannelClose &() const
00308 #else
00309 H245_RequestMessage::operator H245_RequestChannelClose &()
00310 {
00311 #ifndef PASN_LEANANDMEAN
00312   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestChannelClose), PInvalidCast);
00313 #endif
00314   return *(H245_RequestChannelClose *)choice;
00315 }
00316 
00317 
00318 H245_RequestMessage::operator const H245_RequestChannelClose &() const
00319 #endif
00320 {
00321 #ifndef PASN_LEANANDMEAN
00322   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestChannelClose), PInvalidCast);
00323 #endif
00324   return *(H245_RequestChannelClose *)choice;
00325 }
00326 
00327 
00328 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00329 H245_RequestMessage::operator H245_MultiplexEntrySend &() const
00330 #else
00331 H245_RequestMessage::operator H245_MultiplexEntrySend &()
00332 {
00333 #ifndef PASN_LEANANDMEAN
00334   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultiplexEntrySend), PInvalidCast);
00335 #endif
00336   return *(H245_MultiplexEntrySend *)choice;
00337 }
00338 
00339 
00340 H245_RequestMessage::operator const H245_MultiplexEntrySend &() const
00341 #endif
00342 {
00343 #ifndef PASN_LEANANDMEAN
00344   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultiplexEntrySend), PInvalidCast);
00345 #endif
00346   return *(H245_MultiplexEntrySend *)choice;
00347 }
00348 
00349 
00350 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00351 H245_RequestMessage::operator H245_RequestMultiplexEntry &() const
00352 #else
00353 H245_RequestMessage::operator H245_RequestMultiplexEntry &()
00354 {
00355 #ifndef PASN_LEANANDMEAN
00356   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMultiplexEntry), PInvalidCast);
00357 #endif
00358   return *(H245_RequestMultiplexEntry *)choice;
00359 }
00360 
00361 
00362 H245_RequestMessage::operator const H245_RequestMultiplexEntry &() const
00363 #endif
00364 {
00365 #ifndef PASN_LEANANDMEAN
00366   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMultiplexEntry), PInvalidCast);
00367 #endif
00368   return *(H245_RequestMultiplexEntry *)choice;
00369 }
00370 
00371 
00372 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00373 H245_RequestMessage::operator H245_RequestMode &() const
00374 #else
00375 H245_RequestMessage::operator H245_RequestMode &()
00376 {
00377 #ifndef PASN_LEANANDMEAN
00378   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMode), PInvalidCast);
00379 #endif
00380   return *(H245_RequestMode *)choice;
00381 }
00382 
00383 
00384 H245_RequestMessage::operator const H245_RequestMode &() const
00385 #endif
00386 {
00387 #ifndef PASN_LEANANDMEAN
00388   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMode), PInvalidCast);
00389 #endif
00390   return *(H245_RequestMode *)choice;
00391 }
00392 
00393 
00394 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00395 H245_RequestMessage::operator H245_RoundTripDelayRequest &() const
00396 #else
00397 H245_RequestMessage::operator H245_RoundTripDelayRequest &()
00398 {
00399 #ifndef PASN_LEANANDMEAN
00400   PAssert(PIsDescendant(PAssertNULL(choice), H245_RoundTripDelayRequest), PInvalidCast);
00401 #endif
00402   return *(H245_RoundTripDelayRequest *)choice;
00403 }
00404 
00405 
00406 H245_RequestMessage::operator const H245_RoundTripDelayRequest &() const
00407 #endif
00408 {
00409 #ifndef PASN_LEANANDMEAN
00410   PAssert(PIsDescendant(PAssertNULL(choice), H245_RoundTripDelayRequest), PInvalidCast);
00411 #endif
00412   return *(H245_RoundTripDelayRequest *)choice;
00413 }
00414 
00415 
00416 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00417 H245_RequestMessage::operator H245_MaintenanceLoopRequest &() const
00418 #else
00419 H245_RequestMessage::operator H245_MaintenanceLoopRequest &()
00420 {
00421 #ifndef PASN_LEANANDMEAN
00422   PAssert(PIsDescendant(PAssertNULL(choice), H245_MaintenanceLoopRequest), PInvalidCast);
00423 #endif
00424   return *(H245_MaintenanceLoopRequest *)choice;
00425 }
00426 
00427 
00428 H245_RequestMessage::operator const H245_MaintenanceLoopRequest &() const
00429 #endif
00430 {
00431 #ifndef PASN_LEANANDMEAN
00432   PAssert(PIsDescendant(PAssertNULL(choice), H245_MaintenanceLoopRequest), PInvalidCast);
00433 #endif
00434   return *(H245_MaintenanceLoopRequest *)choice;
00435 }
00436 
00437 
00438 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00439 H245_RequestMessage::operator H245_CommunicationModeRequest &() const
00440 #else
00441 H245_RequestMessage::operator H245_CommunicationModeRequest &()
00442 {
00443 #ifndef PASN_LEANANDMEAN
00444   PAssert(PIsDescendant(PAssertNULL(choice), H245_CommunicationModeRequest), PInvalidCast);
00445 #endif
00446   return *(H245_CommunicationModeRequest *)choice;
00447 }
00448 
00449 
00450 H245_RequestMessage::operator const H245_CommunicationModeRequest &() const
00451 #endif
00452 {
00453 #ifndef PASN_LEANANDMEAN
00454   PAssert(PIsDescendant(PAssertNULL(choice), H245_CommunicationModeRequest), PInvalidCast);
00455 #endif
00456   return *(H245_CommunicationModeRequest *)choice;
00457 }
00458 
00459 
00460 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00461 H245_RequestMessage::operator H245_ConferenceRequest &() const
00462 #else
00463 H245_RequestMessage::operator H245_ConferenceRequest &()
00464 {
00465 #ifndef PASN_LEANANDMEAN
00466   PAssert(PIsDescendant(PAssertNULL(choice), H245_ConferenceRequest), PInvalidCast);
00467 #endif
00468   return *(H245_ConferenceRequest *)choice;
00469 }
00470 
00471 
00472 H245_RequestMessage::operator const H245_ConferenceRequest &() const
00473 #endif
00474 {
00475 #ifndef PASN_LEANANDMEAN
00476   PAssert(PIsDescendant(PAssertNULL(choice), H245_ConferenceRequest), PInvalidCast);
00477 #endif
00478   return *(H245_ConferenceRequest *)choice;
00479 }
00480 
00481 
00482 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00483 H245_RequestMessage::operator H245_MultilinkRequest &() const
00484 #else
00485 H245_RequestMessage::operator H245_MultilinkRequest &()
00486 {
00487 #ifndef PASN_LEANANDMEAN
00488   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultilinkRequest), PInvalidCast);
00489 #endif
00490   return *(H245_MultilinkRequest *)choice;
00491 }
00492 
00493 
00494 H245_RequestMessage::operator const H245_MultilinkRequest &() const
00495 #endif
00496 {
00497 #ifndef PASN_LEANANDMEAN
00498   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultilinkRequest), PInvalidCast);
00499 #endif
00500   return *(H245_MultilinkRequest *)choice;
00501 }
00502 
00503 
00504 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00505 H245_RequestMessage::operator H245_LogicalChannelRateRequest &() const
00506 #else
00507 H245_RequestMessage::operator H245_LogicalChannelRateRequest &()
00508 {
00509 #ifndef PASN_LEANANDMEAN
00510   PAssert(PIsDescendant(PAssertNULL(choice), H245_LogicalChannelRateRequest), PInvalidCast);
00511 #endif
00512   return *(H245_LogicalChannelRateRequest *)choice;
00513 }
00514 
00515 
00516 H245_RequestMessage::operator const H245_LogicalChannelRateRequest &() const
00517 #endif
00518 {
00519 #ifndef PASN_LEANANDMEAN
00520   PAssert(PIsDescendant(PAssertNULL(choice), H245_LogicalChannelRateRequest), PInvalidCast);
00521 #endif
00522   return *(H245_LogicalChannelRateRequest *)choice;
00523 }
00524 
00525 
00526 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00527 H245_RequestMessage::operator H245_GenericMessage &() const
00528 #else
00529 H245_RequestMessage::operator H245_GenericMessage &()
00530 {
00531 #ifndef PASN_LEANANDMEAN
00532   PAssert(PIsDescendant(PAssertNULL(choice), H245_GenericMessage), PInvalidCast);
00533 #endif
00534   return *(H245_GenericMessage *)choice;
00535 }
00536 
00537 
00538 H245_RequestMessage::operator const H245_GenericMessage &() const
00539 #endif
00540 {
00541 #ifndef PASN_LEANANDMEAN
00542   PAssert(PIsDescendant(PAssertNULL(choice), H245_GenericMessage), PInvalidCast);
00543 #endif
00544   return *(H245_GenericMessage *)choice;
00545 }
00546 
00547 
00548 BOOL H245_RequestMessage::CreateObject()
00549 {
00550   switch (tag) {
00551     case e_nonStandard :
00552       choice = new H245_NonStandardMessage();
00553       return TRUE;
00554     case e_masterSlaveDetermination :
00555       choice = new H245_MasterSlaveDetermination();
00556       return TRUE;
00557     case e_terminalCapabilitySet :
00558       choice = new H245_TerminalCapabilitySet();
00559       return TRUE;
00560     case e_openLogicalChannel :
00561       choice = new H245_OpenLogicalChannel();
00562       return TRUE;
00563     case e_closeLogicalChannel :
00564       choice = new H245_CloseLogicalChannel();
00565       return TRUE;
00566     case e_requestChannelClose :
00567       choice = new H245_RequestChannelClose();
00568       return TRUE;
00569     case e_multiplexEntrySend :
00570       choice = new H245_MultiplexEntrySend();
00571       return TRUE;
00572     case e_requestMultiplexEntry :
00573       choice = new H245_RequestMultiplexEntry();
00574       return TRUE;
00575     case e_requestMode :
00576       choice = new H245_RequestMode();
00577       return TRUE;
00578     case e_roundTripDelayRequest :
00579       choice = new H245_RoundTripDelayRequest();
00580       return TRUE;
00581     case e_maintenanceLoopRequest :
00582       choice = new H245_MaintenanceLoopRequest();
00583       return TRUE;
00584     case e_communicationModeRequest :
00585       choice = new H245_CommunicationModeRequest();
00586       return TRUE;
00587     case e_conferenceRequest :
00588       choice = new H245_ConferenceRequest();
00589       return TRUE;
00590     case e_multilinkRequest :
00591       choice = new H245_MultilinkRequest();
00592       return TRUE;
00593     case e_logicalChannelRateRequest :
00594       choice = new H245_LogicalChannelRateRequest();
00595       return TRUE;
00596     case e_genericRequest :
00597       choice = new H245_GenericMessage();
00598       return TRUE;
00599   }
00600 
00601   choice = NULL;
00602   return FALSE;
00603 }
00604 
00605 
00606 PObject * H245_RequestMessage::Clone() const
00607 {
00608 #ifndef PASN_LEANANDMEAN
00609   PAssert(IsClass(H245_RequestMessage::Class()), PInvalidCast);
00610 #endif
00611   return new H245_RequestMessage(*this);
00612 }
00613 
00614 
00615 
00616 #ifndef PASN_NOPRINTON
00617 const static PASN_Names Names_H245_ResponseMessage[]={
00618       {"nonStandard",0}
00619      ,{"masterSlaveDeterminationAck",1}
00620      ,{"masterSlaveDeterminationReject",2}
00621      ,{"terminalCapabilitySetAck",3}
00622      ,{"terminalCapabilitySetReject",4}
00623      ,{"openLogicalChannelAck",5}
00624      ,{"openLogicalChannelReject",6}
00625      ,{"closeLogicalChannelAck",7}
00626      ,{"requestChannelCloseAck",8}
00627      ,{"requestChannelCloseReject",9}
00628      ,{"multiplexEntrySendAck",10}
00629      ,{"multiplexEntrySendReject",11}
00630      ,{"requestMultiplexEntryAck",12}
00631      ,{"requestMultiplexEntryReject",13}
00632      ,{"requestModeAck",14}
00633      ,{"requestModeReject",15}
00634      ,{"roundTripDelayResponse",16}
00635      ,{"maintenanceLoopAck",17}
00636      ,{"maintenanceLoopReject",18}
00637      ,{"communicationModeResponse",19}
00638      ,{"conferenceResponse",20}
00639      ,{"multilinkResponse",21}
00640      ,{"logicalChannelRateAcknowledge",22}
00641      ,{"logicalChannelRateReject",23}
00642      ,{"genericResponse",24}
00643 };
00644 #endif
00645 //
00646 // ResponseMessage
00647 //
00648 
00649 H245_ResponseMessage::H245_ResponseMessage(unsigned tag, PASN_Object::TagClass tagClass)
00650   : PASN_Choice(tag, tagClass, 19, TRUE
00651 #ifndef PASN_NOPRINTON
00652     ,(const PASN_Names *)Names_H245_ResponseMessage,25
00653 #endif
00654 )
00655 {
00656 }
00657 
00658 
00659 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00660 H245_ResponseMessage::operator H245_NonStandardMessage &() const
00661 #else
00662 H245_ResponseMessage::operator H245_NonStandardMessage &()
00663 {
00664 #ifndef PASN_LEANANDMEAN
00665   PAssert(PIsDescendant(PAssertNULL(choice), H245_NonStandardMessage), PInvalidCast);
00666 #endif
00667   return *(H245_NonStandardMessage *)choice;
00668 }
00669 
00670 
00671 H245_ResponseMessage::operator const H245_NonStandardMessage &() const
00672 #endif
00673 {
00674 #ifndef PASN_LEANANDMEAN
00675   PAssert(PIsDescendant(PAssertNULL(choice), H245_NonStandardMessage), PInvalidCast);
00676 #endif
00677   return *(H245_NonStandardMessage *)choice;
00678 }
00679 
00680 
00681 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00682 H245_ResponseMessage::operator H245_MasterSlaveDeterminationAck &() const
00683 #else
00684 H245_ResponseMessage::operator H245_MasterSlaveDeterminationAck &()
00685 {
00686 #ifndef PASN_LEANANDMEAN
00687   PAssert(PIsDescendant(PAssertNULL(choice), H245_MasterSlaveDeterminationAck), PInvalidCast);
00688 #endif
00689   return *(H245_MasterSlaveDeterminationAck *)choice;
00690 }
00691 
00692 
00693 H245_ResponseMessage::operator const H245_MasterSlaveDeterminationAck &() const
00694 #endif
00695 {
00696 #ifndef PASN_LEANANDMEAN
00697   PAssert(PIsDescendant(PAssertNULL(choice), H245_MasterSlaveDeterminationAck), PInvalidCast);
00698 #endif
00699   return *(H245_MasterSlaveDeterminationAck *)choice;
00700 }
00701 
00702 
00703 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00704 H245_ResponseMessage::operator H245_MasterSlaveDeterminationReject &() const
00705 #else
00706 H245_ResponseMessage::operator H245_MasterSlaveDeterminationReject &()
00707 {
00708 #ifndef PASN_LEANANDMEAN
00709   PAssert(PIsDescendant(PAssertNULL(choice), H245_MasterSlaveDeterminationReject), PInvalidCast);
00710 #endif
00711   return *(H245_MasterSlaveDeterminationReject *)choice;
00712 }
00713 
00714 
00715 H245_ResponseMessage::operator const H245_MasterSlaveDeterminationReject &() const
00716 #endif
00717 {
00718 #ifndef PASN_LEANANDMEAN
00719   PAssert(PIsDescendant(PAssertNULL(choice), H245_MasterSlaveDeterminationReject), PInvalidCast);
00720 #endif
00721   return *(H245_MasterSlaveDeterminationReject *)choice;
00722 }
00723 
00724 
00725 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00726 H245_ResponseMessage::operator H245_TerminalCapabilitySetAck &() const
00727 #else
00728 H245_ResponseMessage::operator H245_TerminalCapabilitySetAck &()
00729 {
00730 #ifndef PASN_LEANANDMEAN
00731   PAssert(PIsDescendant(PAssertNULL(choice), H245_TerminalCapabilitySetAck), PInvalidCast);
00732 #endif
00733   return *(H245_TerminalCapabilitySetAck *)choice;
00734 }
00735 
00736 
00737 H245_ResponseMessage::operator const H245_TerminalCapabilitySetAck &() const
00738 #endif
00739 {
00740 #ifndef PASN_LEANANDMEAN
00741   PAssert(PIsDescendant(PAssertNULL(choice), H245_TerminalCapabilitySetAck), PInvalidCast);
00742 #endif
00743   return *(H245_TerminalCapabilitySetAck *)choice;
00744 }
00745 
00746 
00747 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00748 H245_ResponseMessage::operator H245_TerminalCapabilitySetReject &() const
00749 #else
00750 H245_ResponseMessage::operator H245_TerminalCapabilitySetReject &()
00751 {
00752 #ifndef PASN_LEANANDMEAN
00753   PAssert(PIsDescendant(PAssertNULL(choice), H245_TerminalCapabilitySetReject), PInvalidCast);
00754 #endif
00755   return *(H245_TerminalCapabilitySetReject *)choice;
00756 }
00757 
00758 
00759 H245_ResponseMessage::operator const H245_TerminalCapabilitySetReject &() const
00760 #endif
00761 {
00762 #ifndef PASN_LEANANDMEAN
00763   PAssert(PIsDescendant(PAssertNULL(choice), H245_TerminalCapabilitySetReject), PInvalidCast);
00764 #endif
00765   return *(H245_TerminalCapabilitySetReject *)choice;
00766 }
00767 
00768 
00769 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00770 H245_ResponseMessage::operator H245_OpenLogicalChannelAck &() const
00771 #else
00772 H245_ResponseMessage::operator H245_OpenLogicalChannelAck &()
00773 {
00774 #ifndef PASN_LEANANDMEAN
00775   PAssert(PIsDescendant(PAssertNULL(choice), H245_OpenLogicalChannelAck), PInvalidCast);
00776 #endif
00777   return *(H245_OpenLogicalChannelAck *)choice;
00778 }
00779 
00780 
00781 H245_ResponseMessage::operator const H245_OpenLogicalChannelAck &() const
00782 #endif
00783 {
00784 #ifndef PASN_LEANANDMEAN
00785   PAssert(PIsDescendant(PAssertNULL(choice), H245_OpenLogicalChannelAck), PInvalidCast);
00786 #endif
00787   return *(H245_OpenLogicalChannelAck *)choice;
00788 }
00789 
00790 
00791 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00792 H245_ResponseMessage::operator H245_OpenLogicalChannelReject &() const
00793 #else
00794 H245_ResponseMessage::operator H245_OpenLogicalChannelReject &()
00795 {
00796 #ifndef PASN_LEANANDMEAN
00797   PAssert(PIsDescendant(PAssertNULL(choice), H245_OpenLogicalChannelReject), PInvalidCast);
00798 #endif
00799   return *(H245_OpenLogicalChannelReject *)choice;
00800 }
00801 
00802 
00803 H245_ResponseMessage::operator const H245_OpenLogicalChannelReject &() const
00804 #endif
00805 {
00806 #ifndef PASN_LEANANDMEAN
00807   PAssert(PIsDescendant(PAssertNULL(choice), H245_OpenLogicalChannelReject), PInvalidCast);
00808 #endif
00809   return *(H245_OpenLogicalChannelReject *)choice;
00810 }
00811 
00812 
00813 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00814 H245_ResponseMessage::operator H245_CloseLogicalChannelAck &() const
00815 #else
00816 H245_ResponseMessage::operator H245_CloseLogicalChannelAck &()
00817 {
00818 #ifndef PASN_LEANANDMEAN
00819   PAssert(PIsDescendant(PAssertNULL(choice), H245_CloseLogicalChannelAck), PInvalidCast);
00820 #endif
00821   return *(H245_CloseLogicalChannelAck *)choice;
00822 }
00823 
00824 
00825 H245_ResponseMessage::operator const H245_CloseLogicalChannelAck &() const
00826 #endif
00827 {
00828 #ifndef PASN_LEANANDMEAN
00829   PAssert(PIsDescendant(PAssertNULL(choice), H245_CloseLogicalChannelAck), PInvalidCast);
00830 #endif
00831   return *(H245_CloseLogicalChannelAck *)choice;
00832 }
00833 
00834 
00835 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00836 H245_ResponseMessage::operator H245_RequestChannelCloseAck &() const
00837 #else
00838 H245_ResponseMessage::operator H245_RequestChannelCloseAck &()
00839 {
00840 #ifndef PASN_LEANANDMEAN
00841   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestChannelCloseAck), PInvalidCast);
00842 #endif
00843   return *(H245_RequestChannelCloseAck *)choice;
00844 }
00845 
00846 
00847 H245_ResponseMessage::operator const H245_RequestChannelCloseAck &() const
00848 #endif
00849 {
00850 #ifndef PASN_LEANANDMEAN
00851   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestChannelCloseAck), PInvalidCast);
00852 #endif
00853   return *(H245_RequestChannelCloseAck *)choice;
00854 }
00855 
00856 
00857 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00858 H245_ResponseMessage::operator H245_RequestChannelCloseReject &() const
00859 #else
00860 H245_ResponseMessage::operator H245_RequestChannelCloseReject &()
00861 {
00862 #ifndef PASN_LEANANDMEAN
00863   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestChannelCloseReject), PInvalidCast);
00864 #endif
00865   return *(H245_RequestChannelCloseReject *)choice;
00866 }
00867 
00868 
00869 H245_ResponseMessage::operator const H245_RequestChannelCloseReject &() const
00870 #endif
00871 {
00872 #ifndef PASN_LEANANDMEAN
00873   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestChannelCloseReject), PInvalidCast);
00874 #endif
00875   return *(H245_RequestChannelCloseReject *)choice;
00876 }
00877 
00878 
00879 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00880 H245_ResponseMessage::operator H245_MultiplexEntrySendAck &() const
00881 #else
00882 H245_ResponseMessage::operator H245_MultiplexEntrySendAck &()
00883 {
00884 #ifndef PASN_LEANANDMEAN
00885   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultiplexEntrySendAck), PInvalidCast);
00886 #endif
00887   return *(H245_MultiplexEntrySendAck *)choice;
00888 }
00889 
00890 
00891 H245_ResponseMessage::operator const H245_MultiplexEntrySendAck &() const
00892 #endif
00893 {
00894 #ifndef PASN_LEANANDMEAN
00895   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultiplexEntrySendAck), PInvalidCast);
00896 #endif
00897   return *(H245_MultiplexEntrySendAck *)choice;
00898 }
00899 
00900 
00901 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00902 H245_ResponseMessage::operator H245_MultiplexEntrySendReject &() const
00903 #else
00904 H245_ResponseMessage::operator H245_MultiplexEntrySendReject &()
00905 {
00906 #ifndef PASN_LEANANDMEAN
00907   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultiplexEntrySendReject), PInvalidCast);
00908 #endif
00909   return *(H245_MultiplexEntrySendReject *)choice;
00910 }
00911 
00912 
00913 H245_ResponseMessage::operator const H245_MultiplexEntrySendReject &() const
00914 #endif
00915 {
00916 #ifndef PASN_LEANANDMEAN
00917   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultiplexEntrySendReject), PInvalidCast);
00918 #endif
00919   return *(H245_MultiplexEntrySendReject *)choice;
00920 }
00921 
00922 
00923 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00924 H245_ResponseMessage::operator H245_RequestMultiplexEntryAck &() const
00925 #else
00926 H245_ResponseMessage::operator H245_RequestMultiplexEntryAck &()
00927 {
00928 #ifndef PASN_LEANANDMEAN
00929   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMultiplexEntryAck), PInvalidCast);
00930 #endif
00931   return *(H245_RequestMultiplexEntryAck *)choice;
00932 }
00933 
00934 
00935 H245_ResponseMessage::operator const H245_RequestMultiplexEntryAck &() const
00936 #endif
00937 {
00938 #ifndef PASN_LEANANDMEAN
00939   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMultiplexEntryAck), PInvalidCast);
00940 #endif
00941   return *(H245_RequestMultiplexEntryAck *)choice;
00942 }
00943 
00944 
00945 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00946 H245_ResponseMessage::operator H245_RequestMultiplexEntryReject &() const
00947 #else
00948 H245_ResponseMessage::operator H245_RequestMultiplexEntryReject &()
00949 {
00950 #ifndef PASN_LEANANDMEAN
00951   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMultiplexEntryReject), PInvalidCast);
00952 #endif
00953   return *(H245_RequestMultiplexEntryReject *)choice;
00954 }
00955 
00956 
00957 H245_ResponseMessage::operator const H245_RequestMultiplexEntryReject &() const
00958 #endif
00959 {
00960 #ifndef PASN_LEANANDMEAN
00961   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestMultiplexEntryReject), PInvalidCast);
00962 #endif
00963   return *(H245_RequestMultiplexEntryReject *)choice;
00964 }
00965 
00966 
00967 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00968 H245_ResponseMessage::operator H245_RequestModeAck &() const
00969 #else
00970 H245_ResponseMessage::operator H245_RequestModeAck &()
00971 {
00972 #ifndef PASN_LEANANDMEAN
00973   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestModeAck), PInvalidCast);
00974 #endif
00975   return *(H245_RequestModeAck *)choice;
00976 }
00977 
00978 
00979 H245_ResponseMessage::operator const H245_RequestModeAck &() const
00980 #endif
00981 {
00982 #ifndef PASN_LEANANDMEAN
00983   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestModeAck), PInvalidCast);
00984 #endif
00985   return *(H245_RequestModeAck *)choice;
00986 }
00987 
00988 
00989 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
00990 H245_ResponseMessage::operator H245_RequestModeReject &() const
00991 #else
00992 H245_ResponseMessage::operator H245_RequestModeReject &()
00993 {
00994 #ifndef PASN_LEANANDMEAN
00995   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestModeReject), PInvalidCast);
00996 #endif
00997   return *(H245_RequestModeReject *)choice;
00998 }
00999 
01000 
01001 H245_ResponseMessage::operator const H245_RequestModeReject &() const
01002 #endif
01003 {
01004 #ifndef PASN_LEANANDMEAN
01005   PAssert(PIsDescendant(PAssertNULL(choice), H245_RequestModeReject), PInvalidCast);
01006 #endif
01007   return *(H245_RequestModeReject *)choice;
01008 }
01009 
01010 
01011 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01012 H245_ResponseMessage::operator H245_RoundTripDelayResponse &() const
01013 #else
01014 H245_ResponseMessage::operator H245_RoundTripDelayResponse &()
01015 {
01016 #ifndef PASN_LEANANDMEAN
01017   PAssert(PIsDescendant(PAssertNULL(choice), H245_RoundTripDelayResponse), PInvalidCast);
01018 #endif
01019   return *(H245_RoundTripDelayResponse *)choice;
01020 }
01021 
01022 
01023 H245_ResponseMessage::operator const H245_RoundTripDelayResponse &() const
01024 #endif
01025 {
01026 #ifndef PASN_LEANANDMEAN
01027   PAssert(PIsDescendant(PAssertNULL(choice), H245_RoundTripDelayResponse), PInvalidCast);
01028 #endif
01029   return *(H245_RoundTripDelayResponse *)choice;
01030 }
01031 
01032 
01033 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01034 H245_ResponseMessage::operator H245_MaintenanceLoopAck &() const
01035 #else
01036 H245_ResponseMessage::operator H245_MaintenanceLoopAck &()
01037 {
01038 #ifndef PASN_LEANANDMEAN
01039   PAssert(PIsDescendant(PAssertNULL(choice), H245_MaintenanceLoopAck), PInvalidCast);
01040 #endif
01041   return *(H245_MaintenanceLoopAck *)choice;
01042 }
01043 
01044 
01045 H245_ResponseMessage::operator const H245_MaintenanceLoopAck &() const
01046 #endif
01047 {
01048 #ifndef PASN_LEANANDMEAN
01049   PAssert(PIsDescendant(PAssertNULL(choice), H245_MaintenanceLoopAck), PInvalidCast);
01050 #endif
01051   return *(H245_MaintenanceLoopAck *)choice;
01052 }
01053 
01054 
01055 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01056 H245_ResponseMessage::operator H245_MaintenanceLoopReject &() const
01057 #else
01058 H245_ResponseMessage::operator H245_MaintenanceLoopReject &()
01059 {
01060 #ifndef PASN_LEANANDMEAN
01061   PAssert(PIsDescendant(PAssertNULL(choice), H245_MaintenanceLoopReject), PInvalidCast);
01062 #endif
01063   return *(H245_MaintenanceLoopReject *)choice;
01064 }
01065 
01066 
01067 H245_ResponseMessage::operator const H245_MaintenanceLoopReject &() const
01068 #endif
01069 {
01070 #ifndef PASN_LEANANDMEAN
01071   PAssert(PIsDescendant(PAssertNULL(choice), H245_MaintenanceLoopReject), PInvalidCast);
01072 #endif
01073   return *(H245_MaintenanceLoopReject *)choice;
01074 }
01075 
01076 
01077 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01078 H245_ResponseMessage::operator H245_CommunicationModeResponse &() const
01079 #else
01080 H245_ResponseMessage::operator H245_CommunicationModeResponse &()
01081 {
01082 #ifndef PASN_LEANANDMEAN
01083   PAssert(PIsDescendant(PAssertNULL(choice), H245_CommunicationModeResponse), PInvalidCast);
01084 #endif
01085   return *(H245_CommunicationModeResponse *)choice;
01086 }
01087 
01088 
01089 H245_ResponseMessage::operator const H245_CommunicationModeResponse &() const
01090 #endif
01091 {
01092 #ifndef PASN_LEANANDMEAN
01093   PAssert(PIsDescendant(PAssertNULL(choice), H245_CommunicationModeResponse), PInvalidCast);
01094 #endif
01095   return *(H245_CommunicationModeResponse *)choice;
01096 }
01097 
01098 
01099 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01100 H245_ResponseMessage::operator H245_ConferenceResponse &() const
01101 #else
01102 H245_ResponseMessage::operator H245_ConferenceResponse &()
01103 {
01104 #ifndef PASN_LEANANDMEAN
01105   PAssert(PIsDescendant(PAssertNULL(choice), H245_ConferenceResponse), PInvalidCast);
01106 #endif
01107   return *(H245_ConferenceResponse *)choice;
01108 }
01109 
01110 
01111 H245_ResponseMessage::operator const H245_ConferenceResponse &() const
01112 #endif
01113 {
01114 #ifndef PASN_LEANANDMEAN
01115   PAssert(PIsDescendant(PAssertNULL(choice), H245_ConferenceResponse), PInvalidCast);
01116 #endif
01117   return *(H245_ConferenceResponse *)choice;
01118 }
01119 
01120 
01121 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01122 H245_ResponseMessage::operator H245_MultilinkResponse &() const
01123 #else
01124 H245_ResponseMessage::operator H245_MultilinkResponse &()
01125 {
01126 #ifndef PASN_LEANANDMEAN
01127   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultilinkResponse), PInvalidCast);
01128 #endif
01129   return *(H245_MultilinkResponse *)choice;
01130 }
01131 
01132 
01133 H245_ResponseMessage::operator const H245_MultilinkResponse &() const
01134 #endif
01135 {
01136 #ifndef PASN_LEANANDMEAN
01137   PAssert(PIsDescendant(PAssertNULL(choice), H245_MultilinkResponse), PInvalidCast);
01138 #endif
01139   return *(H245_MultilinkResponse *)choice;
01140 }
01141 
01142 
01143 #if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
01144 H245_ResponseMessage::operator H245_LogicalChannelRateAcknowledge &() const
01145 #else
01146 H245_