home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.muug.mb.ca
/
2014.06.ftp.muug.mb.ca.tar
/
ftp.muug.mb.ca
/
pub
/
openh323.tar.gz
/
openh323.tar
/
openh323
/
src
/
h245_2.cxx
< prev
next >
Wrap
C/C++ Source or Header
|
2004-06-22
|
257KB
|
9,469 lines
//
// h245_2.cxx
//
// Code automatically generated by asnparse.
//
#include <ptlib.h>
#include "h245.h"
#define new PNEW
#if ! H323_DISABLE_H245
//
// ArrayOf_H263VideoModeCombos
//
H245_ArrayOf_H263VideoModeCombos::H245_ArrayOf_H263VideoModeCombos(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_H263VideoModeCombos::CreateObject() const
{
return new H245_H263VideoModeCombos;
}
H245_H263VideoModeCombos & H245_ArrayOf_H263VideoModeCombos::operator[](PINDEX i) const
{
return (H245_H263VideoModeCombos &)array[i];
}
PObject * H245_ArrayOf_H263VideoModeCombos::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_H263VideoModeCombos::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_H263VideoModeCombos(*this);
}
//
// RefPictureSelection_additionalPictureMemory
//
H245_RefPictureSelection_additionalPictureMemory::H245_RefPictureSelection_additionalPictureMemory(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 6, TRUE, 0)
{
m_sqcifAdditionalPictureMemory.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
m_qcifAdditionalPictureMemory.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
m_cifAdditionalPictureMemory.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
m_cif4AdditionalPictureMemory.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
m_cif16AdditionalPictureMemory.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
m_bigCpfAdditionalPictureMemory.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
}
#ifndef PASN_NOPRINTON
void H245_RefPictureSelection_additionalPictureMemory::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
if (HasOptionalField(e_sqcifAdditionalPictureMemory))
strm << setw(indent+31) << "sqcifAdditionalPictureMemory = " << setprecision(indent) << m_sqcifAdditionalPictureMemory << '\n';
if (HasOptionalField(e_qcifAdditionalPictureMemory))
strm << setw(indent+30) << "qcifAdditionalPictureMemory = " << setprecision(indent) << m_qcifAdditionalPictureMemory << '\n';
if (HasOptionalField(e_cifAdditionalPictureMemory))
strm << setw(indent+29) << "cifAdditionalPictureMemory = " << setprecision(indent) << m_cifAdditionalPictureMemory << '\n';
if (HasOptionalField(e_cif4AdditionalPictureMemory))
strm << setw(indent+30) << "cif4AdditionalPictureMemory = " << setprecision(indent) << m_cif4AdditionalPictureMemory << '\n';
if (HasOptionalField(e_cif16AdditionalPictureMemory))
strm << setw(indent+31) << "cif16AdditionalPictureMemory = " << setprecision(indent) << m_cif16AdditionalPictureMemory << '\n';
if (HasOptionalField(e_bigCpfAdditionalPictureMemory))
strm << setw(indent+32) << "bigCpfAdditionalPictureMemory = " << setprecision(indent) << m_bigCpfAdditionalPictureMemory << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_RefPictureSelection_additionalPictureMemory::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_RefPictureSelection_additionalPictureMemory::Class()), PInvalidCast);
#endif
const H245_RefPictureSelection_additionalPictureMemory & other = (const H245_RefPictureSelection_additionalPictureMemory &)obj;
Comparison result;
if ((result = m_sqcifAdditionalPictureMemory.Compare(other.m_sqcifAdditionalPictureMemory)) != EqualTo)
return result;
if ((result = m_qcifAdditionalPictureMemory.Compare(other.m_qcifAdditionalPictureMemory)) != EqualTo)
return result;
if ((result = m_cifAdditionalPictureMemory.Compare(other.m_cifAdditionalPictureMemory)) != EqualTo)
return result;
if ((result = m_cif4AdditionalPictureMemory.Compare(other.m_cif4AdditionalPictureMemory)) != EqualTo)
return result;
if ((result = m_cif16AdditionalPictureMemory.Compare(other.m_cif16AdditionalPictureMemory)) != EqualTo)
return result;
if ((result = m_bigCpfAdditionalPictureMemory.Compare(other.m_bigCpfAdditionalPictureMemory)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_RefPictureSelection_additionalPictureMemory::GetDataLength() const
{
PINDEX length = 0;
if (HasOptionalField(e_sqcifAdditionalPictureMemory))
length += m_sqcifAdditionalPictureMemory.GetObjectLength();
if (HasOptionalField(e_qcifAdditionalPictureMemory))
length += m_qcifAdditionalPictureMemory.GetObjectLength();
if (HasOptionalField(e_cifAdditionalPictureMemory))
length += m_cifAdditionalPictureMemory.GetObjectLength();
if (HasOptionalField(e_cif4AdditionalPictureMemory))
length += m_cif4AdditionalPictureMemory.GetObjectLength();
if (HasOptionalField(e_cif16AdditionalPictureMemory))
length += m_cif16AdditionalPictureMemory.GetObjectLength();
if (HasOptionalField(e_bigCpfAdditionalPictureMemory))
length += m_bigCpfAdditionalPictureMemory.GetObjectLength();
return length;
}
BOOL H245_RefPictureSelection_additionalPictureMemory::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (HasOptionalField(e_sqcifAdditionalPictureMemory) && !m_sqcifAdditionalPictureMemory.Decode(strm))
return FALSE;
if (HasOptionalField(e_qcifAdditionalPictureMemory) && !m_qcifAdditionalPictureMemory.Decode(strm))
return FALSE;
if (HasOptionalField(e_cifAdditionalPictureMemory) && !m_cifAdditionalPictureMemory.Decode(strm))
return FALSE;
if (HasOptionalField(e_cif4AdditionalPictureMemory) && !m_cif4AdditionalPictureMemory.Decode(strm))
return FALSE;
if (HasOptionalField(e_cif16AdditionalPictureMemory) && !m_cif16AdditionalPictureMemory.Decode(strm))
return FALSE;
if (HasOptionalField(e_bigCpfAdditionalPictureMemory) && !m_bigCpfAdditionalPictureMemory.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_RefPictureSelection_additionalPictureMemory::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
if (HasOptionalField(e_sqcifAdditionalPictureMemory))
m_sqcifAdditionalPictureMemory.Encode(strm);
if (HasOptionalField(e_qcifAdditionalPictureMemory))
m_qcifAdditionalPictureMemory.Encode(strm);
if (HasOptionalField(e_cifAdditionalPictureMemory))
m_cifAdditionalPictureMemory.Encode(strm);
if (HasOptionalField(e_cif4AdditionalPictureMemory))
m_cif4AdditionalPictureMemory.Encode(strm);
if (HasOptionalField(e_cif16AdditionalPictureMemory))
m_cif16AdditionalPictureMemory.Encode(strm);
if (HasOptionalField(e_bigCpfAdditionalPictureMemory))
m_bigCpfAdditionalPictureMemory.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_RefPictureSelection_additionalPictureMemory::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RefPictureSelection_additionalPictureMemory::Class()), PInvalidCast);
#endif
return new H245_RefPictureSelection_additionalPictureMemory(*this);
}
//
// RefPictureSelection_videoBackChannelSend
//
H245_RefPictureSelection_videoBackChannelSend::H245_RefPictureSelection_videoBackChannelSend(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 5, TRUE
#ifndef PASN_NOPRINTON
, "none "
"ackMessageOnly "
"nackMessageOnly "
"ackOrNackMessageOnly "
"ackAndNackMessage "
#endif
)
{
}
BOOL H245_RefPictureSelection_videoBackChannelSend::CreateObject()
{
choice = (tag <= e_ackAndNackMessage) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RefPictureSelection_videoBackChannelSend::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RefPictureSelection_videoBackChannelSend::Class()), PInvalidCast);
#endif
return new H245_RefPictureSelection_videoBackChannelSend(*this);
}
//
// CustomPictureFormat_pixelAspectInformation
//
H245_CustomPictureFormat_pixelAspectInformation::H245_CustomPictureFormat_pixelAspectInformation(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "anyPixelAspectRatio "
"pixelAspectCode "
"extendedPAR "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_CustomPictureFormat_pixelAspectInformation::operator H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode &() const
#else
H245_CustomPictureFormat_pixelAspectInformation::operator H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::Class()), PInvalidCast);
#endif
return *(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode *)choice;
}
H245_CustomPictureFormat_pixelAspectInformation::operator const H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::Class()), PInvalidCast);
#endif
return *(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_CustomPictureFormat_pixelAspectInformation::operator H245_CustomPictureFormat_pixelAspectInformation_extendedPAR &() const
#else
H245_CustomPictureFormat_pixelAspectInformation::operator H245_CustomPictureFormat_pixelAspectInformation_extendedPAR &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::Class()), PInvalidCast);
#endif
return *(H245_CustomPictureFormat_pixelAspectInformation_extendedPAR *)choice;
}
H245_CustomPictureFormat_pixelAspectInformation::operator const H245_CustomPictureFormat_pixelAspectInformation_extendedPAR &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::Class()), PInvalidCast);
#endif
return *(H245_CustomPictureFormat_pixelAspectInformation_extendedPAR *)choice;
}
BOOL H245_CustomPictureFormat_pixelAspectInformation::CreateObject()
{
switch (tag) {
case e_anyPixelAspectRatio :
choice = new PASN_Boolean();
return TRUE;
case e_pixelAspectCode :
choice = new H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode();
return TRUE;
case e_extendedPAR :
choice = new H245_CustomPictureFormat_pixelAspectInformation_extendedPAR();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_CustomPictureFormat_pixelAspectInformation::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CustomPictureFormat_pixelAspectInformation::Class()), PInvalidCast);
#endif
return new H245_CustomPictureFormat_pixelAspectInformation(*this);
}
//
// ArrayOf_H263ModeComboFlags
//
H245_ArrayOf_H263ModeComboFlags::H245_ArrayOf_H263ModeComboFlags(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_H263ModeComboFlags::CreateObject() const
{
return new H245_H263ModeComboFlags;
}
H245_H263ModeComboFlags & H245_ArrayOf_H263ModeComboFlags::operator[](PINDEX i) const
{
return (H245_H263ModeComboFlags &)array[i];
}
PObject * H245_ArrayOf_H263ModeComboFlags::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_H263ModeComboFlags::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_H263ModeComboFlags(*this);
}
//
// AudioCapability_g7231
//
H245_AudioCapability_g7231::H245_AudioCapability_g7231(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
m_maxAl_sduAudioFrames.SetConstraints(PASN_Object::FixedConstraint, 1, 256);
}
#ifndef PASN_NOPRINTON
void H245_AudioCapability_g7231::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+23) << "maxAl_sduAudioFrames = " << setprecision(indent) << m_maxAl_sduAudioFrames << '\n';
strm << setw(indent+21) << "silenceSuppression = " << setprecision(indent) << m_silenceSuppression << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_AudioCapability_g7231::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_AudioCapability_g7231::Class()), PInvalidCast);
#endif
const H245_AudioCapability_g7231 & other = (const H245_AudioCapability_g7231 &)obj;
Comparison result;
if ((result = m_maxAl_sduAudioFrames.Compare(other.m_maxAl_sduAudioFrames)) != EqualTo)
return result;
if ((result = m_silenceSuppression.Compare(other.m_silenceSuppression)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_AudioCapability_g7231::GetDataLength() const
{
PINDEX length = 0;
length += m_maxAl_sduAudioFrames.GetObjectLength();
length += m_silenceSuppression.GetObjectLength();
return length;
}
BOOL H245_AudioCapability_g7231::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_maxAl_sduAudioFrames.Decode(strm))
return FALSE;
if (!m_silenceSuppression.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_AudioCapability_g7231::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_maxAl_sduAudioFrames.Encode(strm);
m_silenceSuppression.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_AudioCapability_g7231::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_AudioCapability_g7231::Class()), PInvalidCast);
#endif
return new H245_AudioCapability_g7231(*this);
}
//
// G7231AnnexCCapability_g723AnnexCAudioMode
//
H245_G7231AnnexCCapability_g723AnnexCAudioMode::H245_G7231AnnexCCapability_g723AnnexCAudioMode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_highRateMode0.SetConstraints(PASN_Object::FixedConstraint, 27, 78);
m_highRateMode1.SetConstraints(PASN_Object::FixedConstraint, 27, 78);
m_lowRateMode0.SetConstraints(PASN_Object::FixedConstraint, 23, 66);
m_lowRateMode1.SetConstraints(PASN_Object::FixedConstraint, 23, 66);
m_sidMode0.SetConstraints(PASN_Object::FixedConstraint, 6, 17);
m_sidMode1.SetConstraints(PASN_Object::FixedConstraint, 6, 17);
}
#ifndef PASN_NOPRINTON
void H245_G7231AnnexCCapability_g723AnnexCAudioMode::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+16) << "highRateMode0 = " << setprecision(indent) << m_highRateMode0 << '\n';
strm << setw(indent+16) << "highRateMode1 = " << setprecision(indent) << m_highRateMode1 << '\n';
strm << setw(indent+15) << "lowRateMode0 = " << setprecision(indent) << m_lowRateMode0 << '\n';
strm << setw(indent+15) << "lowRateMode1 = " << setprecision(indent) << m_lowRateMode1 << '\n';
strm << setw(indent+11) << "sidMode0 = " << setprecision(indent) << m_sidMode0 << '\n';
strm << setw(indent+11) << "sidMode1 = " << setprecision(indent) << m_sidMode1 << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_G7231AnnexCCapability_g723AnnexCAudioMode::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_G7231AnnexCCapability_g723AnnexCAudioMode::Class()), PInvalidCast);
#endif
const H245_G7231AnnexCCapability_g723AnnexCAudioMode & other = (const H245_G7231AnnexCCapability_g723AnnexCAudioMode &)obj;
Comparison result;
if ((result = m_highRateMode0.Compare(other.m_highRateMode0)) != EqualTo)
return result;
if ((result = m_highRateMode1.Compare(other.m_highRateMode1)) != EqualTo)
return result;
if ((result = m_lowRateMode0.Compare(other.m_lowRateMode0)) != EqualTo)
return result;
if ((result = m_lowRateMode1.Compare(other.m_lowRateMode1)) != EqualTo)
return result;
if ((result = m_sidMode0.Compare(other.m_sidMode0)) != EqualTo)
return result;
if ((result = m_sidMode1.Compare(other.m_sidMode1)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_G7231AnnexCCapability_g723AnnexCAudioMode::GetDataLength() const
{
PINDEX length = 0;
length += m_highRateMode0.GetObjectLength();
length += m_highRateMode1.GetObjectLength();
length += m_lowRateMode0.GetObjectLength();
length += m_lowRateMode1.GetObjectLength();
length += m_sidMode0.GetObjectLength();
length += m_sidMode1.GetObjectLength();
return length;
}
BOOL H245_G7231AnnexCCapability_g723AnnexCAudioMode::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_highRateMode0.Decode(strm))
return FALSE;
if (!m_highRateMode1.Decode(strm))
return FALSE;
if (!m_lowRateMode0.Decode(strm))
return FALSE;
if (!m_lowRateMode1.Decode(strm))
return FALSE;
if (!m_sidMode0.Decode(strm))
return FALSE;
if (!m_sidMode1.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_G7231AnnexCCapability_g723AnnexCAudioMode::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_highRateMode0.Encode(strm);
m_highRateMode1.Encode(strm);
m_lowRateMode0.Encode(strm);
m_lowRateMode1.Encode(strm);
m_sidMode0.Encode(strm);
m_sidMode1.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_G7231AnnexCCapability_g723AnnexCAudioMode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_G7231AnnexCCapability_g723AnnexCAudioMode::Class()), PInvalidCast);
#endif
return new H245_G7231AnnexCCapability_g723AnnexCAudioMode(*this);
}
//
// DataApplicationCapability_application
//
H245_DataApplicationCapability_application::H245_DataApplicationCapability_application(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 10, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"t120 "
"dsm_cc "
"userData "
"t84 "
"t434 "
"h224 "
"nlpid "
"dsvdControl "
"h222DataPartitioning "
"t30fax "
"t140 "
"t38fax "
"genericDataCapability "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataApplicationCapability_application::operator H245_NonStandardParameter &() const
#else
H245_DataApplicationCapability_application::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_DataApplicationCapability_application::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataApplicationCapability_application::operator H245_DataProtocolCapability &() const
#else
H245_DataApplicationCapability_application::operator H245_DataProtocolCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataProtocolCapability::Class()), PInvalidCast);
#endif
return *(H245_DataProtocolCapability *)choice;
}
H245_DataApplicationCapability_application::operator const H245_DataProtocolCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataProtocolCapability::Class()), PInvalidCast);
#endif
return *(H245_DataProtocolCapability *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataApplicationCapability_application::operator H245_DataApplicationCapability_application_t84 &() const
#else
H245_DataApplicationCapability_application::operator H245_DataApplicationCapability_application_t84 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability_application_t84::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability_application_t84 *)choice;
}
H245_DataApplicationCapability_application::operator const H245_DataApplicationCapability_application_t84 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability_application_t84::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability_application_t84 *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataApplicationCapability_application::operator H245_DataApplicationCapability_application_nlpid &() const
#else
H245_DataApplicationCapability_application::operator H245_DataApplicationCapability_application_nlpid &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability_application_nlpid::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability_application_nlpid *)choice;
}
H245_DataApplicationCapability_application::operator const H245_DataApplicationCapability_application_nlpid &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability_application_nlpid::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability_application_nlpid *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataApplicationCapability_application::operator H245_DataApplicationCapability_application_t38fax &() const
#else
H245_DataApplicationCapability_application::operator H245_DataApplicationCapability_application_t38fax &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability_application_t38fax::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability_application_t38fax *)choice;
}
H245_DataApplicationCapability_application::operator const H245_DataApplicationCapability_application_t38fax &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability_application_t38fax::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability_application_t38fax *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataApplicationCapability_application::operator H245_GenericCapability &() const
#else
H245_DataApplicationCapability_application::operator H245_GenericCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_GenericCapability::Class()), PInvalidCast);
#endif
return *(H245_GenericCapability *)choice;
}
H245_DataApplicationCapability_application::operator const H245_GenericCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_GenericCapability::Class()), PInvalidCast);
#endif
return *(H245_GenericCapability *)choice;
}
BOOL H245_DataApplicationCapability_application::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_t120 :
case e_dsm_cc :
case e_userData :
case e_t434 :
case e_h224 :
case e_h222DataPartitioning :
case e_t30fax :
case e_t140 :
choice = new H245_DataProtocolCapability();
return TRUE;
case e_t84 :
choice = new H245_DataApplicationCapability_application_t84();
return TRUE;
case e_nlpid :
choice = new H245_DataApplicationCapability_application_nlpid();
return TRUE;
case e_dsvdControl :
choice = new PASN_Null();
return TRUE;
case e_t38fax :
choice = new H245_DataApplicationCapability_application_t38fax();
return TRUE;
case e_genericDataCapability :
choice = new H245_GenericCapability();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_DataApplicationCapability_application::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_DataApplicationCapability_application::Class()), PInvalidCast);
#endif
return new H245_DataApplicationCapability_application(*this);
}
//
// DataProtocolCapability_v76wCompression
//
H245_DataProtocolCapability_v76wCompression::H245_DataProtocolCapability_v76wCompression(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "transmitCompression "
"receiveCompression "
"transmitAndReceiveCompression "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataProtocolCapability_v76wCompression::operator H245_CompressionType &() const
#else
H245_DataProtocolCapability_v76wCompression::operator H245_CompressionType &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CompressionType::Class()), PInvalidCast);
#endif
return *(H245_CompressionType *)choice;
}
H245_DataProtocolCapability_v76wCompression::operator const H245_CompressionType &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CompressionType::Class()), PInvalidCast);
#endif
return *(H245_CompressionType *)choice;
}
BOOL H245_DataProtocolCapability_v76wCompression::CreateObject()
{
switch (tag) {
case e_transmitCompression :
case e_receiveCompression :
case e_transmitAndReceiveCompression :
choice = new H245_CompressionType();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_DataProtocolCapability_v76wCompression::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_DataProtocolCapability_v76wCompression::Class()), PInvalidCast);
#endif
return new H245_DataProtocolCapability_v76wCompression(*this);
}
//
// T84Profile_t84Restricted
//
H245_T84Profile_t84Restricted::H245_T84Profile_t84Restricted(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_T84Profile_t84Restricted::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+7) << "qcif = " << setprecision(indent) << m_qcif << '\n';
strm << setw(indent+6) << "cif = " << setprecision(indent) << m_cif << '\n';
strm << setw(indent+13) << "ccir601Seq = " << setprecision(indent) << m_ccir601Seq << '\n';
strm << setw(indent+14) << "ccir601Prog = " << setprecision(indent) << m_ccir601Prog << '\n';
strm << setw(indent+10) << "hdtvSeq = " << setprecision(indent) << m_hdtvSeq << '\n';
strm << setw(indent+11) << "hdtvProg = " << setprecision(indent) << m_hdtvProg << '\n';
strm << setw(indent+18) << "g3FacsMH200x100 = " << setprecision(indent) << m_g3FacsMH200x100 << '\n';
strm << setw(indent+18) << "g3FacsMH200x200 = " << setprecision(indent) << m_g3FacsMH200x200 << '\n';
strm << setw(indent+19) << "g4FacsMMR200x100 = " << setprecision(indent) << m_g4FacsMMR200x100 << '\n';
strm << setw(indent+19) << "g4FacsMMR200x200 = " << setprecision(indent) << m_g4FacsMMR200x200 << '\n';
strm << setw(indent+17) << "jbig200x200Seq = " << setprecision(indent) << m_jbig200x200Seq << '\n';
strm << setw(indent+18) << "jbig200x200Prog = " << setprecision(indent) << m_jbig200x200Prog << '\n';
strm << setw(indent+17) << "jbig300x300Seq = " << setprecision(indent) << m_jbig300x300Seq << '\n';
strm << setw(indent+18) << "jbig300x300Prog = " << setprecision(indent) << m_jbig300x300Prog << '\n';
strm << setw(indent+14) << "digPhotoLow = " << setprecision(indent) << m_digPhotoLow << '\n';
strm << setw(indent+17) << "digPhotoMedSeq = " << setprecision(indent) << m_digPhotoMedSeq << '\n';
strm << setw(indent+18) << "digPhotoMedProg = " << setprecision(indent) << m_digPhotoMedProg << '\n';
strm << setw(indent+18) << "digPhotoHighSeq = " << setprecision(indent) << m_digPhotoHighSeq << '\n';
strm << setw(indent+19) << "digPhotoHighProg = " << setprecision(indent) << m_digPhotoHighProg << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_T84Profile_t84Restricted::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_T84Profile_t84Restricted::Class()), PInvalidCast);
#endif
const H245_T84Profile_t84Restricted & other = (const H245_T84Profile_t84Restricted &)obj;
Comparison result;
if ((result = m_qcif.Compare(other.m_qcif)) != EqualTo)
return result;
if ((result = m_cif.Compare(other.m_cif)) != EqualTo)
return result;
if ((result = m_ccir601Seq.Compare(other.m_ccir601Seq)) != EqualTo)
return result;
if ((result = m_ccir601Prog.Compare(other.m_ccir601Prog)) != EqualTo)
return result;
if ((result = m_hdtvSeq.Compare(other.m_hdtvSeq)) != EqualTo)
return result;
if ((result = m_hdtvProg.Compare(other.m_hdtvProg)) != EqualTo)
return result;
if ((result = m_g3FacsMH200x100.Compare(other.m_g3FacsMH200x100)) != EqualTo)
return result;
if ((result = m_g3FacsMH200x200.Compare(other.m_g3FacsMH200x200)) != EqualTo)
return result;
if ((result = m_g4FacsMMR200x100.Compare(other.m_g4FacsMMR200x100)) != EqualTo)
return result;
if ((result = m_g4FacsMMR200x200.Compare(other.m_g4FacsMMR200x200)) != EqualTo)
return result;
if ((result = m_jbig200x200Seq.Compare(other.m_jbig200x200Seq)) != EqualTo)
return result;
if ((result = m_jbig200x200Prog.Compare(other.m_jbig200x200Prog)) != EqualTo)
return result;
if ((result = m_jbig300x300Seq.Compare(other.m_jbig300x300Seq)) != EqualTo)
return result;
if ((result = m_jbig300x300Prog.Compare(other.m_jbig300x300Prog)) != EqualTo)
return result;
if ((result = m_digPhotoLow.Compare(other.m_digPhotoLow)) != EqualTo)
return result;
if ((result = m_digPhotoMedSeq.Compare(other.m_digPhotoMedSeq)) != EqualTo)
return result;
if ((result = m_digPhotoMedProg.Compare(other.m_digPhotoMedProg)) != EqualTo)
return result;
if ((result = m_digPhotoHighSeq.Compare(other.m_digPhotoHighSeq)) != EqualTo)
return result;
if ((result = m_digPhotoHighProg.Compare(other.m_digPhotoHighProg)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_T84Profile_t84Restricted::GetDataLength() const
{
PINDEX length = 0;
length += m_qcif.GetObjectLength();
length += m_cif.GetObjectLength();
length += m_ccir601Seq.GetObjectLength();
length += m_ccir601Prog.GetObjectLength();
length += m_hdtvSeq.GetObjectLength();
length += m_hdtvProg.GetObjectLength();
length += m_g3FacsMH200x100.GetObjectLength();
length += m_g3FacsMH200x200.GetObjectLength();
length += m_g4FacsMMR200x100.GetObjectLength();
length += m_g4FacsMMR200x200.GetObjectLength();
length += m_jbig200x200Seq.GetObjectLength();
length += m_jbig200x200Prog.GetObjectLength();
length += m_jbig300x300Seq.GetObjectLength();
length += m_jbig300x300Prog.GetObjectLength();
length += m_digPhotoLow.GetObjectLength();
length += m_digPhotoMedSeq.GetObjectLength();
length += m_digPhotoMedProg.GetObjectLength();
length += m_digPhotoHighSeq.GetObjectLength();
length += m_digPhotoHighProg.GetObjectLength();
return length;
}
BOOL H245_T84Profile_t84Restricted::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_qcif.Decode(strm))
return FALSE;
if (!m_cif.Decode(strm))
return FALSE;
if (!m_ccir601Seq.Decode(strm))
return FALSE;
if (!m_ccir601Prog.Decode(strm))
return FALSE;
if (!m_hdtvSeq.Decode(strm))
return FALSE;
if (!m_hdtvProg.Decode(strm))
return FALSE;
if (!m_g3FacsMH200x100.Decode(strm))
return FALSE;
if (!m_g3FacsMH200x200.Decode(strm))
return FALSE;
if (!m_g4FacsMMR200x100.Decode(strm))
return FALSE;
if (!m_g4FacsMMR200x200.Decode(strm))
return FALSE;
if (!m_jbig200x200Seq.Decode(strm))
return FALSE;
if (!m_jbig200x200Prog.Decode(strm))
return FALSE;
if (!m_jbig300x300Seq.Decode(strm))
return FALSE;
if (!m_jbig300x300Prog.Decode(strm))
return FALSE;
if (!m_digPhotoLow.Decode(strm))
return FALSE;
if (!m_digPhotoMedSeq.Decode(strm))
return FALSE;
if (!m_digPhotoMedProg.Decode(strm))
return FALSE;
if (!m_digPhotoHighSeq.Decode(strm))
return FALSE;
if (!m_digPhotoHighProg.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_T84Profile_t84Restricted::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_qcif.Encode(strm);
m_cif.Encode(strm);
m_ccir601Seq.Encode(strm);
m_ccir601Prog.Encode(strm);
m_hdtvSeq.Encode(strm);
m_hdtvProg.Encode(strm);
m_g3FacsMH200x100.Encode(strm);
m_g3FacsMH200x200.Encode(strm);
m_g4FacsMMR200x100.Encode(strm);
m_g4FacsMMR200x200.Encode(strm);
m_jbig200x200Seq.Encode(strm);
m_jbig200x200Prog.Encode(strm);
m_jbig300x300Seq.Encode(strm);
m_jbig300x300Prog.Encode(strm);
m_digPhotoLow.Encode(strm);
m_digPhotoMedSeq.Encode(strm);
m_digPhotoMedProg.Encode(strm);
m_digPhotoHighSeq.Encode(strm);
m_digPhotoHighProg.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_T84Profile_t84Restricted::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_T84Profile_t84Restricted::Class()), PInvalidCast);
#endif
return new H245_T84Profile_t84Restricted(*this);
}
//
// T38FaxUdpOptions_t38FaxUdpEC
//
H245_T38FaxUdpOptions_t38FaxUdpEC::H245_T38FaxUdpOptions_t38FaxUdpEC(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "t38UDPFEC "
"t38UDPRedundancy "
#endif
)
{
}
BOOL H245_T38FaxUdpOptions_t38FaxUdpEC::CreateObject()
{
choice = (tag <= e_t38UDPRedundancy) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_T38FaxUdpOptions_t38FaxUdpEC::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_T38FaxUdpOptions_t38FaxUdpEC::Class()), PInvalidCast);
#endif
return new H245_T38FaxUdpOptions_t38FaxUdpEC(*this);
}
//
// ArrayOf_NonStandardParameter
//
H245_ArrayOf_NonStandardParameter::H245_ArrayOf_NonStandardParameter(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_NonStandardParameter::CreateObject() const
{
return new H245_NonStandardParameter;
}
H245_NonStandardParameter & H245_ArrayOf_NonStandardParameter::operator[](PINDEX i) const
{
return (H245_NonStandardParameter &)array[i];
}
PObject * H245_ArrayOf_NonStandardParameter::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_NonStandardParameter::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_NonStandardParameter(*this);
}
//
// ArrayOf_GenericParameter
//
H245_ArrayOf_GenericParameter::H245_ArrayOf_GenericParameter(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_GenericParameter::CreateObject() const
{
return new H245_GenericParameter;
}
H245_GenericParameter & H245_ArrayOf_GenericParameter::operator[](PINDEX i) const
{
return (H245_GenericParameter &)array[i];
}
PObject * H245_ArrayOf_GenericParameter::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_GenericParameter::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_GenericParameter(*this);
}
//
// ArrayOf_ParameterIdentifier
//
H245_ArrayOf_ParameterIdentifier::H245_ArrayOf_ParameterIdentifier(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_ParameterIdentifier::CreateObject() const
{
return new H245_ParameterIdentifier;
}
H245_ParameterIdentifier & H245_ArrayOf_ParameterIdentifier::operator[](PINDEX i) const
{
return (H245_ParameterIdentifier &)array[i];
}
PObject * H245_ArrayOf_ParameterIdentifier::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_ParameterIdentifier::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_ParameterIdentifier(*this);
}
//
// NetworkAccessParameters_distribution
//
H245_NetworkAccessParameters_distribution::H245_NetworkAccessParameters_distribution(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "unicast "
"multicast "
#endif
)
{
}
BOOL H245_NetworkAccessParameters_distribution::CreateObject()
{
choice = (tag <= e_multicast) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_NetworkAccessParameters_distribution::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NetworkAccessParameters_distribution::Class()), PInvalidCast);
#endif
return new H245_NetworkAccessParameters_distribution(*this);
}
//
// NetworkAccessParameters_networkAddress
//
H245_NetworkAccessParameters_networkAddress::H245_NetworkAccessParameters_networkAddress(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "q2931Address "
"e164Address "
"localAreaAddress "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_NetworkAccessParameters_networkAddress::operator H245_Q2931Address &() const
#else
H245_NetworkAccessParameters_networkAddress::operator H245_Q2931Address &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_Q2931Address::Class()), PInvalidCast);
#endif
return *(H245_Q2931Address *)choice;
}
H245_NetworkAccessParameters_networkAddress::operator const H245_Q2931Address &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_Q2931Address::Class()), PInvalidCast);
#endif
return *(H245_Q2931Address *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_NetworkAccessParameters_networkAddress::operator H245_TransportAddress &() const
#else
H245_NetworkAccessParameters_networkAddress::operator H245_TransportAddress &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_TransportAddress::Class()), PInvalidCast);
#endif
return *(H245_TransportAddress *)choice;
}
H245_NetworkAccessParameters_networkAddress::operator const H245_TransportAddress &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_TransportAddress::Class()), PInvalidCast);
#endif
return *(H245_TransportAddress *)choice;
}
BOOL H245_NetworkAccessParameters_networkAddress::CreateObject()
{
switch (tag) {
case e_q2931Address :
choice = new H245_Q2931Address();
return TRUE;
case e_e164Address :
choice = new PASN_IA5String();
choice->SetConstraints(PASN_Object::FixedConstraint, 1, 128);
choice->SetCharacterSet(PASN_Object::FixedConstraint, "0123456789#*,");
return TRUE;
case e_localAreaAddress :
choice = new H245_TransportAddress();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_NetworkAccessParameters_networkAddress::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NetworkAccessParameters_networkAddress::Class()), PInvalidCast);
#endif
return new H245_NetworkAccessParameters_networkAddress(*this);
}
//
// NetworkAccessParameters_t120SetupProcedure
//
H245_NetworkAccessParameters_t120SetupProcedure::H245_NetworkAccessParameters_t120SetupProcedure(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "originateCall "
"waitForCall "
"issueQuery "
#endif
)
{
}
BOOL H245_NetworkAccessParameters_t120SetupProcedure::CreateObject()
{
choice = (tag <= e_issueQuery) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_NetworkAccessParameters_t120SetupProcedure::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NetworkAccessParameters_t120SetupProcedure::Class()), PInvalidCast);
#endif
return new H245_NetworkAccessParameters_t120SetupProcedure(*this);
}
//
// Q2931Address_address
//
H245_Q2931Address_address::H245_Q2931Address_address(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "internationalNumber "
"nsapAddress "
#endif
)
{
}
BOOL H245_Q2931Address_address::CreateObject()
{
switch (tag) {
case e_internationalNumber :
choice = new PASN_NumericString();
choice->SetConstraints(PASN_Object::FixedConstraint, 1, 16);
return TRUE;
case e_nsapAddress :
choice = new PASN_OctetString();
choice->SetConstraints(PASN_Object::FixedConstraint, 1, 20);
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_Q2931Address_address::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_Q2931Address_address::Class()), PInvalidCast);
#endif
return new H245_Q2931Address_address(*this);
}
//
// H235Media_mediaType
//
H245_H235Media_mediaType::H245_H235Media_mediaType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"videoData "
"audioData "
"data "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Media_mediaType::operator H245_NonStandardParameter &() const
#else
H245_H235Media_mediaType::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_H235Media_mediaType::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Media_mediaType::operator H245_VideoCapability &() const
#else
H245_H235Media_mediaType::operator H245_VideoCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoCapability::Class()), PInvalidCast);
#endif
return *(H245_VideoCapability *)choice;
}
H245_H235Media_mediaType::operator const H245_VideoCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoCapability::Class()), PInvalidCast);
#endif
return *(H245_VideoCapability *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Media_mediaType::operator H245_AudioCapability &() const
#else
H245_H235Media_mediaType::operator H245_AudioCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioCapability::Class()), PInvalidCast);
#endif
return *(H245_AudioCapability *)choice;
}
H245_H235Media_mediaType::operator const H245_AudioCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioCapability::Class()), PInvalidCast);
#endif
return *(H245_AudioCapability *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Media_mediaType::operator H245_DataApplicationCapability &() const
#else
H245_H235Media_mediaType::operator H245_DataApplicationCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability *)choice;
}
H245_H235Media_mediaType::operator const H245_DataApplicationCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability *)choice;
}
BOOL H245_H235Media_mediaType::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_videoData :
choice = new H245_VideoCapability();
return TRUE;
case e_audioData :
choice = new H245_AudioCapability();
return TRUE;
case e_data :
choice = new H245_DataApplicationCapability();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H235Media_mediaType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H235Media_mediaType::Class()), PInvalidCast);
#endif
return new H245_H235Media_mediaType(*this);
}
//
// H223LogicalChannelParameters_adaptationLayerType
//
H245_H223LogicalChannelParameters_adaptationLayerType::H245_H223LogicalChannelParameters_adaptationLayerType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 6, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"al1Framed "
"al1NotFramed "
"al2WithoutSequenceNumbers "
"al2WithSequenceNumbers "
"al3 "
"al1M "
"al2M "
"al3M "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_NonStandardParameter &() const
#else
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_H223LogicalChannelParameters_adaptationLayerType::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223LogicalChannelParameters_adaptationLayerType_al3 &() const
#else
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223LogicalChannelParameters_adaptationLayerType_al3 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223LogicalChannelParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
return *(H245_H223LogicalChannelParameters_adaptationLayerType_al3 *)choice;
}
H245_H223LogicalChannelParameters_adaptationLayerType::operator const H245_H223LogicalChannelParameters_adaptationLayerType_al3 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223LogicalChannelParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
return *(H245_H223LogicalChannelParameters_adaptationLayerType_al3 *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223AL1MParameters &() const
#else
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223AL1MParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL1MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL1MParameters *)choice;
}
H245_H223LogicalChannelParameters_adaptationLayerType::operator const H245_H223AL1MParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL1MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL1MParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223AL2MParameters &() const
#else
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223AL2MParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL2MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL2MParameters *)choice;
}
H245_H223LogicalChannelParameters_adaptationLayerType::operator const H245_H223AL2MParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL2MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL2MParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223AL3MParameters &() const
#else
H245_H223LogicalChannelParameters_adaptationLayerType::operator H245_H223AL3MParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL3MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL3MParameters *)choice;
}
H245_H223LogicalChannelParameters_adaptationLayerType::operator const H245_H223AL3MParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL3MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL3MParameters *)choice;
}
BOOL H245_H223LogicalChannelParameters_adaptationLayerType::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_al1Framed :
case e_al1NotFramed :
case e_al2WithoutSequenceNumbers :
case e_al2WithSequenceNumbers :
choice = new PASN_Null();
return TRUE;
case e_al3 :
choice = new H245_H223LogicalChannelParameters_adaptationLayerType_al3();
return TRUE;
case e_al1M :
choice = new H245_H223AL1MParameters();
return TRUE;
case e_al2M :
choice = new H245_H223AL2MParameters();
return TRUE;
case e_al3M :
choice = new H245_H223AL3MParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H223LogicalChannelParameters_adaptationLayerType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223LogicalChannelParameters_adaptationLayerType::Class()), PInvalidCast);
#endif
return new H245_H223LogicalChannelParameters_adaptationLayerType(*this);
}
//
// H223AL1MParameters_transferMode
//
H245_H223AL1MParameters_transferMode::H245_H223AL1MParameters_transferMode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "framed "
"unframed "
#endif
)
{
}
BOOL H245_H223AL1MParameters_transferMode::CreateObject()
{
choice = (tag <= e_unframed) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223AL1MParameters_transferMode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL1MParameters_transferMode::Class()), PInvalidCast);
#endif
return new H245_H223AL1MParameters_transferMode(*this);
}
//
// H223AL1MParameters_headerFEC
//
H245_H223AL1MParameters_headerFEC::H245_H223AL1MParameters_headerFEC(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "sebch16_7 "
"golay24_12 "
#endif
)
{
}
BOOL H245_H223AL1MParameters_headerFEC::CreateObject()
{
choice = (tag <= e_golay24_12) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223AL1MParameters_headerFEC::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL1MParameters_headerFEC::Class()), PInvalidCast);
#endif
return new H245_H223AL1MParameters_headerFEC(*this);
}
//
// H223AL1MParameters_crcLength
//
H245_H223AL1MParameters_crcLength::H245_H223AL1MParameters_crcLength(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "crc4bit "
"crc12bit "
"crc20bit "
"crc28bit "
"crc8bit "
"crc16bit "
"crc32bit "
"crcNotUsed "
#endif
)
{
}
BOOL H245_H223AL1MParameters_crcLength::CreateObject()
{
choice = (tag <= e_crcNotUsed) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223AL1MParameters_crcLength::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL1MParameters_crcLength::Class()), PInvalidCast);
#endif
return new H245_H223AL1MParameters_crcLength(*this);
}
//
// H223AL1MParameters_arqType
//
H245_H223AL1MParameters_arqType::H245_H223AL1MParameters_arqType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noArq "
"typeIArq "
"typeIIArq "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223AL1MParameters_arqType::operator H245_H223AnnexCArqParameters &() const
#else
H245_H223AL1MParameters_arqType::operator H245_H223AnnexCArqParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AnnexCArqParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AnnexCArqParameters *)choice;
}
H245_H223AL1MParameters_arqType::operator const H245_H223AnnexCArqParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AnnexCArqParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AnnexCArqParameters *)choice;
}
BOOL H245_H223AL1MParameters_arqType::CreateObject()
{
switch (tag) {
case e_noArq :
choice = new PASN_Null();
return TRUE;
case e_typeIArq :
case e_typeIIArq :
choice = new H245_H223AnnexCArqParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H223AL1MParameters_arqType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL1MParameters_arqType::Class()), PInvalidCast);
#endif
return new H245_H223AL1MParameters_arqType(*this);
}
//
// H223AL2MParameters_headerFEC
//
H245_H223AL2MParameters_headerFEC::H245_H223AL2MParameters_headerFEC(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "sebch16_5 "
"golay24_12 "
#endif
)
{
}
BOOL H245_H223AL2MParameters_headerFEC::CreateObject()
{
choice = (tag <= e_golay24_12) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223AL2MParameters_headerFEC::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL2MParameters_headerFEC::Class()), PInvalidCast);
#endif
return new H245_H223AL2MParameters_headerFEC(*this);
}
//
// H223AL3MParameters_headerFormat
//
H245_H223AL3MParameters_headerFormat::H245_H223AL3MParameters_headerFormat(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "sebch16_7 "
"golay24_12 "
#endif
)
{
}
BOOL H245_H223AL3MParameters_headerFormat::CreateObject()
{
choice = (tag <= e_golay24_12) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223AL3MParameters_headerFormat::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL3MParameters_headerFormat::Class()), PInvalidCast);
#endif
return new H245_H223AL3MParameters_headerFormat(*this);
}
//
// H223AL3MParameters_crcLength
//
H245_H223AL3MParameters_crcLength::H245_H223AL3MParameters_crcLength(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "crc4bit "
"crc12bit "
"crc20bit "
"crc28bit "
"crc8bit "
"crc16bit "
"crc32bit "
"crcNotUsed "
#endif
)
{
}
BOOL H245_H223AL3MParameters_crcLength::CreateObject()
{
choice = (tag <= e_crcNotUsed) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223AL3MParameters_crcLength::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL3MParameters_crcLength::Class()), PInvalidCast);
#endif
return new H245_H223AL3MParameters_crcLength(*this);
}
//
// H223AL3MParameters_arqType
//
H245_H223AL3MParameters_arqType::H245_H223AL3MParameters_arqType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noArq "
"typeIArq "
"typeIIArq "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223AL3MParameters_arqType::operator H245_H223AnnexCArqParameters &() const
#else
H245_H223AL3MParameters_arqType::operator H245_H223AnnexCArqParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AnnexCArqParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AnnexCArqParameters *)choice;
}
H245_H223AL3MParameters_arqType::operator const H245_H223AnnexCArqParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AnnexCArqParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AnnexCArqParameters *)choice;
}
BOOL H245_H223AL3MParameters_arqType::CreateObject()
{
switch (tag) {
case e_noArq :
choice = new PASN_Null();
return TRUE;
case e_typeIArq :
case e_typeIIArq :
choice = new H245_H223AnnexCArqParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H223AL3MParameters_arqType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AL3MParameters_arqType::Class()), PInvalidCast);
#endif
return new H245_H223AL3MParameters_arqType(*this);
}
//
// H223AnnexCArqParameters_numberOfRetransmissions
//
H245_H223AnnexCArqParameters_numberOfRetransmissions::H245_H223AnnexCArqParameters_numberOfRetransmissions(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "finite "
"infinite "
#endif
)
{
}
BOOL H245_H223AnnexCArqParameters_numberOfRetransmissions::CreateObject()
{
switch (tag) {
case e_finite :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 16);
return TRUE;
case e_infinite :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H223AnnexCArqParameters_numberOfRetransmissions::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223AnnexCArqParameters_numberOfRetransmissions::Class()), PInvalidCast);
#endif
return new H245_H223AnnexCArqParameters_numberOfRetransmissions(*this);
}
//
// V76LogicalChannelParameters_suspendResume
//
H245_V76LogicalChannelParameters_suspendResume::H245_V76LogicalChannelParameters_suspendResume(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noSuspendResume "
"suspendResumewAddress "
"suspendResumewoAddress "
#endif
)
{
}
BOOL H245_V76LogicalChannelParameters_suspendResume::CreateObject()
{
choice = (tag <= e_suspendResumewoAddress) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_V76LogicalChannelParameters_suspendResume::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_V76LogicalChannelParameters_suspendResume::Class()), PInvalidCast);
#endif
return new H245_V76LogicalChannelParameters_suspendResume(*this);
}
//
// V76LogicalChannelParameters_mode
//
H245_V76LogicalChannelParameters_mode::H245_V76LogicalChannelParameters_mode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "eRM "
"uNERM "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_V76LogicalChannelParameters_mode::operator H245_V76LogicalChannelParameters_mode_eRM &() const
#else
H245_V76LogicalChannelParameters_mode::operator H245_V76LogicalChannelParameters_mode_eRM &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_V76LogicalChannelParameters_mode_eRM::Class()), PInvalidCast);
#endif
return *(H245_V76LogicalChannelParameters_mode_eRM *)choice;
}
H245_V76LogicalChannelParameters_mode::operator const H245_V76LogicalChannelParameters_mode_eRM &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_V76LogicalChannelParameters_mode_eRM::Class()), PInvalidCast);
#endif
return *(H245_V76LogicalChannelParameters_mode_eRM *)choice;
}
BOOL H245_V76LogicalChannelParameters_mode::CreateObject()
{
switch (tag) {
case e_eRM :
choice = new H245_V76LogicalChannelParameters_mode_eRM();
return TRUE;
case e_uNERM :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_V76LogicalChannelParameters_mode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_V76LogicalChannelParameters_mode::Class()), PInvalidCast);
#endif
return new H245_V76LogicalChannelParameters_mode(*this);
}
//
// H2250LogicalChannelParameters_mediaPacketization
//
H245_H2250LogicalChannelParameters_mediaPacketization::H245_H2250LogicalChannelParameters_mediaPacketization(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 1, TRUE
#ifndef PASN_NOPRINTON
, "h261aVideoPacketization "
"rtpPayloadType "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H2250LogicalChannelParameters_mediaPacketization::operator H245_RTPPayloadType &() const
#else
H245_H2250LogicalChannelParameters_mediaPacketization::operator H245_RTPPayloadType &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_RTPPayloadType::Class()), PInvalidCast);
#endif
return *(H245_RTPPayloadType *)choice;
}
H245_H2250LogicalChannelParameters_mediaPacketization::operator const H245_RTPPayloadType &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_RTPPayloadType::Class()), PInvalidCast);
#endif
return *(H245_RTPPayloadType *)choice;
}
BOOL H245_H2250LogicalChannelParameters_mediaPacketization::CreateObject()
{
switch (tag) {
case e_h261aVideoPacketization :
choice = new PASN_Null();
return TRUE;
case e_rtpPayloadType :
choice = new H245_RTPPayloadType();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H2250LogicalChannelParameters_mediaPacketization::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H2250LogicalChannelParameters_mediaPacketization::Class()), PInvalidCast);
#endif
return new H245_H2250LogicalChannelParameters_mediaPacketization(*this);
}
//
// RTPPayloadType_payloadDescriptor
//
H245_RTPPayloadType_payloadDescriptor::H245_RTPPayloadType_payloadDescriptor(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "nonStandardIdentifier "
"rfc_number "
"oid "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_RTPPayloadType_payloadDescriptor::operator H245_NonStandardParameter &() const
#else
H245_RTPPayloadType_payloadDescriptor::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_RTPPayloadType_payloadDescriptor::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
BOOL H245_RTPPayloadType_payloadDescriptor::CreateObject()
{
switch (tag) {
case e_nonStandardIdentifier :
choice = new H245_NonStandardParameter();
return TRUE;
case e_rfc_number :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::ExtendableConstraint, 1, 32768);
return TRUE;
case e_oid :
choice = new PASN_ObjectId();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_RTPPayloadType_payloadDescriptor::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RTPPayloadType_payloadDescriptor::Class()), PInvalidCast);
#endif
return new H245_RTPPayloadType_payloadDescriptor(*this);
}
//
// UnicastAddress_iPAddress
//
H245_UnicastAddress_iPAddress::H245_UnicastAddress_iPAddress(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_network.SetConstraints(PASN_Object::FixedConstraint, 4);
m_tsapIdentifier.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_UnicastAddress_iPAddress::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+10) << "network = " << setprecision(indent) << m_network << '\n';
strm << setw(indent+17) << "tsapIdentifier = " << setprecision(indent) << m_tsapIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_UnicastAddress_iPAddress::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_UnicastAddress_iPAddress::Class()), PInvalidCast);
#endif
const H245_UnicastAddress_iPAddress & other = (const H245_UnicastAddress_iPAddress &)obj;
Comparison result;
if ((result = m_network.Compare(other.m_network)) != EqualTo)
return result;
if ((result = m_tsapIdentifier.Compare(other.m_tsapIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_UnicastAddress_iPAddress::GetDataLength() const
{
PINDEX length = 0;
length += m_network.GetObjectLength();
length += m_tsapIdentifier.GetObjectLength();
return length;
}
BOOL H245_UnicastAddress_iPAddress::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_network.Decode(strm))
return FALSE;
if (!m_tsapIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_UnicastAddress_iPAddress::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_network.Encode(strm);
m_tsapIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_UnicastAddress_iPAddress::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UnicastAddress_iPAddress::Class()), PInvalidCast);
#endif
return new H245_UnicastAddress_iPAddress(*this);
}
//
// UnicastAddress_iPXAddress
//
H245_UnicastAddress_iPXAddress::H245_UnicastAddress_iPXAddress(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_node.SetConstraints(PASN_Object::FixedConstraint, 6);
m_netnum.SetConstraints(PASN_Object::FixedConstraint, 4);
m_tsapIdentifier.SetConstraints(PASN_Object::FixedConstraint, 2);
}
#ifndef PASN_NOPRINTON
void H245_UnicastAddress_iPXAddress::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+7) << "node = " << setprecision(indent) << m_node << '\n';
strm << setw(indent+9) << "netnum = " << setprecision(indent) << m_netnum << '\n';
strm << setw(indent+17) << "tsapIdentifier = " << setprecision(indent) << m_tsapIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_UnicastAddress_iPXAddress::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_UnicastAddress_iPXAddress::Class()), PInvalidCast);
#endif
const H245_UnicastAddress_iPXAddress & other = (const H245_UnicastAddress_iPXAddress &)obj;
Comparison result;
if ((result = m_node.Compare(other.m_node)) != EqualTo)
return result;
if ((result = m_netnum.Compare(other.m_netnum)) != EqualTo)
return result;
if ((result = m_tsapIdentifier.Compare(other.m_tsapIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_UnicastAddress_iPXAddress::GetDataLength() const
{
PINDEX length = 0;
length += m_node.GetObjectLength();
length += m_netnum.GetObjectLength();
length += m_tsapIdentifier.GetObjectLength();
return length;
}
BOOL H245_UnicastAddress_iPXAddress::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_node.Decode(strm))
return FALSE;
if (!m_netnum.Decode(strm))
return FALSE;
if (!m_tsapIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_UnicastAddress_iPXAddress::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_node.Encode(strm);
m_netnum.Encode(strm);
m_tsapIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_UnicastAddress_iPXAddress::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UnicastAddress_iPXAddress::Class()), PInvalidCast);
#endif
return new H245_UnicastAddress_iPXAddress(*this);
}
//
// UnicastAddress_iP6Address
//
H245_UnicastAddress_iP6Address::H245_UnicastAddress_iP6Address(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_network.SetConstraints(PASN_Object::FixedConstraint, 16);
m_tsapIdentifier.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_UnicastAddress_iP6Address::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+10) << "network = " << setprecision(indent) << m_network << '\n';
strm << setw(indent+17) << "tsapIdentifier = " << setprecision(indent) << m_tsapIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_UnicastAddress_iP6Address::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_UnicastAddress_iP6Address::Class()), PInvalidCast);
#endif
const H245_UnicastAddress_iP6Address & other = (const H245_UnicastAddress_iP6Address &)obj;
Comparison result;
if ((result = m_network.Compare(other.m_network)) != EqualTo)
return result;
if ((result = m_tsapIdentifier.Compare(other.m_tsapIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_UnicastAddress_iP6Address::GetDataLength() const
{
PINDEX length = 0;
length += m_network.GetObjectLength();
length += m_tsapIdentifier.GetObjectLength();
return length;
}
BOOL H245_UnicastAddress_iP6Address::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_network.Decode(strm))
return FALSE;
if (!m_tsapIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_UnicastAddress_iP6Address::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_network.Encode(strm);
m_tsapIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_UnicastAddress_iP6Address::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UnicastAddress_iP6Address::Class()), PInvalidCast);
#endif
return new H245_UnicastAddress_iP6Address(*this);
}
//
// MulticastAddress_iPAddress
//
H245_MulticastAddress_iPAddress::H245_MulticastAddress_iPAddress(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_network.SetConstraints(PASN_Object::FixedConstraint, 4);
m_tsapIdentifier.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_MulticastAddress_iPAddress::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+10) << "network = " << setprecision(indent) << m_network << '\n';
strm << setw(indent+17) << "tsapIdentifier = " << setprecision(indent) << m_tsapIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MulticastAddress_iPAddress::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MulticastAddress_iPAddress::Class()), PInvalidCast);
#endif
const H245_MulticastAddress_iPAddress & other = (const H245_MulticastAddress_iPAddress &)obj;
Comparison result;
if ((result = m_network.Compare(other.m_network)) != EqualTo)
return result;
if ((result = m_tsapIdentifier.Compare(other.m_tsapIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MulticastAddress_iPAddress::GetDataLength() const
{
PINDEX length = 0;
length += m_network.GetObjectLength();
length += m_tsapIdentifier.GetObjectLength();
return length;
}
BOOL H245_MulticastAddress_iPAddress::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_network.Decode(strm))
return FALSE;
if (!m_tsapIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MulticastAddress_iPAddress::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_network.Encode(strm);
m_tsapIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MulticastAddress_iPAddress::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MulticastAddress_iPAddress::Class()), PInvalidCast);
#endif
return new H245_MulticastAddress_iPAddress(*this);
}
//
// MulticastAddress_iP6Address
//
H245_MulticastAddress_iP6Address::H245_MulticastAddress_iP6Address(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_network.SetConstraints(PASN_Object::FixedConstraint, 16);
m_tsapIdentifier.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_MulticastAddress_iP6Address::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+10) << "network = " << setprecision(indent) << m_network << '\n';
strm << setw(indent+17) << "tsapIdentifier = " << setprecision(indent) << m_tsapIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MulticastAddress_iP6Address::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MulticastAddress_iP6Address::Class()), PInvalidCast);
#endif
const H245_MulticastAddress_iP6Address & other = (const H245_MulticastAddress_iP6Address &)obj;
Comparison result;
if ((result = m_network.Compare(other.m_network)) != EqualTo)
return result;
if ((result = m_tsapIdentifier.Compare(other.m_tsapIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MulticastAddress_iP6Address::GetDataLength() const
{
PINDEX length = 0;
length += m_network.GetObjectLength();
length += m_tsapIdentifier.GetObjectLength();
return length;
}
BOOL H245_MulticastAddress_iP6Address::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_network.Decode(strm))
return FALSE;
if (!m_tsapIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MulticastAddress_iP6Address::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_network.Encode(strm);
m_tsapIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MulticastAddress_iP6Address::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MulticastAddress_iP6Address::Class()), PInvalidCast);
#endif
return new H245_MulticastAddress_iP6Address(*this);
}
//
// ArrayOf_EscrowData
//
H245_ArrayOf_EscrowData::H245_ArrayOf_EscrowData(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_EscrowData::CreateObject() const
{
return new H245_EscrowData;
}
H245_EscrowData & H245_ArrayOf_EscrowData::operator[](PINDEX i) const
{
return (H245_EscrowData &)array[i];
}
PObject * H245_ArrayOf_EscrowData::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_EscrowData::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_EscrowData(*this);
}
//
// OpenLogicalChannelAck_forwardMultiplexAckParameters
//
H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::H245_OpenLogicalChannelAck_forwardMultiplexAckParameters(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 1, TRUE
#ifndef PASN_NOPRINTON
, "h2250LogicalChannelAckParameters "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::operator H245_H2250LogicalChannelAckParameters &() const
#else
H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::operator H245_H2250LogicalChannelAckParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelAckParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelAckParameters *)choice;
}
H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::operator const H245_H2250LogicalChannelAckParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelAckParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelAckParameters *)choice;
}
BOOL H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::CreateObject()
{
switch (tag) {
case e_h2250LogicalChannelAckParameters :
choice = new H245_H2250LogicalChannelAckParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_OpenLogicalChannelAck_forwardMultiplexAckParameters::Class()), PInvalidCast);
#endif
return new H245_OpenLogicalChannelAck_forwardMultiplexAckParameters(*this);
}
//
// OpenLogicalChannelReject_cause
//
H245_OpenLogicalChannelReject_cause::H245_OpenLogicalChannelReject_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 6, TRUE
#ifndef PASN_NOPRINTON
, "unspecified "
"unsuitableReverseParameters "
"dataTypeNotSupported "
"dataTypeNotAvailable "
"unknownDataType "
"dataTypeALCombinationNotSupported "
"multicastChannelNotAllowed "
"insufficientBandwidth "
"separateStackEstablishmentFailed "
"invalidSessionID "
"masterSlaveConflict "
"waitForCommunicationMode "
"invalidDependentChannel "
"replacementForRejected "
#endif
)
{
}
BOOL H245_OpenLogicalChannelReject_cause::CreateObject()
{
choice = (tag <= e_replacementForRejected) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_OpenLogicalChannelReject_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_OpenLogicalChannelReject_cause::Class()), PInvalidCast);
#endif
return new H245_OpenLogicalChannelReject_cause(*this);
}
//
// CloseLogicalChannel_source
//
H245_CloseLogicalChannel_source::H245_CloseLogicalChannel_source(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "user "
"lcse "
#endif
)
{
}
BOOL H245_CloseLogicalChannel_source::CreateObject()
{
choice = (tag <= e_lcse) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_CloseLogicalChannel_source::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CloseLogicalChannel_source::Class()), PInvalidCast);
#endif
return new H245_CloseLogicalChannel_source(*this);
}
//
// CloseLogicalChannel_reason
//
H245_CloseLogicalChannel_reason::H245_CloseLogicalChannel_reason(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "unknown "
"reopen "
"reservationFailure "
#endif
)
{
}
BOOL H245_CloseLogicalChannel_reason::CreateObject()
{
choice = (tag <= e_reservationFailure) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_CloseLogicalChannel_reason::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CloseLogicalChannel_reason::Class()), PInvalidCast);
#endif
return new H245_CloseLogicalChannel_reason(*this);
}
//
// RequestChannelClose_reason
//
H245_RequestChannelClose_reason::H245_RequestChannelClose_reason(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "unknown "
"normal "
"reopen "
"reservationFailure "
#endif
)
{
}
BOOL H245_RequestChannelClose_reason::CreateObject()
{
choice = (tag <= e_reservationFailure) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RequestChannelClose_reason::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RequestChannelClose_reason::Class()), PInvalidCast);
#endif
return new H245_RequestChannelClose_reason(*this);
}
//
// RequestChannelCloseReject_cause
//
H245_RequestChannelCloseReject_cause::H245_RequestChannelCloseReject_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 1, TRUE
#ifndef PASN_NOPRINTON
, "unspecified "
#endif
)
{
}
BOOL H245_RequestChannelCloseReject_cause::CreateObject()
{
choice = (tag <= e_unspecified) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RequestChannelCloseReject_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RequestChannelCloseReject_cause::Class()), PInvalidCast);
#endif
return new H245_RequestChannelCloseReject_cause(*this);
}
//
// ArrayOf_MultiplexEntryDescriptor
//
H245_ArrayOf_MultiplexEntryDescriptor::H245_ArrayOf_MultiplexEntryDescriptor(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_MultiplexEntryDescriptor::CreateObject() const
{
return new H245_MultiplexEntryDescriptor;
}
H245_MultiplexEntryDescriptor & H245_ArrayOf_MultiplexEntryDescriptor::operator[](PINDEX i) const
{
return (H245_MultiplexEntryDescriptor &)array[i];
}
PObject * H245_ArrayOf_MultiplexEntryDescriptor::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_MultiplexEntryDescriptor::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_MultiplexEntryDescriptor(*this);
}
//
// ArrayOf_MultiplexElement
//
H245_ArrayOf_MultiplexElement::H245_ArrayOf_MultiplexElement(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_MultiplexElement::CreateObject() const
{
return new H245_MultiplexElement;
}
H245_MultiplexElement & H245_ArrayOf_MultiplexElement::operator[](PINDEX i) const
{
return (H245_MultiplexElement &)array[i];
}
PObject * H245_ArrayOf_MultiplexElement::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_MultiplexElement::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_MultiplexElement(*this);
}
//
// MultiplexElement_type
//
H245_MultiplexElement_type::H245_MultiplexElement_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "logicalChannelNumber "
"subElementList "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MultiplexElement_type::operator H245_ArrayOf_MultiplexElement &() const
#else
H245_MultiplexElement_type::operator H245_ArrayOf_MultiplexElement &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_ArrayOf_MultiplexElement::Class()), PInvalidCast);
#endif
return *(H245_ArrayOf_MultiplexElement *)choice;
}
H245_MultiplexElement_type::operator const H245_ArrayOf_MultiplexElement &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_ArrayOf_MultiplexElement::Class()), PInvalidCast);
#endif
return *(H245_ArrayOf_MultiplexElement *)choice;
}
BOOL H245_MultiplexElement_type::CreateObject()
{
switch (tag) {
case e_logicalChannelNumber :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
return TRUE;
case e_subElementList :
choice = new H245_ArrayOf_MultiplexElement();
choice->SetConstraints(PASN_Object::FixedConstraint, 2, 255);
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MultiplexElement_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultiplexElement_type::Class()), PInvalidCast);
#endif
return new H245_MultiplexElement_type(*this);
}
//
// MultiplexElement_repeatCount
//
H245_MultiplexElement_repeatCount::H245_MultiplexElement_repeatCount(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "finite "
"untilClosingFlag "
#endif
)
{
}
BOOL H245_MultiplexElement_repeatCount::CreateObject()
{
switch (tag) {
case e_finite :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 1, 65535);
return TRUE;
case e_untilClosingFlag :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MultiplexElement_repeatCount::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultiplexElement_repeatCount::Class()), PInvalidCast);
#endif
return new H245_MultiplexElement_repeatCount(*this);
}
//
// ArrayOf_MultiplexTableEntryNumber
//
H245_ArrayOf_MultiplexTableEntryNumber::H245_ArrayOf_MultiplexTableEntryNumber(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_MultiplexTableEntryNumber::CreateObject() const
{
return new H245_MultiplexTableEntryNumber;
}
H245_MultiplexTableEntryNumber & H245_ArrayOf_MultiplexTableEntryNumber::operator[](PINDEX i) const
{
return (H245_MultiplexTableEntryNumber &)array[i];
}
PObject * H245_ArrayOf_MultiplexTableEntryNumber::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_MultiplexTableEntryNumber::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_MultiplexTableEntryNumber(*this);
}
//
// ArrayOf_MultiplexEntryRejectionDescriptions
//
H245_ArrayOf_MultiplexEntryRejectionDescriptions::H245_ArrayOf_MultiplexEntryRejectionDescriptions(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_MultiplexEntryRejectionDescriptions::CreateObject() const
{
return new H245_MultiplexEntryRejectionDescriptions;
}
H245_MultiplexEntryRejectionDescriptions & H245_ArrayOf_MultiplexEntryRejectionDescriptions::operator[](PINDEX i) const
{
return (H245_MultiplexEntryRejectionDescriptions &)array[i];
}
PObject * H245_ArrayOf_MultiplexEntryRejectionDescriptions::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_MultiplexEntryRejectionDescriptions::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_MultiplexEntryRejectionDescriptions(*this);
}
//
// MultiplexEntryRejectionDescriptions_cause
//
H245_MultiplexEntryRejectionDescriptions_cause::H245_MultiplexEntryRejectionDescriptions_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "unspecifiedCause "
"descriptorTooComplex "
#endif
)
{
}
BOOL H245_MultiplexEntryRejectionDescriptions_cause::CreateObject()
{
choice = (tag <= e_descriptorTooComplex) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_MultiplexEntryRejectionDescriptions_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultiplexEntryRejectionDescriptions_cause::Class()), PInvalidCast);
#endif
return new H245_MultiplexEntryRejectionDescriptions_cause(*this);
}
//
// ArrayOf_RequestMultiplexEntryRejectionDescriptions
//
H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions::H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions::CreateObject() const
{
return new H245_RequestMultiplexEntryRejectionDescriptions;
}
H245_RequestMultiplexEntryRejectionDescriptions & H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions::operator[](PINDEX i) const
{
return (H245_RequestMultiplexEntryRejectionDescriptions &)array[i];
}
PObject * H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_RequestMultiplexEntryRejectionDescriptions(*this);
}
//
// RequestMultiplexEntryRejectionDescriptions_cause
//
H245_RequestMultiplexEntryRejectionDescriptions_cause::H245_RequestMultiplexEntryRejectionDescriptions_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 1, TRUE
#ifndef PASN_NOPRINTON
, "unspecifiedCause "
#endif
)
{
}
BOOL H245_RequestMultiplexEntryRejectionDescriptions_cause::CreateObject()
{
choice = (tag <= e_unspecifiedCause) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RequestMultiplexEntryRejectionDescriptions_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RequestMultiplexEntryRejectionDescriptions_cause::Class()), PInvalidCast);
#endif
return new H245_RequestMultiplexEntryRejectionDescriptions_cause(*this);
}
//
// ArrayOf_ModeDescription
//
H245_ArrayOf_ModeDescription::H245_ArrayOf_ModeDescription(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_ModeDescription::CreateObject() const
{
return new H245_ModeDescription;
}
H245_ModeDescription & H245_ArrayOf_ModeDescription::operator[](PINDEX i) const
{
return (H245_ModeDescription &)array[i];
}
PObject * H245_ArrayOf_ModeDescription::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_ModeDescription::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_ModeDescription(*this);
}
//
// RequestModeAck_response
//
H245_RequestModeAck_response::H245_RequestModeAck_response(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "willTransmitMostPreferredMode "
"willTransmitLessPreferredMode "
#endif
)
{
}
BOOL H245_RequestModeAck_response::CreateObject()
{
choice = (tag <= e_willTransmitLessPreferredMode) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RequestModeAck_response::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RequestModeAck_response::Class()), PInvalidCast);
#endif
return new H245_RequestModeAck_response(*this);
}
//
// RequestModeReject_cause
//
H245_RequestModeReject_cause::H245_RequestModeReject_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "modeUnavailable "
"multipointConstraint "
"requestDenied "
#endif
)
{
}
BOOL H245_RequestModeReject_cause::CreateObject()
{
choice = (tag <= e_requestDenied) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RequestModeReject_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RequestModeReject_cause::Class()), PInvalidCast);
#endif
return new H245_RequestModeReject_cause(*this);
}
//
// ModeElement_type
//
H245_ModeElement_type::H245_ModeElement_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 5, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"videoMode "
"audioMode "
"dataMode "
"encryptionMode "
"h235Mode "
"multiplexedStreamMode "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_NonStandardParameter &() const
#else
H245_ModeElement_type::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_ModeElement_type::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_VideoMode &() const
#else
H245_ModeElement_type::operator H245_VideoMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoMode::Class()), PInvalidCast);
#endif
return *(H245_VideoMode *)choice;
}
H245_ModeElement_type::operator const H245_VideoMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoMode::Class()), PInvalidCast);
#endif
return *(H245_VideoMode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_AudioMode &() const
#else
H245_ModeElement_type::operator H245_AudioMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioMode::Class()), PInvalidCast);
#endif
return *(H245_AudioMode *)choice;
}
H245_ModeElement_type::operator const H245_AudioMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioMode::Class()), PInvalidCast);
#endif
return *(H245_AudioMode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_DataMode &() const
#else
H245_ModeElement_type::operator H245_DataMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode::Class()), PInvalidCast);
#endif
return *(H245_DataMode *)choice;
}
H245_ModeElement_type::operator const H245_DataMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode::Class()), PInvalidCast);
#endif
return *(H245_DataMode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_EncryptionMode &() const
#else
H245_ModeElement_type::operator H245_EncryptionMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_EncryptionMode::Class()), PInvalidCast);
#endif
return *(H245_EncryptionMode *)choice;
}
H245_ModeElement_type::operator const H245_EncryptionMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_EncryptionMode::Class()), PInvalidCast);
#endif
return *(H245_EncryptionMode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_H235Mode &() const
#else
H245_ModeElement_type::operator H245_H235Mode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H235Mode::Class()), PInvalidCast);
#endif
return *(H245_H235Mode *)choice;
}
H245_ModeElement_type::operator const H245_H235Mode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H235Mode::Class()), PInvalidCast);
#endif
return *(H245_H235Mode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_ModeElement_type::operator H245_MultiplexedStreamParameter &() const
#else
H245_ModeElement_type::operator H245_MultiplexedStreamParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MultiplexedStreamParameter::Class()), PInvalidCast);
#endif
return *(H245_MultiplexedStreamParameter *)choice;
}
H245_ModeElement_type::operator const H245_MultiplexedStreamParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MultiplexedStreamParameter::Class()), PInvalidCast);
#endif
return *(H245_MultiplexedStreamParameter *)choice;
}
BOOL H245_ModeElement_type::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_videoMode :
choice = new H245_VideoMode();
return TRUE;
case e_audioMode :
choice = new H245_AudioMode();
return TRUE;
case e_dataMode :
choice = new H245_DataMode();
return TRUE;
case e_encryptionMode :
choice = new H245_EncryptionMode();
return TRUE;
case e_h235Mode :
choice = new H245_H235Mode();
return TRUE;
case e_multiplexedStreamMode :
choice = new H245_MultiplexedStreamParameter();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_ModeElement_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ModeElement_type::Class()), PInvalidCast);
#endif
return new H245_ModeElement_type(*this);
}
//
// H235Mode_mediaMode
//
H245_H235Mode_mediaMode::H245_H235Mode_mediaMode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"videoMode "
"audioMode "
"dataMode "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Mode_mediaMode::operator H245_NonStandardParameter &() const
#else
H245_H235Mode_mediaMode::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_H235Mode_mediaMode::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Mode_mediaMode::operator H245_VideoMode &() const
#else
H245_H235Mode_mediaMode::operator H245_VideoMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoMode::Class()), PInvalidCast);
#endif
return *(H245_VideoMode *)choice;
}
H245_H235Mode_mediaMode::operator const H245_VideoMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoMode::Class()), PInvalidCast);
#endif
return *(H245_VideoMode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Mode_mediaMode::operator H245_AudioMode &() const
#else
H245_H235Mode_mediaMode::operator H245_AudioMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioMode::Class()), PInvalidCast);
#endif
return *(H245_AudioMode *)choice;
}
H245_H235Mode_mediaMode::operator const H245_AudioMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioMode::Class()), PInvalidCast);
#endif
return *(H245_AudioMode *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H235Mode_mediaMode::operator H245_DataMode &() const
#else
H245_H235Mode_mediaMode::operator H245_DataMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode::Class()), PInvalidCast);
#endif
return *(H245_DataMode *)choice;
}
H245_H235Mode_mediaMode::operator const H245_DataMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode::Class()), PInvalidCast);
#endif
return *(H245_DataMode *)choice;
}
BOOL H245_H235Mode_mediaMode::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_videoMode :
choice = new H245_VideoMode();
return TRUE;
case e_audioMode :
choice = new H245_AudioMode();
return TRUE;
case e_dataMode :
choice = new H245_DataMode();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H235Mode_mediaMode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H235Mode_mediaMode::Class()), PInvalidCast);
#endif
return new H245_H235Mode_mediaMode(*this);
}
//
// H223ModeParameters_adaptationLayerType
//
H245_H223ModeParameters_adaptationLayerType::H245_H223ModeParameters_adaptationLayerType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 6, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"al1Framed "
"al1NotFramed "
"al2WithoutSequenceNumbers "
"al2WithSequenceNumbers "
"al3 "
"al1M "
"al2M "
"al3M "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223ModeParameters_adaptationLayerType::operator H245_NonStandardParameter &() const
#else
H245_H223ModeParameters_adaptationLayerType::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_H223ModeParameters_adaptationLayerType::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223ModeParameters_adaptationLayerType::operator H245_H223ModeParameters_adaptationLayerType_al3 &() const
#else
H245_H223ModeParameters_adaptationLayerType::operator H245_H223ModeParameters_adaptationLayerType_al3 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223ModeParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
return *(H245_H223ModeParameters_adaptationLayerType_al3 *)choice;
}
H245_H223ModeParameters_adaptationLayerType::operator const H245_H223ModeParameters_adaptationLayerType_al3 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223ModeParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
return *(H245_H223ModeParameters_adaptationLayerType_al3 *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223ModeParameters_adaptationLayerType::operator H245_H223AL1MParameters &() const
#else
H245_H223ModeParameters_adaptationLayerType::operator H245_H223AL1MParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL1MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL1MParameters *)choice;
}
H245_H223ModeParameters_adaptationLayerType::operator const H245_H223AL1MParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL1MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL1MParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223ModeParameters_adaptationLayerType::operator H245_H223AL2MParameters &() const
#else
H245_H223ModeParameters_adaptationLayerType::operator H245_H223AL2MParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL2MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL2MParameters *)choice;
}
H245_H223ModeParameters_adaptationLayerType::operator const H245_H223AL2MParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL2MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL2MParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_H223ModeParameters_adaptationLayerType::operator H245_H223AL3MParameters &() const
#else
H245_H223ModeParameters_adaptationLayerType::operator H245_H223AL3MParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL3MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL3MParameters *)choice;
}
H245_H223ModeParameters_adaptationLayerType::operator const H245_H223AL3MParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223AL3MParameters::Class()), PInvalidCast);
#endif
return *(H245_H223AL3MParameters *)choice;
}
BOOL H245_H223ModeParameters_adaptationLayerType::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_al1Framed :
case e_al1NotFramed :
case e_al2WithoutSequenceNumbers :
case e_al2WithSequenceNumbers :
choice = new PASN_Null();
return TRUE;
case e_al3 :
choice = new H245_H223ModeParameters_adaptationLayerType_al3();
return TRUE;
case e_al1M :
choice = new H245_H223AL1MParameters();
return TRUE;
case e_al2M :
choice = new H245_H223AL2MParameters();
return TRUE;
case e_al3M :
choice = new H245_H223AL3MParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_H223ModeParameters_adaptationLayerType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223ModeParameters_adaptationLayerType::Class()), PInvalidCast);
#endif
return new H245_H223ModeParameters_adaptationLayerType(*this);
}
//
// RedundancyEncodingMode_secondaryEncoding
//
H245_RedundancyEncodingMode_secondaryEncoding::H245_RedundancyEncodingMode_secondaryEncoding(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"audioData "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_RedundancyEncodingMode_secondaryEncoding::operator H245_NonStandardParameter &() const
#else
H245_RedundancyEncodingMode_secondaryEncoding::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_RedundancyEncodingMode_secondaryEncoding::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_RedundancyEncodingMode_secondaryEncoding::operator H245_AudioMode &() const
#else
H245_RedundancyEncodingMode_secondaryEncoding::operator H245_AudioMode &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioMode::Class()), PInvalidCast);
#endif
return *(H245_AudioMode *)choice;
}
H245_RedundancyEncodingMode_secondaryEncoding::operator const H245_AudioMode &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioMode::Class()), PInvalidCast);
#endif
return *(H245_AudioMode *)choice;
}
BOOL H245_RedundancyEncodingMode_secondaryEncoding::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_audioData :
choice = new H245_AudioMode();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_RedundancyEncodingMode_secondaryEncoding::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RedundancyEncodingMode_secondaryEncoding::Class()), PInvalidCast);
#endif
return new H245_RedundancyEncodingMode_secondaryEncoding(*this);
}
//
// H261VideoMode_resolution
//
H245_H261VideoMode_resolution::H245_H261VideoMode_resolution(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "qcif "
"cif "
#endif
)
{
}
BOOL H245_H261VideoMode_resolution::CreateObject()
{
choice = (tag <= e_cif) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H261VideoMode_resolution::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H261VideoMode_resolution::Class()), PInvalidCast);
#endif
return new H245_H261VideoMode_resolution(*this);
}
//
// H262VideoMode_profileAndLevel
//
H245_H262VideoMode_profileAndLevel::H245_H262VideoMode_profileAndLevel(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 11, TRUE
#ifndef PASN_NOPRINTON
, "profileAndLevel_SPatML "
"profileAndLevel_MPatLL "
"profileAndLevel_MPatML "
"profileAndLevel_MPatH_14 "
"profileAndLevel_MPatHL "
"profileAndLevel_SNRatLL "
"profileAndLevel_SNRatML "
"profileAndLevel_SpatialatH_14 "
"profileAndLevel_HPatML "
"profileAndLevel_HPatH_14 "
"profileAndLevel_HPatHL "
#endif
)
{
}
BOOL H245_H262VideoMode_profileAndLevel::CreateObject()
{
choice = (tag <= e_profileAndLevel_HPatHL) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H262VideoMode_profileAndLevel::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H262VideoMode_profileAndLevel::Class()), PInvalidCast);
#endif
return new H245_H262VideoMode_profileAndLevel(*this);
}
//
// H263VideoMode_resolution
//
H245_H263VideoMode_resolution::H245_H263VideoMode_resolution(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 5, TRUE
#ifndef PASN_NOPRINTON
, "sqcif "
"qcif "
"cif "
"cif4 "
"cif16 "
#endif
)
{
}
BOOL H245_H263VideoMode_resolution::CreateObject()
{
choice = (tag <= e_cif16) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H263VideoMode_resolution::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H263VideoMode_resolution::Class()), PInvalidCast);
#endif
return new H245_H263VideoMode_resolution(*this);
}
//
// AudioMode_g7231
//
H245_AudioMode_g7231::H245_AudioMode_g7231(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, FALSE
#ifndef PASN_NOPRINTON
, "noSilenceSuppressionLowRate "
"noSilenceSuppressionHighRate "
"silenceSuppressionLowRate "
"silenceSuppressionHighRate "
#endif
)
{
}
BOOL H245_AudioMode_g7231::CreateObject()
{
choice = (tag <= e_silenceSuppressionHighRate) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_AudioMode_g7231::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_AudioMode_g7231::Class()), PInvalidCast);
#endif
return new H245_AudioMode_g7231(*this);
}
//
// IS11172AudioMode_audioLayer
//
H245_IS11172AudioMode_audioLayer::H245_IS11172AudioMode_audioLayer(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "audioLayer1 "
"audioLayer2 "
"audioLayer3 "
#endif
)
{
}
BOOL H245_IS11172AudioMode_audioLayer::CreateObject()
{
choice = (tag <= e_audioLayer3) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_IS11172AudioMode_audioLayer::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_IS11172AudioMode_audioLayer::Class()), PInvalidCast);
#endif
return new H245_IS11172AudioMode_audioLayer(*this);
}
//
// IS11172AudioMode_audioSampling
//
H245_IS11172AudioMode_audioSampling::H245_IS11172AudioMode_audioSampling(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "audioSampling32k "
"audioSampling44k1 "
"audioSampling48k "
#endif
)
{
}
BOOL H245_IS11172AudioMode_audioSampling::CreateObject()
{
choice = (tag <= e_audioSampling48k) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_IS11172AudioMode_audioSampling::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_IS11172AudioMode_audioSampling::Class()), PInvalidCast);
#endif
return new H245_IS11172AudioMode_audioSampling(*this);
}
//
// IS11172AudioMode_multichannelType
//
H245_IS11172AudioMode_multichannelType::H245_IS11172AudioMode_multichannelType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "singleChannel "
"twoChannelStereo "
"twoChannelDual "
#endif
)
{
}
BOOL H245_IS11172AudioMode_multichannelType::CreateObject()
{
choice = (tag <= e_twoChannelDual) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_IS11172AudioMode_multichannelType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_IS11172AudioMode_multichannelType::Class()), PInvalidCast);
#endif
return new H245_IS11172AudioMode_multichannelType(*this);
}
//
// IS13818AudioMode_audioLayer
//
H245_IS13818AudioMode_audioLayer::H245_IS13818AudioMode_audioLayer(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "audioLayer1 "
"audioLayer2 "
"audioLayer3 "
#endif
)
{
}
BOOL H245_IS13818AudioMode_audioLayer::CreateObject()
{
choice = (tag <= e_audioLayer3) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_IS13818AudioMode_audioLayer::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_IS13818AudioMode_audioLayer::Class()), PInvalidCast);
#endif
return new H245_IS13818AudioMode_audioLayer(*this);
}
//
// IS13818AudioMode_audioSampling
//
H245_IS13818AudioMode_audioSampling::H245_IS13818AudioMode_audioSampling(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 6, FALSE
#ifndef PASN_NOPRINTON
, "audioSampling16k "
"audioSampling22k05 "
"audioSampling24k "
"audioSampling32k "
"audioSampling44k1 "
"audioSampling48k "
#endif
)
{
}
BOOL H245_IS13818AudioMode_audioSampling::CreateObject()
{
choice = (tag <= e_audioSampling48k) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_IS13818AudioMode_audioSampling::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_IS13818AudioMode_audioSampling::Class()), PInvalidCast);
#endif
return new H245_IS13818AudioMode_audioSampling(*this);
}
//
// IS13818AudioMode_multichannelType
//
H245_IS13818AudioMode_multichannelType::H245_IS13818AudioMode_multichannelType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 10, FALSE
#ifndef PASN_NOPRINTON
, "singleChannel "
"twoChannelStereo "
"twoChannelDual "
"threeChannels2_1 "
"threeChannels3_0 "
"fourChannels2_0_2_0 "
"fourChannels2_2 "
"fourChannels3_1 "
"fiveChannels3_0_2_0 "
"fiveChannels3_2 "
#endif
)
{
}
BOOL H245_IS13818AudioMode_multichannelType::CreateObject()
{
choice = (tag <= e_fiveChannels3_2) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_IS13818AudioMode_multichannelType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_IS13818AudioMode_multichannelType::Class()), PInvalidCast);
#endif
return new H245_IS13818AudioMode_multichannelType(*this);
}
//
// G7231AnnexCMode_g723AnnexCAudioMode
//
H245_G7231AnnexCMode_g723AnnexCAudioMode::H245_G7231AnnexCMode_g723AnnexCAudioMode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_highRateMode0.SetConstraints(PASN_Object::FixedConstraint, 27, 78);
m_highRateMode1.SetConstraints(PASN_Object::FixedConstraint, 27, 78);
m_lowRateMode0.SetConstraints(PASN_Object::FixedConstraint, 23, 66);
m_lowRateMode1.SetConstraints(PASN_Object::FixedConstraint, 23, 66);
m_sidMode0.SetConstraints(PASN_Object::FixedConstraint, 6, 17);
m_sidMode1.SetConstraints(PASN_Object::FixedConstraint, 6, 17);
}
#ifndef PASN_NOPRINTON
void H245_G7231AnnexCMode_g723AnnexCAudioMode::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+16) << "highRateMode0 = " << setprecision(indent) << m_highRateMode0 << '\n';
strm << setw(indent+16) << "highRateMode1 = " << setprecision(indent) << m_highRateMode1 << '\n';
strm << setw(indent+15) << "lowRateMode0 = " << setprecision(indent) << m_lowRateMode0 << '\n';
strm << setw(indent+15) << "lowRateMode1 = " << setprecision(indent) << m_lowRateMode1 << '\n';
strm << setw(indent+11) << "sidMode0 = " << setprecision(indent) << m_sidMode0 << '\n';
strm << setw(indent+11) << "sidMode1 = " << setprecision(indent) << m_sidMode1 << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_G7231AnnexCMode_g723AnnexCAudioMode::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_G7231AnnexCMode_g723AnnexCAudioMode::Class()), PInvalidCast);
#endif
const H245_G7231AnnexCMode_g723AnnexCAudioMode & other = (const H245_G7231AnnexCMode_g723AnnexCAudioMode &)obj;
Comparison result;
if ((result = m_highRateMode0.Compare(other.m_highRateMode0)) != EqualTo)
return result;
if ((result = m_highRateMode1.Compare(other.m_highRateMode1)) != EqualTo)
return result;
if ((result = m_lowRateMode0.Compare(other.m_lowRateMode0)) != EqualTo)
return result;
if ((result = m_lowRateMode1.Compare(other.m_lowRateMode1)) != EqualTo)
return result;
if ((result = m_sidMode0.Compare(other.m_sidMode0)) != EqualTo)
return result;
if ((result = m_sidMode1.Compare(other.m_sidMode1)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_G7231AnnexCMode_g723AnnexCAudioMode::GetDataLength() const
{
PINDEX length = 0;
length += m_highRateMode0.GetObjectLength();
length += m_highRateMode1.GetObjectLength();
length += m_lowRateMode0.GetObjectLength();
length += m_lowRateMode1.GetObjectLength();
length += m_sidMode0.GetObjectLength();
length += m_sidMode1.GetObjectLength();
return length;
}
BOOL H245_G7231AnnexCMode_g723AnnexCAudioMode::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_highRateMode0.Decode(strm))
return FALSE;
if (!m_highRateMode1.Decode(strm))
return FALSE;
if (!m_lowRateMode0.Decode(strm))
return FALSE;
if (!m_lowRateMode1.Decode(strm))
return FALSE;
if (!m_sidMode0.Decode(strm))
return FALSE;
if (!m_sidMode1.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_G7231AnnexCMode_g723AnnexCAudioMode::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_highRateMode0.Encode(strm);
m_highRateMode1.Encode(strm);
m_lowRateMode0.Encode(strm);
m_lowRateMode1.Encode(strm);
m_sidMode0.Encode(strm);
m_sidMode1.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_G7231AnnexCMode_g723AnnexCAudioMode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_G7231AnnexCMode_g723AnnexCAudioMode::Class()), PInvalidCast);
#endif
return new H245_G7231AnnexCMode_g723AnnexCAudioMode(*this);
}
//
// DataMode_application
//
H245_DataMode_application::H245_DataMode_application(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 10, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"t120 "
"dsm_cc "
"userData "
"t84 "
"t434 "
"h224 "
"nlpid "
"dsvdControl "
"h222DataPartitioning "
"t30fax "
"t140 "
"t38fax "
"genericDataMode "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataMode_application::operator H245_NonStandardParameter &() const
#else
H245_DataMode_application::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_DataMode_application::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataMode_application::operator H245_DataProtocolCapability &() const
#else
H245_DataMode_application::operator H245_DataProtocolCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataProtocolCapability::Class()), PInvalidCast);
#endif
return *(H245_DataProtocolCapability *)choice;
}
H245_DataMode_application::operator const H245_DataProtocolCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataProtocolCapability::Class()), PInvalidCast);
#endif
return *(H245_DataProtocolCapability *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataMode_application::operator H245_DataMode_application_nlpid &() const
#else
H245_DataMode_application::operator H245_DataMode_application_nlpid &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode_application_nlpid::Class()), PInvalidCast);
#endif
return *(H245_DataMode_application_nlpid *)choice;
}
H245_DataMode_application::operator const H245_DataMode_application_nlpid &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode_application_nlpid::Class()), PInvalidCast);
#endif
return *(H245_DataMode_application_nlpid *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataMode_application::operator H245_DataMode_application_t38fax &() const
#else
H245_DataMode_application::operator H245_DataMode_application_t38fax &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode_application_t38fax::Class()), PInvalidCast);
#endif
return *(H245_DataMode_application_t38fax *)choice;
}
H245_DataMode_application::operator const H245_DataMode_application_t38fax &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataMode_application_t38fax::Class()), PInvalidCast);
#endif
return *(H245_DataMode_application_t38fax *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_DataMode_application::operator H245_GenericCapability &() const
#else
H245_DataMode_application::operator H245_GenericCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_GenericCapability::Class()), PInvalidCast);
#endif
return *(H245_GenericCapability *)choice;
}
H245_DataMode_application::operator const H245_GenericCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_GenericCapability::Class()), PInvalidCast);
#endif
return *(H245_GenericCapability *)choice;
}
BOOL H245_DataMode_application::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_t120 :
case e_dsm_cc :
case e_userData :
case e_t84 :
case e_t434 :
case e_h224 :
case e_h222DataPartitioning :
case e_t30fax :
case e_t140 :
choice = new H245_DataProtocolCapability();
return TRUE;
case e_nlpid :
choice = new H245_DataMode_application_nlpid();
return TRUE;
case e_dsvdControl :
choice = new PASN_Null();
return TRUE;
case e_t38fax :
choice = new H245_DataMode_application_t38fax();
return TRUE;
case e_genericDataMode :
choice = new H245_GenericCapability();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_DataMode_application::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_DataMode_application::Class()), PInvalidCast);
#endif
return new H245_DataMode_application(*this);
}
//
// MaintenanceLoopRequest_type
//
H245_MaintenanceLoopRequest_type::H245_MaintenanceLoopRequest_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "systemLoop "
"mediaLoop "
"logicalChannelLoop "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MaintenanceLoopRequest_type::operator H245_LogicalChannelNumber &() const
#else
H245_MaintenanceLoopRequest_type::operator H245_LogicalChannelNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
H245_MaintenanceLoopRequest_type::operator const H245_LogicalChannelNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
BOOL H245_MaintenanceLoopRequest_type::CreateObject()
{
switch (tag) {
case e_systemLoop :
choice = new PASN_Null();
return TRUE;
case e_mediaLoop :
case e_logicalChannelLoop :
choice = new H245_LogicalChannelNumber();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MaintenanceLoopRequest_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MaintenanceLoopRequest_type::Class()), PInvalidCast);
#endif
return new H245_MaintenanceLoopRequest_type(*this);
}
//
// MaintenanceLoopAck_type
//
H245_MaintenanceLoopAck_type::H245_MaintenanceLoopAck_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "systemLoop "
"mediaLoop "
"logicalChannelLoop "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MaintenanceLoopAck_type::operator H245_LogicalChannelNumber &() const
#else
H245_MaintenanceLoopAck_type::operator H245_LogicalChannelNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
H245_MaintenanceLoopAck_type::operator const H245_LogicalChannelNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
BOOL H245_MaintenanceLoopAck_type::CreateObject()
{
switch (tag) {
case e_systemLoop :
choice = new PASN_Null();
return TRUE;
case e_mediaLoop :
case e_logicalChannelLoop :
choice = new H245_LogicalChannelNumber();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MaintenanceLoopAck_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MaintenanceLoopAck_type::Class()), PInvalidCast);
#endif
return new H245_MaintenanceLoopAck_type(*this);
}
//
// MaintenanceLoopReject_type
//
H245_MaintenanceLoopReject_type::H245_MaintenanceLoopReject_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "systemLoop "
"mediaLoop "
"logicalChannelLoop "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MaintenanceLoopReject_type::operator H245_LogicalChannelNumber &() const
#else
H245_MaintenanceLoopReject_type::operator H245_LogicalChannelNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
H245_MaintenanceLoopReject_type::operator const H245_LogicalChannelNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
BOOL H245_MaintenanceLoopReject_type::CreateObject()
{
switch (tag) {
case e_systemLoop :
choice = new PASN_Null();
return TRUE;
case e_mediaLoop :
case e_logicalChannelLoop :
choice = new H245_LogicalChannelNumber();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MaintenanceLoopReject_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MaintenanceLoopReject_type::Class()), PInvalidCast);
#endif
return new H245_MaintenanceLoopReject_type(*this);
}
//
// MaintenanceLoopReject_cause
//
H245_MaintenanceLoopReject_cause::H245_MaintenanceLoopReject_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 1, TRUE
#ifndef PASN_NOPRINTON
, "canNotPerformLoop "
#endif
)
{
}
BOOL H245_MaintenanceLoopReject_cause::CreateObject()
{
choice = (tag <= e_canNotPerformLoop) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_MaintenanceLoopReject_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MaintenanceLoopReject_cause::Class()), PInvalidCast);
#endif
return new H245_MaintenanceLoopReject_cause(*this);
}
//
// ArrayOf_CommunicationModeTableEntry
//
H245_ArrayOf_CommunicationModeTableEntry::H245_ArrayOf_CommunicationModeTableEntry(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_CommunicationModeTableEntry::CreateObject() const
{
return new H245_CommunicationModeTableEntry;
}
H245_CommunicationModeTableEntry & H245_ArrayOf_CommunicationModeTableEntry::operator[](PINDEX i) const
{
return (H245_CommunicationModeTableEntry &)array[i];
}
PObject * H245_ArrayOf_CommunicationModeTableEntry::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_CommunicationModeTableEntry::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_CommunicationModeTableEntry(*this);
}
//
// CommunicationModeTableEntry_dataType
//
H245_CommunicationModeTableEntry_dataType::H245_CommunicationModeTableEntry_dataType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "videoData "
"audioData "
"data "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_CommunicationModeTableEntry_dataType::operator H245_VideoCapability &() const
#else
H245_CommunicationModeTableEntry_dataType::operator H245_VideoCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoCapability::Class()), PInvalidCast);
#endif
return *(H245_VideoCapability *)choice;
}
H245_CommunicationModeTableEntry_dataType::operator const H245_VideoCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VideoCapability::Class()), PInvalidCast);
#endif
return *(H245_VideoCapability *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_CommunicationModeTableEntry_dataType::operator H245_AudioCapability &() const
#else
H245_CommunicationModeTableEntry_dataType::operator H245_AudioCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioCapability::Class()), PInvalidCast);
#endif
return *(H245_AudioCapability *)choice;
}
H245_CommunicationModeTableEntry_dataType::operator const H245_AudioCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_AudioCapability::Class()), PInvalidCast);
#endif
return *(H245_AudioCapability *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_CommunicationModeTableEntry_dataType::operator H245_DataApplicationCapability &() const
#else
H245_CommunicationModeTableEntry_dataType::operator H245_DataApplicationCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability *)choice;
}
H245_CommunicationModeTableEntry_dataType::operator const H245_DataApplicationCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_DataApplicationCapability::Class()), PInvalidCast);
#endif
return *(H245_DataApplicationCapability *)choice;
}
BOOL H245_CommunicationModeTableEntry_dataType::CreateObject()
{
switch (tag) {
case e_videoData :
choice = new H245_VideoCapability();
return TRUE;
case e_audioData :
choice = new H245_AudioCapability();
return TRUE;
case e_data :
choice = new H245_DataApplicationCapability();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_CommunicationModeTableEntry_dataType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CommunicationModeTableEntry_dataType::Class()), PInvalidCast);
#endif
return new H245_CommunicationModeTableEntry_dataType(*this);
}
//
// ArrayOf_TerminalLabel
//
H245_ArrayOf_TerminalLabel::H245_ArrayOf_TerminalLabel(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_TerminalLabel::CreateObject() const
{
return new H245_TerminalLabel;
}
H245_TerminalLabel & H245_ArrayOf_TerminalLabel::operator[](PINDEX i) const
{
return (H245_TerminalLabel &)array[i];
}
PObject * H245_ArrayOf_TerminalLabel::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_TerminalLabel::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_TerminalLabel(*this);
}
//
// ConferenceResponse_makeMeChairResponse
//
H245_ConferenceResponse_makeMeChairResponse::H245_ConferenceResponse_makeMeChairResponse(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "grantedChairToken "
"deniedChairToken "
#endif
)
{
}
BOOL H245_ConferenceResponse_makeMeChairResponse::CreateObject()
{
choice = (tag <= e_deniedChairToken) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_ConferenceResponse_makeMeChairResponse::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ConferenceResponse_makeMeChairResponse::Class()), PInvalidCast);
#endif
return new H245_ConferenceResponse_makeMeChairResponse(*this);
}
//
// ConferenceResponse_extensionAddressResponse
//
H245_ConferenceResponse_extensionAddressResponse::H245_ConferenceResponse_extensionAddressResponse(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_ConferenceResponse_extensionAddressResponse::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+19) << "extensionAddress = " << setprecision(indent) << m_extensionAddress << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_ConferenceResponse_extensionAddressResponse::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_ConferenceResponse_extensionAddressResponse::Class()), PInvalidCast);
#endif
const H245_ConferenceResponse_extensionAddressResponse & other = (const H245_ConferenceResponse_extensionAddressResponse &)obj;
Comparison result;
if ((result = m_extensionAddress.Compare(other.m_extensionAddress)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_ConferenceResponse_extensionAddressResponse::GetDataLength() const
{
PINDEX length = 0;
length += m_extensionAddress.GetObjectLength();
return length;
}
BOOL H245_ConferenceResponse_extensionAddressResponse::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_extensionAddress.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_ConferenceResponse_extensionAddressResponse::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_extensionAddress.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_ConferenceResponse_extensionAddressResponse::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ConferenceResponse_extensionAddressResponse::Class()), PInvalidCast);
#endif
return new H245_ConferenceResponse_extensionAddressResponse(*this);
}
//
// ConferenceResponse_broadcastMyLogicalChannelResponse
//
H245_ConferenceResponse_broadcastMyLogicalChannelResponse::H245_ConferenceResponse_broadcastMyLogicalChannelResponse(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "grantedBroadcastMyLogicalChannel "
"deniedBroadcastMyLogicalChannel "
#endif
)
{
}
BOOL H245_ConferenceResponse_broadcastMyLogicalChannelResponse::CreateObject()
{
choice = (tag <= e_deniedBroadcastMyLogicalChannel) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_ConferenceResponse_broadcastMyLogicalChannelResponse::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ConferenceResponse_broadcastMyLogicalChannelResponse::Class()), PInvalidCast);
#endif
return new H245_ConferenceResponse_broadcastMyLogicalChannelResponse(*this);
}
//
// ConferenceResponse_makeTerminalBroadcasterResponse
//
H245_ConferenceResponse_makeTerminalBroadcasterResponse::H245_ConferenceResponse_makeTerminalBroadcasterResponse(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "grantedMakeTerminalBroadcaster "
"deniedMakeTerminalBroadcaster "
#endif
)
{
}
BOOL H245_ConferenceResponse_makeTerminalBroadcasterResponse::CreateObject()
{
choice = (tag <= e_deniedMakeTerminalBroadcaster) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_ConferenceResponse_makeTerminalBroadcasterResponse::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ConferenceResponse_makeTerminalBroadcasterResponse::Class()), PInvalidCast);
#endif
return new H245_ConferenceResponse_makeTerminalBroadcasterResponse(*this);
}
//
// ConferenceResponse_sendThisSourceResponse
//
H245_ConferenceResponse_sendThisSourceResponse::H245_ConferenceResponse_sendThisSourceResponse(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "grantedSendThisSource "
"deniedSendThisSource "
#endif
)
{
}
BOOL H245_ConferenceResponse_sendThisSourceResponse::CreateObject()
{
choice = (tag <= e_deniedSendThisSource) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_ConferenceResponse_sendThisSourceResponse::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ConferenceResponse_sendThisSourceResponse::Class()), PInvalidCast);
#endif
return new H245_ConferenceResponse_sendThisSourceResponse(*this);
}
//
// ArrayOf_TerminalInformation
//
H245_ArrayOf_TerminalInformation::H245_ArrayOf_TerminalInformation(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_TerminalInformation::CreateObject() const
{
return new H245_TerminalInformation;
}
H245_TerminalInformation & H245_ArrayOf_TerminalInformation::operator[](PINDEX i) const
{
return (H245_TerminalInformation &)array[i];
}
PObject * H245_ArrayOf_TerminalInformation::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_TerminalInformation::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_TerminalInformation(*this);
}
//
// RemoteMCResponse_reject
//
H245_RemoteMCResponse_reject::H245_RemoteMCResponse_reject(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "unspecified "
"functionNotSupported "
#endif
)
{
}
BOOL H245_RemoteMCResponse_reject::CreateObject()
{
choice = (tag <= e_functionNotSupported) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_RemoteMCResponse_reject::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RemoteMCResponse_reject::Class()), PInvalidCast);
#endif
return new H245_RemoteMCResponse_reject(*this);
}
//
// MultilinkRequest_callInformation
//
H245_MultilinkRequest_callInformation::H245_MultilinkRequest_callInformation(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_maxNumberOfAdditionalConnections.SetConstraints(PASN_Object::FixedConstraint, 1, 65535);
}
#ifndef PASN_NOPRINTON
void H245_MultilinkRequest_callInformation::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+35) << "maxNumberOfAdditionalConnections = " << setprecision(indent) << m_maxNumberOfAdditionalConnections << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkRequest_callInformation::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkRequest_callInformation::Class()), PInvalidCast);
#endif
const H245_MultilinkRequest_callInformation & other = (const H245_MultilinkRequest_callInformation &)obj;
Comparison result;
if ((result = m_maxNumberOfAdditionalConnections.Compare(other.m_maxNumberOfAdditionalConnections)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkRequest_callInformation::GetDataLength() const
{
PINDEX length = 0;
length += m_maxNumberOfAdditionalConnections.GetObjectLength();
return length;
}
BOOL H245_MultilinkRequest_callInformation::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_maxNumberOfAdditionalConnections.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkRequest_callInformation::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_maxNumberOfAdditionalConnections.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkRequest_callInformation::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkRequest_callInformation::Class()), PInvalidCast);
#endif
return new H245_MultilinkRequest_callInformation(*this);
}
//
// MultilinkRequest_addConnection
//
H245_MultilinkRequest_addConnection::H245_MultilinkRequest_addConnection(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_MultilinkRequest_addConnection::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+17) << "sequenceNumber = " << setprecision(indent) << m_sequenceNumber << '\n';
strm << setw(indent+21) << "dialingInformation = " << setprecision(indent) << m_dialingInformation << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkRequest_addConnection::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkRequest_addConnection::Class()), PInvalidCast);
#endif
const H245_MultilinkRequest_addConnection & other = (const H245_MultilinkRequest_addConnection &)obj;
Comparison result;
if ((result = m_sequenceNumber.Compare(other.m_sequenceNumber)) != EqualTo)
return result;
if ((result = m_dialingInformation.Compare(other.m_dialingInformation)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkRequest_addConnection::GetDataLength() const
{
PINDEX length = 0;
length += m_sequenceNumber.GetObjectLength();
length += m_dialingInformation.GetObjectLength();
return length;
}
BOOL H245_MultilinkRequest_addConnection::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_sequenceNumber.Decode(strm))
return FALSE;
if (!m_dialingInformation.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkRequest_addConnection::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_sequenceNumber.Encode(strm);
m_dialingInformation.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkRequest_addConnection::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkRequest_addConnection::Class()), PInvalidCast);
#endif
return new H245_MultilinkRequest_addConnection(*this);
}
//
// MultilinkRequest_removeConnection
//
H245_MultilinkRequest_removeConnection::H245_MultilinkRequest_removeConnection(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_MultilinkRequest_removeConnection::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+23) << "connectionIdentifier = " << setprecision(indent) << m_connectionIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkRequest_removeConnection::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkRequest_removeConnection::Class()), PInvalidCast);
#endif
const H245_MultilinkRequest_removeConnection & other = (const H245_MultilinkRequest_removeConnection &)obj;
Comparison result;
if ((result = m_connectionIdentifier.Compare(other.m_connectionIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkRequest_removeConnection::GetDataLength() const
{
PINDEX length = 0;
length += m_connectionIdentifier.GetObjectLength();
return length;
}
BOOL H245_MultilinkRequest_removeConnection::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_connectionIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkRequest_removeConnection::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_connectionIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkRequest_removeConnection::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkRequest_removeConnection::Class()), PInvalidCast);
#endif
return new H245_MultilinkRequest_removeConnection(*this);
}
//
// MultilinkResponse_callInformation
//
H245_MultilinkResponse_callInformation::H245_MultilinkResponse_callInformation(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_callAssociationNumber.SetConstraints(PASN_Object::FixedConstraint, 0, 4294967295U);
}
#ifndef PASN_NOPRINTON
void H245_MultilinkResponse_callInformation::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+21) << "dialingInformation = " << setprecision(indent) << m_dialingInformation << '\n';
strm << setw(indent+24) << "callAssociationNumber = " << setprecision(indent) << m_callAssociationNumber << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkResponse_callInformation::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkResponse_callInformation::Class()), PInvalidCast);
#endif
const H245_MultilinkResponse_callInformation & other = (const H245_MultilinkResponse_callInformation &)obj;
Comparison result;
if ((result = m_dialingInformation.Compare(other.m_dialingInformation)) != EqualTo)
return result;
if ((result = m_callAssociationNumber.Compare(other.m_callAssociationNumber)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkResponse_callInformation::GetDataLength() const
{
PINDEX length = 0;
length += m_dialingInformation.GetObjectLength();
length += m_callAssociationNumber.GetObjectLength();
return length;
}
BOOL H245_MultilinkResponse_callInformation::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_dialingInformation.Decode(strm))
return FALSE;
if (!m_callAssociationNumber.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkResponse_callInformation::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_dialingInformation.Encode(strm);
m_callAssociationNumber.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkResponse_callInformation::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkResponse_callInformation::Class()), PInvalidCast);
#endif
return new H245_MultilinkResponse_callInformation(*this);
}
//
// MultilinkResponse_removeConnection
//
H245_MultilinkResponse_removeConnection::H245_MultilinkResponse_removeConnection(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_MultilinkResponse_removeConnection::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+23) << "connectionIdentifier = " << setprecision(indent) << m_connectionIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkResponse_removeConnection::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkResponse_removeConnection::Class()), PInvalidCast);
#endif
const H245_MultilinkResponse_removeConnection & other = (const H245_MultilinkResponse_removeConnection &)obj;
Comparison result;
if ((result = m_connectionIdentifier.Compare(other.m_connectionIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkResponse_removeConnection::GetDataLength() const
{
PINDEX length = 0;
length += m_connectionIdentifier.GetObjectLength();
return length;
}
BOOL H245_MultilinkResponse_removeConnection::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_connectionIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkResponse_removeConnection::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_connectionIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkResponse_removeConnection::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkResponse_removeConnection::Class()), PInvalidCast);
#endif
return new H245_MultilinkResponse_removeConnection(*this);
}
//
// MultilinkResponse_maximumHeaderInterval
//
H245_MultilinkResponse_maximumHeaderInterval::H245_MultilinkResponse_maximumHeaderInterval(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_currentInterval.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_MultilinkResponse_maximumHeaderInterval::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+18) << "currentInterval = " << setprecision(indent) << m_currentInterval << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkResponse_maximumHeaderInterval::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkResponse_maximumHeaderInterval::Class()), PInvalidCast);
#endif
const H245_MultilinkResponse_maximumHeaderInterval & other = (const H245_MultilinkResponse_maximumHeaderInterval &)obj;
Comparison result;
if ((result = m_currentInterval.Compare(other.m_currentInterval)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkResponse_maximumHeaderInterval::GetDataLength() const
{
PINDEX length = 0;
length += m_currentInterval.GetObjectLength();
return length;
}
BOOL H245_MultilinkResponse_maximumHeaderInterval::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_currentInterval.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkResponse_maximumHeaderInterval::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_currentInterval.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkResponse_maximumHeaderInterval::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkResponse_maximumHeaderInterval::Class()), PInvalidCast);
#endif
return new H245_MultilinkResponse_maximumHeaderInterval(*this);
}
//
// MultilinkIndication_crcDesired
//
H245_MultilinkIndication_crcDesired::H245_MultilinkIndication_crcDesired(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_MultilinkIndication_crcDesired::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent-1) << "}";
}
#endif
PINDEX H245_MultilinkIndication_crcDesired::GetDataLength() const
{
PINDEX length = 0;
return length;
}
BOOL H245_MultilinkIndication_crcDesired::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkIndication_crcDesired::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkIndication_crcDesired::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkIndication_crcDesired::Class()), PInvalidCast);
#endif
return new H245_MultilinkIndication_crcDesired(*this);
}
//
// MultilinkIndication_excessiveError
//
H245_MultilinkIndication_excessiveError::H245_MultilinkIndication_excessiveError(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_MultilinkIndication_excessiveError::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+23) << "connectionIdentifier = " << setprecision(indent) << m_connectionIdentifier << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MultilinkIndication_excessiveError::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MultilinkIndication_excessiveError::Class()), PInvalidCast);
#endif
const H245_MultilinkIndication_excessiveError & other = (const H245_MultilinkIndication_excessiveError &)obj;
Comparison result;
if ((result = m_connectionIdentifier.Compare(other.m_connectionIdentifier)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MultilinkIndication_excessiveError::GetDataLength() const
{
PINDEX length = 0;
length += m_connectionIdentifier.GetObjectLength();
return length;
}
BOOL H245_MultilinkIndication_excessiveError::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_connectionIdentifier.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MultilinkIndication_excessiveError::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_connectionIdentifier.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MultilinkIndication_excessiveError::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkIndication_excessiveError::Class()), PInvalidCast);
#endif
return new H245_MultilinkIndication_excessiveError(*this);
}
//
// ArrayOf_DialingInformationNumber
//
H245_ArrayOf_DialingInformationNumber::H245_ArrayOf_DialingInformationNumber(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_DialingInformationNumber::CreateObject() const
{
return new H245_DialingInformationNumber;
}
H245_DialingInformationNumber & H245_ArrayOf_DialingInformationNumber::operator[](PINDEX i) const
{
return (H245_DialingInformationNumber &)array[i];
}
PObject * H245_ArrayOf_DialingInformationNumber::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_DialingInformationNumber::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_DialingInformationNumber(*this);
}
//
// ArrayOf_DialingInformationNetworkType
//
H245_ArrayOf_DialingInformationNetworkType::H245_ArrayOf_DialingInformationNetworkType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_DialingInformationNetworkType::CreateObject() const
{
return new H245_DialingInformationNetworkType;
}
H245_DialingInformationNetworkType & H245_ArrayOf_DialingInformationNetworkType::operator[](PINDEX i) const
{
return (H245_DialingInformationNetworkType &)array[i];
}
PObject * H245_ArrayOf_DialingInformationNetworkType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_DialingInformationNetworkType::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_DialingInformationNetworkType(*this);
}
//
// FlowControlCommand_scope
//
H245_FlowControlCommand_scope::H245_FlowControlCommand_scope(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "logicalChannelNumber "
"resourceID "
"wholeMultiplex "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_FlowControlCommand_scope::operator H245_LogicalChannelNumber &() const
#else
H245_FlowControlCommand_scope::operator H245_LogicalChannelNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
H245_FlowControlCommand_scope::operator const H245_LogicalChannelNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
BOOL H245_FlowControlCommand_scope::CreateObject()
{
switch (tag) {
case e_logicalChannelNumber :
choice = new H245_LogicalChannelNumber();
return TRUE;
case e_resourceID :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
return TRUE;
case e_wholeMultiplex :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_FlowControlCommand_scope::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_FlowControlCommand_scope::Class()), PInvalidCast);
#endif
return new H245_FlowControlCommand_scope(*this);
}
//
// FlowControlCommand_restriction
//
H245_FlowControlCommand_restriction::H245_FlowControlCommand_restriction(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "maximumBitRate "
"noRestriction "
#endif
)
{
}
BOOL H245_FlowControlCommand_restriction::CreateObject()
{
switch (tag) {
case e_maximumBitRate :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 16777215);
return TRUE;
case e_noRestriction :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_FlowControlCommand_restriction::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_FlowControlCommand_restriction::Class()), PInvalidCast);
#endif
return new H245_FlowControlCommand_restriction(*this);
}
//
// EndSessionCommand_gstnOptions
//
H245_EndSessionCommand_gstnOptions::H245_EndSessionCommand_gstnOptions(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 5, TRUE
#ifndef PASN_NOPRINTON
, "telephonyMode "
"v8bis "
"v34DSVD "
"v34DuplexFAX "
"v34H324 "
#endif
)
{
}
BOOL H245_EndSessionCommand_gstnOptions::CreateObject()
{
choice = (tag <= e_v34H324) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_EndSessionCommand_gstnOptions::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_EndSessionCommand_gstnOptions::Class()), PInvalidCast);
#endif
return new H245_EndSessionCommand_gstnOptions(*this);
}
//
// EndSessionCommand_isdnOptions
//
H245_EndSessionCommand_isdnOptions::H245_EndSessionCommand_isdnOptions(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "telephonyMode "
"v140 "
"terminalOnHold "
#endif
)
{
}
BOOL H245_EndSessionCommand_isdnOptions::CreateObject()
{
choice = (tag <= e_terminalOnHold) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_EndSessionCommand_isdnOptions::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_EndSessionCommand_isdnOptions::Class()), PInvalidCast);
#endif
return new H245_EndSessionCommand_isdnOptions(*this);
}
//
// MiscellaneousCommand_type
//
H245_MiscellaneousCommand_type::H245_MiscellaneousCommand_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 10, TRUE
#ifndef PASN_NOPRINTON
, "equaliseDelay "
"zeroDelay "
"multipointModeCommand "
"cancelMultipointModeCommand "
"videoFreezePicture "
"videoFastUpdatePicture "
"videoFastUpdateGOB "
"videoTemporalSpatialTradeOff "
"videoSendSyncEveryGOB "
"videoSendSyncEveryGOBCancel "
"videoFastUpdateMB "
"maxH223MUXPDUsize "
"encryptionUpdate "
"encryptionUpdateRequest "
"switchReceiveMediaOff "
"switchReceiveMediaOn "
"progressiveRefinementStart "
"progressiveRefinementAbortOne "
"progressiveRefinementAbortContinuous "
"videoBadMBs "
"lostPicture "
"lostPartialPicture "
"recoveryReferencePicture "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_videoFastUpdateGOB &() const
#else
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_videoFastUpdateGOB &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_videoFastUpdateGOB::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_videoFastUpdateGOB *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_MiscellaneousCommand_type_videoFastUpdateGOB &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_videoFastUpdateGOB::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_videoFastUpdateGOB *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_videoFastUpdateMB &() const
#else
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_videoFastUpdateMB &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_videoFastUpdateMB::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_videoFastUpdateMB *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_MiscellaneousCommand_type_videoFastUpdateMB &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_videoFastUpdateMB::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_videoFastUpdateMB *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_EncryptionSync &() const
#else
H245_MiscellaneousCommand_type::operator H245_EncryptionSync &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_EncryptionSync::Class()), PInvalidCast);
#endif
return *(H245_EncryptionSync *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_EncryptionSync &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_EncryptionSync::Class()), PInvalidCast);
#endif
return *(H245_EncryptionSync *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_EncryptionUpdateRequest &() const
#else
H245_MiscellaneousCommand_type::operator H245_EncryptionUpdateRequest &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_EncryptionUpdateRequest::Class()), PInvalidCast);
#endif
return *(H245_EncryptionUpdateRequest *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_EncryptionUpdateRequest &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_EncryptionUpdateRequest::Class()), PInvalidCast);
#endif
return *(H245_EncryptionUpdateRequest *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_progressiveRefinementStart &() const
#else
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_progressiveRefinementStart &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_progressiveRefinementStart::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_progressiveRefinementStart *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_MiscellaneousCommand_type_progressiveRefinementStart &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_progressiveRefinementStart::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_progressiveRefinementStart *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_videoBadMBs &() const
#else
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_videoBadMBs &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_videoBadMBs::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_videoBadMBs *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_MiscellaneousCommand_type_videoBadMBs &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_videoBadMBs::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_videoBadMBs *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_ArrayOf_PictureReference &() const
#else
H245_MiscellaneousCommand_type::operator H245_ArrayOf_PictureReference &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_ArrayOf_PictureReference::Class()), PInvalidCast);
#endif
return *(H245_ArrayOf_PictureReference *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_ArrayOf_PictureReference &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_ArrayOf_PictureReference::Class()), PInvalidCast);
#endif
return *(H245_ArrayOf_PictureReference *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_lostPartialPicture &() const
#else
H245_MiscellaneousCommand_type::operator H245_MiscellaneousCommand_type_lostPartialPicture &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_lostPartialPicture::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_lostPartialPicture *)choice;
}
H245_MiscellaneousCommand_type::operator const H245_MiscellaneousCommand_type_lostPartialPicture &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousCommand_type_lostPartialPicture::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousCommand_type_lostPartialPicture *)choice;
}
BOOL H245_MiscellaneousCommand_type::CreateObject()
{
switch (tag) {
case e_equaliseDelay :
case e_zeroDelay :
case e_multipointModeCommand :
case e_cancelMultipointModeCommand :
case e_videoFreezePicture :
case e_videoFastUpdatePicture :
case e_videoSendSyncEveryGOB :
case e_videoSendSyncEveryGOBCancel :
case e_switchReceiveMediaOff :
case e_switchReceiveMediaOn :
case e_progressiveRefinementAbortOne :
case e_progressiveRefinementAbortContinuous :
choice = new PASN_Null();
return TRUE;
case e_videoFastUpdateGOB :
choice = new H245_MiscellaneousCommand_type_videoFastUpdateGOB();
return TRUE;
case e_videoTemporalSpatialTradeOff :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 31);
return TRUE;
case e_videoFastUpdateMB :
choice = new H245_MiscellaneousCommand_type_videoFastUpdateMB();
return TRUE;
case e_maxH223MUXPDUsize :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 1, 65535);
return TRUE;
case e_encryptionUpdate :
choice = new H245_EncryptionSync();
return TRUE;
case e_encryptionUpdateRequest :
choice = new H245_EncryptionUpdateRequest();
return TRUE;
case e_progressiveRefinementStart :
choice = new H245_MiscellaneousCommand_type_progressiveRefinementStart();
return TRUE;
case e_videoBadMBs :
choice = new H245_MiscellaneousCommand_type_videoBadMBs();
return TRUE;
case e_lostPicture :
case e_recoveryReferencePicture :
choice = new H245_ArrayOf_PictureReference();
return TRUE;
case e_lostPartialPicture :
choice = new H245_MiscellaneousCommand_type_lostPartialPicture();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MiscellaneousCommand_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousCommand_type::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousCommand_type(*this);
}
//
// H223MultiplexReconfiguration_h223ModeChange
//
H245_H223MultiplexReconfiguration_h223ModeChange::H245_H223MultiplexReconfiguration_h223ModeChange(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "toLevel0 "
"toLevel1 "
"toLevel2 "
"toLevel2withOptionalHeader "
#endif
)
{
}
BOOL H245_H223MultiplexReconfiguration_h223ModeChange::CreateObject()
{
choice = (tag <= e_toLevel2withOptionalHeader) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223MultiplexReconfiguration_h223ModeChange::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223MultiplexReconfiguration_h223ModeChange::Class()), PInvalidCast);
#endif
return new H245_H223MultiplexReconfiguration_h223ModeChange(*this);
}
//
// H223MultiplexReconfiguration_h223AnnexADoubleFlag
//
H245_H223MultiplexReconfiguration_h223AnnexADoubleFlag::H245_H223MultiplexReconfiguration_h223AnnexADoubleFlag(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "start "
"stop "
#endif
)
{
}
BOOL H245_H223MultiplexReconfiguration_h223AnnexADoubleFlag::CreateObject()
{
choice = (tag <= e_stop) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_H223MultiplexReconfiguration_h223AnnexADoubleFlag::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223MultiplexReconfiguration_h223AnnexADoubleFlag::Class()), PInvalidCast);
#endif
return new H245_H223MultiplexReconfiguration_h223AnnexADoubleFlag(*this);
}
//
// NewATMVCCommand_aal
//
H245_NewATMVCCommand_aal::H245_NewATMVCCommand_aal(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "aal1 "
"aal5 "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_NewATMVCCommand_aal::operator H245_NewATMVCCommand_aal_aal1 &() const
#else
H245_NewATMVCCommand_aal::operator H245_NewATMVCCommand_aal_aal1 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCCommand_aal_aal1::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCCommand_aal_aal1 *)choice;
}
H245_NewATMVCCommand_aal::operator const H245_NewATMVCCommand_aal_aal1 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCCommand_aal_aal1::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCCommand_aal_aal1 *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_NewATMVCCommand_aal::operator H245_NewATMVCCommand_aal_aal5 &() const
#else
H245_NewATMVCCommand_aal::operator H245_NewATMVCCommand_aal_aal5 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCCommand_aal_aal5::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCCommand_aal_aal5 *)choice;
}
H245_NewATMVCCommand_aal::operator const H245_NewATMVCCommand_aal_aal5 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCCommand_aal_aal5::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCCommand_aal_aal5 *)choice;
}
BOOL H245_NewATMVCCommand_aal::CreateObject()
{
switch (tag) {
case e_aal1 :
choice = new H245_NewATMVCCommand_aal_aal1();
return TRUE;
case e_aal5 :
choice = new H245_NewATMVCCommand_aal_aal5();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_NewATMVCCommand_aal::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCCommand_aal::Class()), PInvalidCast);
#endif
return new H245_NewATMVCCommand_aal(*this);
}
//
// NewATMVCCommand_multiplex
//
H245_NewATMVCCommand_multiplex::H245_NewATMVCCommand_multiplex(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noMultiplex "
"transportStream "
"programStream "
#endif
)
{
}
BOOL H245_NewATMVCCommand_multiplex::CreateObject()
{
choice = (tag <= e_programStream) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_NewATMVCCommand_multiplex::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCCommand_multiplex::Class()), PInvalidCast);
#endif
return new H245_NewATMVCCommand_multiplex(*this);
}
//
// MobileMultilinkReconfigurationCommand_status
//
H245_MobileMultilinkReconfigurationCommand_status::H245_MobileMultilinkReconfigurationCommand_status(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "synchronized "
"reconfiguration "
#endif
)
{
}
BOOL H245_MobileMultilinkReconfigurationCommand_status::CreateObject()
{
choice = (tag <= e_reconfiguration) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_MobileMultilinkReconfigurationCommand_status::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MobileMultilinkReconfigurationCommand_status::Class()), PInvalidCast);
#endif
return new H245_MobileMultilinkReconfigurationCommand_status(*this);
}
//
// FunctionNotSupported_cause
//
H245_FunctionNotSupported_cause::H245_FunctionNotSupported_cause(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "syntaxError "
"semanticError "
"unknownFunction "
#endif
)
{
}
BOOL H245_FunctionNotSupported_cause::CreateObject()
{
choice = (tag <= e_unknownFunction) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_FunctionNotSupported_cause::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_FunctionNotSupported_cause::Class()), PInvalidCast);
#endif
return new H245_FunctionNotSupported_cause(*this);
}
//
// MiscellaneousIndication_type
//
H245_MiscellaneousIndication_type::H245_MiscellaneousIndication_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 10, TRUE
#ifndef PASN_NOPRINTON
, "logicalChannelActive "
"logicalChannelInactive "
"multipointConference "
"cancelMultipointConference "
"multipointZeroComm "
"cancelMultipointZeroComm "
"multipointSecondaryStatus "
"cancelMultipointSecondaryStatus "
"videoIndicateReadyToActivate "
"videoTemporalSpatialTradeOff "
"videoNotDecodedMBs "
"transportCapability "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousIndication_type::operator H245_MiscellaneousIndication_type_videoNotDecodedMBs &() const
#else
H245_MiscellaneousIndication_type::operator H245_MiscellaneousIndication_type_videoNotDecodedMBs &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousIndication_type_videoNotDecodedMBs::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousIndication_type_videoNotDecodedMBs *)choice;
}
H245_MiscellaneousIndication_type::operator const H245_MiscellaneousIndication_type_videoNotDecodedMBs &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MiscellaneousIndication_type_videoNotDecodedMBs::Class()), PInvalidCast);
#endif
return *(H245_MiscellaneousIndication_type_videoNotDecodedMBs *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MiscellaneousIndication_type::operator H245_TransportCapability &() const
#else
H245_MiscellaneousIndication_type::operator H245_TransportCapability &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_TransportCapability::Class()), PInvalidCast);
#endif
return *(H245_TransportCapability *)choice;
}
H245_MiscellaneousIndication_type::operator const H245_TransportCapability &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_TransportCapability::Class()), PInvalidCast);
#endif
return *(H245_TransportCapability *)choice;
}
BOOL H245_MiscellaneousIndication_type::CreateObject()
{
switch (tag) {
case e_logicalChannelActive :
case e_logicalChannelInactive :
case e_multipointConference :
case e_cancelMultipointConference :
case e_multipointZeroComm :
case e_cancelMultipointZeroComm :
case e_multipointSecondaryStatus :
case e_cancelMultipointSecondaryStatus :
case e_videoIndicateReadyToActivate :
choice = new PASN_Null();
return TRUE;
case e_videoTemporalSpatialTradeOff :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 31);
return TRUE;
case e_videoNotDecodedMBs :
choice = new H245_MiscellaneousIndication_type_videoNotDecodedMBs();
return TRUE;
case e_transportCapability :
choice = new H245_TransportCapability();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MiscellaneousIndication_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousIndication_type::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousIndication_type(*this);
}
//
// JitterIndication_scope
//
H245_JitterIndication_scope::H245_JitterIndication_scope(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "logicalChannelNumber "
"resourceID "
"wholeMultiplex "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_JitterIndication_scope::operator H245_LogicalChannelNumber &() const
#else
H245_JitterIndication_scope::operator H245_LogicalChannelNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
H245_JitterIndication_scope::operator const H245_LogicalChannelNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
BOOL H245_JitterIndication_scope::CreateObject()
{
switch (tag) {
case e_logicalChannelNumber :
choice = new H245_LogicalChannelNumber();
return TRUE;
case e_resourceID :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
return TRUE;
case e_wholeMultiplex :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_JitterIndication_scope::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_JitterIndication_scope::Class()), PInvalidCast);
#endif
return new H245_JitterIndication_scope(*this);
}
//
// NewATMVCIndication_aal
//
H245_NewATMVCIndication_aal::H245_NewATMVCIndication_aal(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "aal1 "
"aal5 "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_NewATMVCIndication_aal::operator H245_NewATMVCIndication_aal_aal1 &() const
#else
H245_NewATMVCIndication_aal::operator H245_NewATMVCIndication_aal_aal1 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCIndication_aal_aal1::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCIndication_aal_aal1 *)choice;
}
H245_NewATMVCIndication_aal::operator const H245_NewATMVCIndication_aal_aal1 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCIndication_aal_aal1::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCIndication_aal_aal1 *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_NewATMVCIndication_aal::operator H245_NewATMVCIndication_aal_aal5 &() const
#else
H245_NewATMVCIndication_aal::operator H245_NewATMVCIndication_aal_aal5 &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCIndication_aal_aal5::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCIndication_aal_aal5 *)choice;
}
H245_NewATMVCIndication_aal::operator const H245_NewATMVCIndication_aal_aal5 &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NewATMVCIndication_aal_aal5::Class()), PInvalidCast);
#endif
return *(H245_NewATMVCIndication_aal_aal5 *)choice;
}
BOOL H245_NewATMVCIndication_aal::CreateObject()
{
switch (tag) {
case e_aal1 :
choice = new H245_NewATMVCIndication_aal_aal1();
return TRUE;
case e_aal5 :
choice = new H245_NewATMVCIndication_aal_aal5();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_NewATMVCIndication_aal::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCIndication_aal::Class()), PInvalidCast);
#endif
return new H245_NewATMVCIndication_aal(*this);
}
//
// NewATMVCIndication_multiplex
//
H245_NewATMVCIndication_multiplex::H245_NewATMVCIndication_multiplex(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noMultiplex "
"transportStream "
"programStream "
#endif
)
{
}
BOOL H245_NewATMVCIndication_multiplex::CreateObject()
{
choice = (tag <= e_programStream) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_NewATMVCIndication_multiplex::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCIndication_multiplex::Class()), PInvalidCast);
#endif
return new H245_NewATMVCIndication_multiplex(*this);
}
//
// UserInputIndication_userInputSupportIndication
//
H245_UserInputIndication_userInputSupportIndication::H245_UserInputIndication_userInputSupportIndication(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 4, TRUE
#ifndef PASN_NOPRINTON
, "nonStandard "
"basicString "
"iA5String "
"generalString "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_UserInputIndication_userInputSupportIndication::operator H245_NonStandardParameter &() const
#else
H245_UserInputIndication_userInputSupportIndication::operator H245_NonStandardParameter &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
H245_UserInputIndication_userInputSupportIndication::operator const H245_NonStandardParameter &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_NonStandardParameter::Class()), PInvalidCast);
#endif
return *(H245_NonStandardParameter *)choice;
}
BOOL H245_UserInputIndication_userInputSupportIndication::CreateObject()
{
switch (tag) {
case e_nonStandard :
choice = new H245_NonStandardParameter();
return TRUE;
case e_basicString :
case e_iA5String :
case e_generalString :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_UserInputIndication_userInputSupportIndication::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UserInputIndication_userInputSupportIndication::Class()), PInvalidCast);
#endif
return new H245_UserInputIndication_userInputSupportIndication(*this);
}
//
// UserInputIndication_extendedAlphanumeric
//
H245_UserInputIndication_extendedAlphanumeric::H245_UserInputIndication_extendedAlphanumeric(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 1, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_UserInputIndication_extendedAlphanumeric::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+15) << "alphanumeric = " << setprecision(indent) << m_alphanumeric << '\n';
if (HasOptionalField(e_rtpPayloadIndication))
strm << setw(indent+23) << "rtpPayloadIndication = " << setprecision(indent) << m_rtpPayloadIndication << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_UserInputIndication_extendedAlphanumeric::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_UserInputIndication_extendedAlphanumeric::Class()), PInvalidCast);
#endif
const H245_UserInputIndication_extendedAlphanumeric & other = (const H245_UserInputIndication_extendedAlphanumeric &)obj;
Comparison result;
if ((result = m_alphanumeric.Compare(other.m_alphanumeric)) != EqualTo)
return result;
if ((result = m_rtpPayloadIndication.Compare(other.m_rtpPayloadIndication)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_UserInputIndication_extendedAlphanumeric::GetDataLength() const
{
PINDEX length = 0;
length += m_alphanumeric.GetObjectLength();
if (HasOptionalField(e_rtpPayloadIndication))
length += m_rtpPayloadIndication.GetObjectLength();
return length;
}
BOOL H245_UserInputIndication_extendedAlphanumeric::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_alphanumeric.Decode(strm))
return FALSE;
if (HasOptionalField(e_rtpPayloadIndication) && !m_rtpPayloadIndication.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_UserInputIndication_extendedAlphanumeric::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_alphanumeric.Encode(strm);
if (HasOptionalField(e_rtpPayloadIndication))
m_rtpPayloadIndication.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_UserInputIndication_extendedAlphanumeric::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UserInputIndication_extendedAlphanumeric::Class()), PInvalidCast);
#endif
return new H245_UserInputIndication_extendedAlphanumeric(*this);
}
//
// FlowControlIndication_scope
//
H245_FlowControlIndication_scope::H245_FlowControlIndication_scope(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, FALSE
#ifndef PASN_NOPRINTON
, "logicalChannelNumber "
"resourceID "
"wholeMultiplex "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_FlowControlIndication_scope::operator H245_LogicalChannelNumber &() const
#else
H245_FlowControlIndication_scope::operator H245_LogicalChannelNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
H245_FlowControlIndication_scope::operator const H245_LogicalChannelNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_LogicalChannelNumber::Class()), PInvalidCast);
#endif
return *(H245_LogicalChannelNumber *)choice;
}
BOOL H245_FlowControlIndication_scope::CreateObject()
{
switch (tag) {
case e_logicalChannelNumber :
choice = new H245_LogicalChannelNumber();
return TRUE;
case e_resourceID :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
return TRUE;
case e_wholeMultiplex :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_FlowControlIndication_scope::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_FlowControlIndication_scope::Class()), PInvalidCast);
#endif
return new H245_FlowControlIndication_scope(*this);
}
//
// FlowControlIndication_restriction
//
H245_FlowControlIndication_restriction::H245_FlowControlIndication_restriction(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "maximumBitRate "
"noRestriction "
#endif
)
{
}
BOOL H245_FlowControlIndication_restriction::CreateObject()
{
switch (tag) {
case e_maximumBitRate :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 16777215);
return TRUE;
case e_noRestriction :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_FlowControlIndication_restriction::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_FlowControlIndication_restriction::Class()), PInvalidCast);
#endif
return new H245_FlowControlIndication_restriction(*this);
}
//
// TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded
//
H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "highestEntryNumberProcessed "
"noneProcessed "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::operator H245_CapabilityTableEntryNumber &() const
#else
H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::operator H245_CapabilityTableEntryNumber &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CapabilityTableEntryNumber::Class()), PInvalidCast);
#endif
return *(H245_CapabilityTableEntryNumber *)choice;
}
H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::operator const H245_CapabilityTableEntryNumber &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_CapabilityTableEntryNumber::Class()), PInvalidCast);
#endif
return *(H245_CapabilityTableEntryNumber *)choice;
}
BOOL H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::CreateObject()
{
switch (tag) {
case e_highestEntryNumberProcessed :
choice = new H245_CapabilityTableEntryNumber();
return TRUE;
case e_noneProcessed :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded::Class()), PInvalidCast);
#endif
return new H245_TerminalCapabilitySetReject_cause_tableEntryCapacityExceeded(*this);
}
//
// VCCapability_availableBitRates_type
//
H245_VCCapability_availableBitRates_type::H245_VCCapability_availableBitRates_type(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "singleBitRate "
"rangeOfBitRates "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_VCCapability_availableBitRates_type::operator H245_VCCapability_availableBitRates_type_rangeOfBitRates &() const
#else
H245_VCCapability_availableBitRates_type::operator H245_VCCapability_availableBitRates_type_rangeOfBitRates &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VCCapability_availableBitRates_type_rangeOfBitRates::Class()), PInvalidCast);
#endif
return *(H245_VCCapability_availableBitRates_type_rangeOfBitRates *)choice;
}
H245_VCCapability_availableBitRates_type::operator const H245_VCCapability_availableBitRates_type_rangeOfBitRates &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_VCCapability_availableBitRates_type_rangeOfBitRates::Class()), PInvalidCast);
#endif
return *(H245_VCCapability_availableBitRates_type_rangeOfBitRates *)choice;
}
BOOL H245_VCCapability_availableBitRates_type::CreateObject()
{
switch (tag) {
case e_singleBitRate :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 1, 65535);
return TRUE;
case e_rangeOfBitRates :
choice = new H245_VCCapability_availableBitRates_type_rangeOfBitRates();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_VCCapability_availableBitRates_type::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_VCCapability_availableBitRates_type::Class()), PInvalidCast);
#endif
return new H245_VCCapability_availableBitRates_type(*this);
}
//
// ArrayOf_Q2931Address
//
H245_ArrayOf_Q2931Address::H245_ArrayOf_Q2931Address(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_Q2931Address::CreateObject() const
{
return new H245_Q2931Address;
}
H245_Q2931Address & H245_ArrayOf_Q2931Address::operator[](PINDEX i) const
{
return (H245_Q2931Address &)array[i];
}
PObject * H245_ArrayOf_Q2931Address::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_Q2931Address::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_Q2931Address(*this);
}
//
// H223Capability_h223MultiplexTableCapability_enhanced
//
H245_H223Capability_h223MultiplexTableCapability_enhanced::H245_H223Capability_h223MultiplexTableCapability_enhanced(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_maximumNestingDepth.SetConstraints(PASN_Object::FixedConstraint, 1, 15);
m_maximumElementListSize.SetConstraints(PASN_Object::FixedConstraint, 2, 255);
m_maximumSubElementListSize.SetConstraints(PASN_Object::FixedConstraint, 2, 255);
}
#ifndef PASN_NOPRINTON
void H245_H223Capability_h223MultiplexTableCapability_enhanced::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+22) << "maximumNestingDepth = " << setprecision(indent) << m_maximumNestingDepth << '\n';
strm << setw(indent+25) << "maximumElementListSize = " << setprecision(indent) << m_maximumElementListSize << '\n';
strm << setw(indent+28) << "maximumSubElementListSize = " << setprecision(indent) << m_maximumSubElementListSize << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_H223Capability_h223MultiplexTableCapability_enhanced::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_H223Capability_h223MultiplexTableCapability_enhanced::Class()), PInvalidCast);
#endif
const H245_H223Capability_h223MultiplexTableCapability_enhanced & other = (const H245_H223Capability_h223MultiplexTableCapability_enhanced &)obj;
Comparison result;
if ((result = m_maximumNestingDepth.Compare(other.m_maximumNestingDepth)) != EqualTo)
return result;
if ((result = m_maximumElementListSize.Compare(other.m_maximumElementListSize)) != EqualTo)
return result;
if ((result = m_maximumSubElementListSize.Compare(other.m_maximumSubElementListSize)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_H223Capability_h223MultiplexTableCapability_enhanced::GetDataLength() const
{
PINDEX length = 0;
length += m_maximumNestingDepth.GetObjectLength();
length += m_maximumElementListSize.GetObjectLength();
length += m_maximumSubElementListSize.GetObjectLength();
return length;
}
BOOL H245_H223Capability_h223MultiplexTableCapability_enhanced::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_maximumNestingDepth.Decode(strm))
return FALSE;
if (!m_maximumElementListSize.Decode(strm))
return FALSE;
if (!m_maximumSubElementListSize.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_H223Capability_h223MultiplexTableCapability_enhanced::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_maximumNestingDepth.Encode(strm);
m_maximumElementListSize.Encode(strm);
m_maximumSubElementListSize.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_H223Capability_h223MultiplexTableCapability_enhanced::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223Capability_h223MultiplexTableCapability_enhanced::Class()), PInvalidCast);
#endif
return new H245_H223Capability_h223MultiplexTableCapability_enhanced(*this);
}
//
// ArrayOf_RTPH263VideoRedundancyFrameMapping
//
H245_ArrayOf_RTPH263VideoRedundancyFrameMapping::H245_ArrayOf_RTPH263VideoRedundancyFrameMapping(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_RTPH263VideoRedundancyFrameMapping::CreateObject() const
{
return new H245_RTPH263VideoRedundancyFrameMapping;
}
H245_RTPH263VideoRedundancyFrameMapping & H245_ArrayOf_RTPH263VideoRedundancyFrameMapping::operator[](PINDEX i) const
{
return (H245_RTPH263VideoRedundancyFrameMapping &)array[i];
}
PObject * H245_ArrayOf_RTPH263VideoRedundancyFrameMapping::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_RTPH263VideoRedundancyFrameMapping::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_RTPH263VideoRedundancyFrameMapping(*this);
}
//
// RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters
//
H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_mpuHorizMBs.SetConstraints(PASN_Object::FixedConstraint, 1, 128);
m_mpuVertMBs.SetConstraints(PASN_Object::FixedConstraint, 1, 72);
m_mpuTotalNumber.SetConstraints(PASN_Object::FixedConstraint, 1, 65536);
}
#ifndef PASN_NOPRINTON
void H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+14) << "mpuHorizMBs = " << setprecision(indent) << m_mpuHorizMBs << '\n';
strm << setw(indent+13) << "mpuVertMBs = " << setprecision(indent) << m_mpuVertMBs << '\n';
strm << setw(indent+17) << "mpuTotalNumber = " << setprecision(indent) << m_mpuTotalNumber << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::Class()), PInvalidCast);
#endif
const H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters & other = (const H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters &)obj;
Comparison result;
if ((result = m_mpuHorizMBs.Compare(other.m_mpuHorizMBs)) != EqualTo)
return result;
if ((result = m_mpuVertMBs.Compare(other.m_mpuVertMBs)) != EqualTo)
return result;
if ((result = m_mpuTotalNumber.Compare(other.m_mpuTotalNumber)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::GetDataLength() const
{
PINDEX length = 0;
length += m_mpuHorizMBs.GetObjectLength();
length += m_mpuVertMBs.GetObjectLength();
length += m_mpuTotalNumber.GetObjectLength();
return length;
}
BOOL H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_mpuHorizMBs.Decode(strm))
return FALSE;
if (!m_mpuVertMBs.Decode(strm))
return FALSE;
if (!m_mpuTotalNumber.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_mpuHorizMBs.Encode(strm);
m_mpuVertMBs.Encode(strm);
m_mpuTotalNumber.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters::Class()), PInvalidCast);
#endif
return new H245_RefPictureSelection_enhancedReferencePicSelect_subPictureRemovalParameters(*this);
}
//
// CustomPictureFormat_mPI_customPCF
//
H245_CustomPictureFormat_mPI_customPCF::H245_CustomPictureFormat_mPI_customPCF(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
SetConstraints(PASN_Object::FixedConstraint, 1, 16);
}
PASN_Object * H245_CustomPictureFormat_mPI_customPCF::CreateObject() const
{
return new H245_CustomPictureFormat_mPI_customPCF_subtype;
}
H245_CustomPictureFormat_mPI_customPCF_subtype & H245_CustomPictureFormat_mPI_customPCF::operator[](PINDEX i) const
{
return (H245_CustomPictureFormat_mPI_customPCF_subtype &)array[i];
}
PObject * H245_CustomPictureFormat_mPI_customPCF::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CustomPictureFormat_mPI_customPCF::Class()), PInvalidCast);
#endif
return new H245_CustomPictureFormat_mPI_customPCF(*this);
}
//
// CustomPictureFormat_pixelAspectInformation_pixelAspectCode
//
H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
SetConstraints(PASN_Object::FixedConstraint, 1, 14);
}
PASN_Object * H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::CreateObject() const
{
PASN_Integer * obj = new PASN_Integer;
obj->SetConstraints(PASN_Object::FixedConstraint, 1, 14);
return obj;
}
PASN_Integer & H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::operator[](PINDEX i) const
{
return (PASN_Integer &)array[i];
}
PObject * H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode::Class()), PInvalidCast);
#endif
return new H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode(*this);
}
//
// CustomPictureFormat_pixelAspectInformation_extendedPAR
//
H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::H245_CustomPictureFormat_pixelAspectInformation_extendedPAR(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
SetConstraints(PASN_Object::FixedConstraint, 1, 256);
}
PASN_Object * H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::CreateObject() const
{
return new H245_CustomPictureFormat_pixelAspectInformation_extendedPAR_subtype;
}
H245_CustomPictureFormat_pixelAspectInformation_extendedPAR_subtype & H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::operator[](PINDEX i) const
{
return (H245_CustomPictureFormat_pixelAspectInformation_extendedPAR_subtype &)array[i];
}
PObject * H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_CustomPictureFormat_pixelAspectInformation_extendedPAR::Class()), PInvalidCast);
#endif
return new H245_CustomPictureFormat_pixelAspectInformation_extendedPAR(*this);
}
//
// DataApplicationCapability_application_t84
//
H245_DataApplicationCapability_application_t84::H245_DataApplicationCapability_application_t84(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_DataApplicationCapability_application_t84::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+14) << "t84Protocol = " << setprecision(indent) << m_t84Protocol << '\n';
strm << setw(indent+13) << "t84Profile = " << setprecision(indent) << m_t84Profile << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_DataApplicationCapability_application_t84::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_DataApplicationCapability_application_t84::Class()), PInvalidCast);
#endif
const H245_DataApplicationCapability_application_t84 & other = (const H245_DataApplicationCapability_application_t84 &)obj;
Comparison result;
if ((result = m_t84Protocol.Compare(other.m_t84Protocol)) != EqualTo)
return result;
if ((result = m_t84Profile.Compare(other.m_t84Profile)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_DataApplicationCapability_application_t84::GetDataLength() const
{
PINDEX length = 0;
length += m_t84Protocol.GetObjectLength();
length += m_t84Profile.GetObjectLength();
return length;
}
BOOL H245_DataApplicationCapability_application_t84::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_t84Protocol.Decode(strm))
return FALSE;
if (!m_t84Profile.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_DataApplicationCapability_application_t84::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_t84Protocol.Encode(strm);
m_t84Profile.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_DataApplicationCapability_application_t84::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_DataApplicationCapability_application_t84::Class()), PInvalidCast);
#endif
return new H245_DataApplicationCapability_application_t84(*this);
}
//
// DataApplicationCapability_application_nlpid
//
H245_DataApplicationCapability_application_nlpid::H245_DataApplicationCapability_application_nlpid(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_DataApplicationCapability_application_nlpid::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+16) << "nlpidProtocol = " << setprecision(indent) << m_nlpidProtocol << '\n';
strm << setw(indent+12) << "nlpidData = " << setprecision(indent) << m_nlpidData << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_DataApplicationCapability_application_nlpid::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_DataApplicationCapability_application_nlpid::Class()), PInvalidCast);
#endif
const H245_DataApplicationCapability_application_nlpid & other = (const H245_DataApplicationCapability_application_nlpid &)obj;
Comparison result;
if ((result = m_nlpidProtocol.Compare(other.m_nlpidProtocol)) != EqualTo)
return result;
if ((result = m_nlpidData.Compare(other.m_nlpidData)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_DataApplicationCapability_application_nlpid::GetDataLength() const
{
PINDEX length = 0;
length += m_nlpidProtocol.GetObjectLength();
length += m_nlpidData.GetObjectLength();
return length;
}
BOOL H245_DataApplicationCapability_application_nlpid::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_nlpidProtocol.Decode(strm))
return FALSE;
if (!m_nlpidData.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_DataApplicationCapability_application_nlpid::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_nlpidProtocol.Encode(strm);
m_nlpidData.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_DataApplicationCapability_application_nlpid::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_DataApplicationCapability_application_nlpid::Class()), PInvalidCast);
#endif
return new H245_DataApplicationCapability_application_nlpid(*this);
}
//
// OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters
//
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "h222LogicalChannelParameters "
"h223LogicalChannelParameters "
"v76LogicalChannelParameters "
"h2250LogicalChannelParameters "
"none "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_H222LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_H222LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H222LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H222LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator const H245_H222LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H222LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H222LogicalChannelParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_H223LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_H223LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H223LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator const H245_H223LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H223LogicalChannelParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_V76LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_V76LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_V76LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_V76LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator const H245_V76LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_V76LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_V76LogicalChannelParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_H2250LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator H245_H2250LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::operator const H245_H2250LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelParameters *)choice;
}
BOOL H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::CreateObject()
{
switch (tag) {
case e_h222LogicalChannelParameters :
choice = new H245_H222LogicalChannelParameters();
return TRUE;
case e_h223LogicalChannelParameters :
choice = new H245_H223LogicalChannelParameters();
return TRUE;
case e_v76LogicalChannelParameters :
choice = new H245_V76LogicalChannelParameters();
return TRUE;
case e_h2250LogicalChannelParameters :
choice = new H245_H2250LogicalChannelParameters();
return TRUE;
case e_none :
choice = new PASN_Null();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters::Class()), PInvalidCast);
#endif
return new H245_OpenLogicalChannel_forwardLogicalChannelParameters_multiplexParameters(*this);
}
//
// OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters
//
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "h223LogicalChannelParameters "
"v76LogicalChannelParameters "
"h2250LogicalChannelParameters "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator H245_H223LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator H245_H223LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H223LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator const H245_H223LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H223LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H223LogicalChannelParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator H245_V76LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator H245_V76LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_V76LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_V76LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator const H245_V76LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_V76LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_V76LogicalChannelParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator H245_H2250LogicalChannelParameters &() const
#else
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator H245_H2250LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::operator const H245_H2250LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelParameters *)choice;
}
BOOL H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::CreateObject()
{
switch (tag) {
case e_h223LogicalChannelParameters :
choice = new H245_H223LogicalChannelParameters();
return TRUE;
case e_v76LogicalChannelParameters :
choice = new H245_V76LogicalChannelParameters();
return TRUE;
case e_h2250LogicalChannelParameters :
choice = new H245_H2250LogicalChannelParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters::Class()), PInvalidCast);
#endif
return new H245_OpenLogicalChannel_reverseLogicalChannelParameters_multiplexParameters(*this);
}
//
// H223LogicalChannelParameters_adaptationLayerType_al3
//
H245_H223LogicalChannelParameters_adaptationLayerType_al3::H245_H223LogicalChannelParameters_adaptationLayerType_al3(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
m_controlFieldOctets.SetConstraints(PASN_Object::FixedConstraint, 0, 2);
m_sendBufferSize.SetConstraints(PASN_Object::FixedConstraint, 0, 16777215);
}
#ifndef PASN_NOPRINTON
void H245_H223LogicalChannelParameters_adaptationLayerType_al3::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+21) << "controlFieldOctets = " << setprecision(indent) << m_controlFieldOctets << '\n';
strm << setw(indent+17) << "sendBufferSize = " << setprecision(indent) << m_sendBufferSize << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_H223LogicalChannelParameters_adaptationLayerType_al3::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_H223LogicalChannelParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
const H245_H223LogicalChannelParameters_adaptationLayerType_al3 & other = (const H245_H223LogicalChannelParameters_adaptationLayerType_al3 &)obj;
Comparison result;
if ((result = m_controlFieldOctets.Compare(other.m_controlFieldOctets)) != EqualTo)
return result;
if ((result = m_sendBufferSize.Compare(other.m_sendBufferSize)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_H223LogicalChannelParameters_adaptationLayerType_al3::GetDataLength() const
{
PINDEX length = 0;
length += m_controlFieldOctets.GetObjectLength();
length += m_sendBufferSize.GetObjectLength();
return length;
}
BOOL H245_H223LogicalChannelParameters_adaptationLayerType_al3::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_controlFieldOctets.Decode(strm))
return FALSE;
if (!m_sendBufferSize.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_H223LogicalChannelParameters_adaptationLayerType_al3::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_controlFieldOctets.Encode(strm);
m_sendBufferSize.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_H223LogicalChannelParameters_adaptationLayerType_al3::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223LogicalChannelParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
return new H245_H223LogicalChannelParameters_adaptationLayerType_al3(*this);
}
//
// UnicastAddress_iPSourceRouteAddress_routing
//
H245_UnicastAddress_iPSourceRouteAddress_routing::H245_UnicastAddress_iPSourceRouteAddress_routing(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, FALSE
#ifndef PASN_NOPRINTON
, "strict "
"loose "
#endif
)
{
}
BOOL H245_UnicastAddress_iPSourceRouteAddress_routing::CreateObject()
{
choice = (tag <= e_loose) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_UnicastAddress_iPSourceRouteAddress_routing::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UnicastAddress_iPSourceRouteAddress_routing::Class()), PInvalidCast);
#endif
return new H245_UnicastAddress_iPSourceRouteAddress_routing(*this);
}
//
// UnicastAddress_iPSourceRouteAddress_route
//
H245_UnicastAddress_iPSourceRouteAddress_route::H245_UnicastAddress_iPSourceRouteAddress_route(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_UnicastAddress_iPSourceRouteAddress_route::CreateObject() const
{
PASN_OctetString * obj = new PASN_OctetString;
obj->SetConstraints(PASN_Object::FixedConstraint, 4);
return obj;
}
PASN_OctetString & H245_UnicastAddress_iPSourceRouteAddress_route::operator[](PINDEX i) const
{
return (PASN_OctetString &)array[i];
}
PObject * H245_UnicastAddress_iPSourceRouteAddress_route::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UnicastAddress_iPSourceRouteAddress_route::Class()), PInvalidCast);
#endif
return new H245_UnicastAddress_iPSourceRouteAddress_route(*this);
}
//
// OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters
//
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 1, TRUE
#ifndef PASN_NOPRINTON
, "h222LogicalChannelParameters "
"h2250LogicalChannelParameters "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::operator H245_H222LogicalChannelParameters &() const
#else
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::operator H245_H222LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H222LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H222LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::operator const H245_H222LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H222LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H222LogicalChannelParameters *)choice;
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::operator H245_H2250LogicalChannelParameters &() const
#else
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::operator H245_H2250LogicalChannelParameters &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelParameters *)choice;
}
H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::operator const H245_H2250LogicalChannelParameters &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_H2250LogicalChannelParameters::Class()), PInvalidCast);
#endif
return *(H245_H2250LogicalChannelParameters *)choice;
}
BOOL H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::CreateObject()
{
switch (tag) {
case e_h222LogicalChannelParameters :
choice = new H245_H222LogicalChannelParameters();
return TRUE;
case e_h2250LogicalChannelParameters :
choice = new H245_H2250LogicalChannelParameters();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters::Class()), PInvalidCast);
#endif
return new H245_OpenLogicalChannelAck_reverseLogicalChannelParameters_multiplexParameters(*this);
}
//
// H223ModeParameters_adaptationLayerType_al3
//
H245_H223ModeParameters_adaptationLayerType_al3::H245_H223ModeParameters_adaptationLayerType_al3(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
m_controlFieldOctets.SetConstraints(PASN_Object::FixedConstraint, 0, 2);
m_sendBufferSize.SetConstraints(PASN_Object::FixedConstraint, 0, 16777215);
}
#ifndef PASN_NOPRINTON
void H245_H223ModeParameters_adaptationLayerType_al3::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+21) << "controlFieldOctets = " << setprecision(indent) << m_controlFieldOctets << '\n';
strm << setw(indent+17) << "sendBufferSize = " << setprecision(indent) << m_sendBufferSize << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_H223ModeParameters_adaptationLayerType_al3::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_H223ModeParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
const H245_H223ModeParameters_adaptationLayerType_al3 & other = (const H245_H223ModeParameters_adaptationLayerType_al3 &)obj;
Comparison result;
if ((result = m_controlFieldOctets.Compare(other.m_controlFieldOctets)) != EqualTo)
return result;
if ((result = m_sendBufferSize.Compare(other.m_sendBufferSize)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_H223ModeParameters_adaptationLayerType_al3::GetDataLength() const
{
PINDEX length = 0;
length += m_controlFieldOctets.GetObjectLength();
length += m_sendBufferSize.GetObjectLength();
return length;
}
BOOL H245_H223ModeParameters_adaptationLayerType_al3::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_controlFieldOctets.Decode(strm))
return FALSE;
if (!m_sendBufferSize.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_H223ModeParameters_adaptationLayerType_al3::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_controlFieldOctets.Encode(strm);
m_sendBufferSize.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_H223ModeParameters_adaptationLayerType_al3::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_H223ModeParameters_adaptationLayerType_al3::Class()), PInvalidCast);
#endif
return new H245_H223ModeParameters_adaptationLayerType_al3(*this);
}
//
// DataMode_application_nlpid
//
H245_DataMode_application_nlpid::H245_DataMode_application_nlpid(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_DataMode_application_nlpid::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+16) << "nlpidProtocol = " << setprecision(indent) << m_nlpidProtocol << '\n';
strm << setw(indent+12) << "nlpidData = " << setprecision(indent) << m_nlpidData << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_DataMode_application_nlpid::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_DataMode_application_nlpid::Class()), PInvalidCast);
#endif
const H245_DataMode_application_nlpid & other = (const H245_DataMode_application_nlpid &)obj;
Comparison result;
if ((result = m_nlpidProtocol.Compare(other.m_nlpidProtocol)) != EqualTo)
return result;
if ((result = m_nlpidData.Compare(other.m_nlpidData)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_DataMode_application_nlpid::GetDataLength() const
{
PINDEX length = 0;
length += m_nlpidProtocol.GetObjectLength();
length += m_nlpidData.GetObjectLength();
return length;
}
BOOL H245_DataMode_application_nlpid::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_nlpidProtocol.Decode(strm))
return FALSE;
if (!m_nlpidData.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_DataMode_application_nlpid::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_nlpidProtocol.Encode(strm);
m_nlpidData.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_DataMode_application_nlpid::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_DataMode_application_nlpid::Class()), PInvalidCast);
#endif
return new H245_DataMode_application_nlpid(*this);
}
//
// MultilinkRequest_maximumHeaderInterval_requestType
//
H245_MultilinkRequest_maximumHeaderInterval_requestType::H245_MultilinkRequest_maximumHeaderInterval_requestType(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "currentIntervalInformation "
"requestedInterval "
#endif
)
{
}
BOOL H245_MultilinkRequest_maximumHeaderInterval_requestType::CreateObject()
{
switch (tag) {
case e_currentIntervalInformation :
choice = new PASN_Null();
return TRUE;
case e_requestedInterval :
choice = new PASN_Integer();
choice->SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MultilinkRequest_maximumHeaderInterval_requestType::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkRequest_maximumHeaderInterval_requestType::Class()), PInvalidCast);
#endif
return new H245_MultilinkRequest_maximumHeaderInterval_requestType(*this);
}
//
// MultilinkResponse_addConnection_responseCode
//
H245_MultilinkResponse_addConnection_responseCode::H245_MultilinkResponse_addConnection_responseCode(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 2, TRUE
#ifndef PASN_NOPRINTON
, "accepted "
"rejected "
#endif
)
{
}
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_MultilinkResponse_addConnection_responseCode::operator H245_MultilinkResponse_addConnection_responseCode_rejected &() const
#else
H245_MultilinkResponse_addConnection_responseCode::operator H245_MultilinkResponse_addConnection_responseCode_rejected &()
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MultilinkResponse_addConnection_responseCode_rejected::Class()), PInvalidCast);
#endif
return *(H245_MultilinkResponse_addConnection_responseCode_rejected *)choice;
}
H245_MultilinkResponse_addConnection_responseCode::operator const H245_MultilinkResponse_addConnection_responseCode_rejected &() const
#endif
{
#ifndef PASN_LEANANDMEAN
PAssert(PAssertNULL(choice)->IsDescendant(H245_MultilinkResponse_addConnection_responseCode_rejected::Class()), PInvalidCast);
#endif
return *(H245_MultilinkResponse_addConnection_responseCode_rejected *)choice;
}
BOOL H245_MultilinkResponse_addConnection_responseCode::CreateObject()
{
switch (tag) {
case e_accepted :
choice = new PASN_Null();
return TRUE;
case e_rejected :
choice = new H245_MultilinkResponse_addConnection_responseCode_rejected();
return TRUE;
}
choice = NULL;
return FALSE;
}
PObject * H245_MultilinkResponse_addConnection_responseCode::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MultilinkResponse_addConnection_responseCode::Class()), PInvalidCast);
#endif
return new H245_MultilinkResponse_addConnection_responseCode(*this);
}
//
// ArrayOf_CapabilityDescriptorNumber
//
H245_ArrayOf_CapabilityDescriptorNumber::H245_ArrayOf_CapabilityDescriptorNumber(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_CapabilityDescriptorNumber::CreateObject() const
{
return new H245_CapabilityDescriptorNumber;
}
H245_CapabilityDescriptorNumber & H245_ArrayOf_CapabilityDescriptorNumber::operator[](PINDEX i) const
{
return (H245_CapabilityDescriptorNumber &)array[i];
}
PObject * H245_ArrayOf_CapabilityDescriptorNumber::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_CapabilityDescriptorNumber::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_CapabilityDescriptorNumber(*this);
}
//
// MiscellaneousCommand_type_videoFastUpdateGOB
//
H245_MiscellaneousCommand_type_videoFastUpdateGOB::H245_MiscellaneousCommand_type_videoFastUpdateGOB(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, FALSE, 0)
{
m_firstGOB.SetConstraints(PASN_Object::FixedConstraint, 0, 17);
m_numberOfGOBs.SetConstraints(PASN_Object::FixedConstraint, 1, 18);
}
#ifndef PASN_NOPRINTON
void H245_MiscellaneousCommand_type_videoFastUpdateGOB::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+11) << "firstGOB = " << setprecision(indent) << m_firstGOB << '\n';
strm << setw(indent+15) << "numberOfGOBs = " << setprecision(indent) << m_numberOfGOBs << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MiscellaneousCommand_type_videoFastUpdateGOB::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MiscellaneousCommand_type_videoFastUpdateGOB::Class()), PInvalidCast);
#endif
const H245_MiscellaneousCommand_type_videoFastUpdateGOB & other = (const H245_MiscellaneousCommand_type_videoFastUpdateGOB &)obj;
Comparison result;
if ((result = m_firstGOB.Compare(other.m_firstGOB)) != EqualTo)
return result;
if ((result = m_numberOfGOBs.Compare(other.m_numberOfGOBs)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MiscellaneousCommand_type_videoFastUpdateGOB::GetDataLength() const
{
PINDEX length = 0;
length += m_firstGOB.GetObjectLength();
length += m_numberOfGOBs.GetObjectLength();
return length;
}
BOOL H245_MiscellaneousCommand_type_videoFastUpdateGOB::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_firstGOB.Decode(strm))
return FALSE;
if (!m_numberOfGOBs.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MiscellaneousCommand_type_videoFastUpdateGOB::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_firstGOB.Encode(strm);
m_numberOfGOBs.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MiscellaneousCommand_type_videoFastUpdateGOB::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousCommand_type_videoFastUpdateGOB::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousCommand_type_videoFastUpdateGOB(*this);
}
//
// MiscellaneousCommand_type_videoFastUpdateMB
//
H245_MiscellaneousCommand_type_videoFastUpdateMB::H245_MiscellaneousCommand_type_videoFastUpdateMB(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 2, TRUE, 0)
{
m_firstGOB.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
m_firstMB.SetConstraints(PASN_Object::FixedConstraint, 1, 8192);
m_numberOfMBs.SetConstraints(PASN_Object::FixedConstraint, 1, 8192);
}
#ifndef PASN_NOPRINTON
void H245_MiscellaneousCommand_type_videoFastUpdateMB::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
if (HasOptionalField(e_firstGOB))
strm << setw(indent+11) << "firstGOB = " << setprecision(indent) << m_firstGOB << '\n';
if (HasOptionalField(e_firstMB))
strm << setw(indent+10) << "firstMB = " << setprecision(indent) << m_firstMB << '\n';
strm << setw(indent+14) << "numberOfMBs = " << setprecision(indent) << m_numberOfMBs << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MiscellaneousCommand_type_videoFastUpdateMB::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MiscellaneousCommand_type_videoFastUpdateMB::Class()), PInvalidCast);
#endif
const H245_MiscellaneousCommand_type_videoFastUpdateMB & other = (const H245_MiscellaneousCommand_type_videoFastUpdateMB &)obj;
Comparison result;
if ((result = m_firstGOB.Compare(other.m_firstGOB)) != EqualTo)
return result;
if ((result = m_firstMB.Compare(other.m_firstMB)) != EqualTo)
return result;
if ((result = m_numberOfMBs.Compare(other.m_numberOfMBs)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MiscellaneousCommand_type_videoFastUpdateMB::GetDataLength() const
{
PINDEX length = 0;
if (HasOptionalField(e_firstGOB))
length += m_firstGOB.GetObjectLength();
if (HasOptionalField(e_firstMB))
length += m_firstMB.GetObjectLength();
length += m_numberOfMBs.GetObjectLength();
return length;
}
BOOL H245_MiscellaneousCommand_type_videoFastUpdateMB::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (HasOptionalField(e_firstGOB) && !m_firstGOB.Decode(strm))
return FALSE;
if (HasOptionalField(e_firstMB) && !m_firstMB.Decode(strm))
return FALSE;
if (!m_numberOfMBs.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MiscellaneousCommand_type_videoFastUpdateMB::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
if (HasOptionalField(e_firstGOB))
m_firstGOB.Encode(strm);
if (HasOptionalField(e_firstMB))
m_firstMB.Encode(strm);
m_numberOfMBs.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MiscellaneousCommand_type_videoFastUpdateMB::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousCommand_type_videoFastUpdateMB::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousCommand_type_videoFastUpdateMB(*this);
}
//
// MiscellaneousCommand_type_videoBadMBs
//
H245_MiscellaneousCommand_type_videoBadMBs::H245_MiscellaneousCommand_type_videoBadMBs(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_firstMB.SetConstraints(PASN_Object::FixedConstraint, 1, 9216);
m_numberOfMBs.SetConstraints(PASN_Object::FixedConstraint, 1, 9216);
m_temporalReference.SetConstraints(PASN_Object::FixedConstraint, 0, 1023);
}
#ifndef PASN_NOPRINTON
void H245_MiscellaneousCommand_type_videoBadMBs::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+10) << "firstMB = " << setprecision(indent) << m_firstMB << '\n';
strm << setw(indent+14) << "numberOfMBs = " << setprecision(indent) << m_numberOfMBs << '\n';
strm << setw(indent+20) << "temporalReference = " << setprecision(indent) << m_temporalReference << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MiscellaneousCommand_type_videoBadMBs::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MiscellaneousCommand_type_videoBadMBs::Class()), PInvalidCast);
#endif
const H245_MiscellaneousCommand_type_videoBadMBs & other = (const H245_MiscellaneousCommand_type_videoBadMBs &)obj;
Comparison result;
if ((result = m_firstMB.Compare(other.m_firstMB)) != EqualTo)
return result;
if ((result = m_numberOfMBs.Compare(other.m_numberOfMBs)) != EqualTo)
return result;
if ((result = m_temporalReference.Compare(other.m_temporalReference)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MiscellaneousCommand_type_videoBadMBs::GetDataLength() const
{
PINDEX length = 0;
length += m_firstMB.GetObjectLength();
length += m_numberOfMBs.GetObjectLength();
length += m_temporalReference.GetObjectLength();
return length;
}
BOOL H245_MiscellaneousCommand_type_videoBadMBs::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_firstMB.Decode(strm))
return FALSE;
if (!m_numberOfMBs.Decode(strm))
return FALSE;
if (!m_temporalReference.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MiscellaneousCommand_type_videoBadMBs::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_firstMB.Encode(strm);
m_numberOfMBs.Encode(strm);
m_temporalReference.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MiscellaneousCommand_type_videoBadMBs::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousCommand_type_videoBadMBs::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousCommand_type_videoBadMBs(*this);
}
//
// ArrayOf_PictureReference
//
H245_ArrayOf_PictureReference::H245_ArrayOf_PictureReference(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Array(tag, tagClass)
{
}
PASN_Object * H245_ArrayOf_PictureReference::CreateObject() const
{
return new H245_PictureReference;
}
H245_PictureReference & H245_ArrayOf_PictureReference::operator[](PINDEX i) const
{
return (H245_PictureReference &)array[i];
}
PObject * H245_ArrayOf_PictureReference::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_ArrayOf_PictureReference::Class()), PInvalidCast);
#endif
return new H245_ArrayOf_PictureReference(*this);
}
//
// MiscellaneousCommand_type_lostPartialPicture
//
H245_MiscellaneousCommand_type_lostPartialPicture::H245_MiscellaneousCommand_type_lostPartialPicture(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_firstMB.SetConstraints(PASN_Object::FixedConstraint, 1, 9216);
m_numberOfMBs.SetConstraints(PASN_Object::FixedConstraint, 1, 9216);
}
#ifndef PASN_NOPRINTON
void H245_MiscellaneousCommand_type_lostPartialPicture::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+19) << "pictureReference = " << setprecision(indent) << m_pictureReference << '\n';
strm << setw(indent+10) << "firstMB = " << setprecision(indent) << m_firstMB << '\n';
strm << setw(indent+14) << "numberOfMBs = " << setprecision(indent) << m_numberOfMBs << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MiscellaneousCommand_type_lostPartialPicture::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MiscellaneousCommand_type_lostPartialPicture::Class()), PInvalidCast);
#endif
const H245_MiscellaneousCommand_type_lostPartialPicture & other = (const H245_MiscellaneousCommand_type_lostPartialPicture &)obj;
Comparison result;
if ((result = m_pictureReference.Compare(other.m_pictureReference)) != EqualTo)
return result;
if ((result = m_firstMB.Compare(other.m_firstMB)) != EqualTo)
return result;
if ((result = m_numberOfMBs.Compare(other.m_numberOfMBs)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MiscellaneousCommand_type_lostPartialPicture::GetDataLength() const
{
PINDEX length = 0;
length += m_pictureReference.GetObjectLength();
length += m_firstMB.GetObjectLength();
length += m_numberOfMBs.GetObjectLength();
return length;
}
BOOL H245_MiscellaneousCommand_type_lostPartialPicture::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_pictureReference.Decode(strm))
return FALSE;
if (!m_firstMB.Decode(strm))
return FALSE;
if (!m_numberOfMBs.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MiscellaneousCommand_type_lostPartialPicture::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_pictureReference.Encode(strm);
m_firstMB.Encode(strm);
m_numberOfMBs.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MiscellaneousCommand_type_lostPartialPicture::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousCommand_type_lostPartialPicture::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousCommand_type_lostPartialPicture(*this);
}
//
// NewATMVCCommand_aal_aal5
//
H245_NewATMVCCommand_aal_aal5::H245_NewATMVCCommand_aal_aal5(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_forwardMaximumSDUSize.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
m_backwardMaximumSDUSize.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_NewATMVCCommand_aal_aal5::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+24) << "forwardMaximumSDUSize = " << setprecision(indent) << m_forwardMaximumSDUSize << '\n';
strm << setw(indent+25) << "backwardMaximumSDUSize = " << setprecision(indent) << m_backwardMaximumSDUSize << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_NewATMVCCommand_aal_aal5::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_NewATMVCCommand_aal_aal5::Class()), PInvalidCast);
#endif
const H245_NewATMVCCommand_aal_aal5 & other = (const H245_NewATMVCCommand_aal_aal5 &)obj;
Comparison result;
if ((result = m_forwardMaximumSDUSize.Compare(other.m_forwardMaximumSDUSize)) != EqualTo)
return result;
if ((result = m_backwardMaximumSDUSize.Compare(other.m_backwardMaximumSDUSize)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_NewATMVCCommand_aal_aal5::GetDataLength() const
{
PINDEX length = 0;
length += m_forwardMaximumSDUSize.GetObjectLength();
length += m_backwardMaximumSDUSize.GetObjectLength();
return length;
}
BOOL H245_NewATMVCCommand_aal_aal5::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_forwardMaximumSDUSize.Decode(strm))
return FALSE;
if (!m_backwardMaximumSDUSize.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_NewATMVCCommand_aal_aal5::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_forwardMaximumSDUSize.Encode(strm);
m_backwardMaximumSDUSize.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_NewATMVCCommand_aal_aal5::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCCommand_aal_aal5::Class()), PInvalidCast);
#endif
return new H245_NewATMVCCommand_aal_aal5(*this);
}
//
// NewATMVCCommand_reverseParameters_multiplex
//
H245_NewATMVCCommand_reverseParameters_multiplex::H245_NewATMVCCommand_reverseParameters_multiplex(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noMultiplex "
"transportStream "
"programStream "
#endif
)
{
}
BOOL H245_NewATMVCCommand_reverseParameters_multiplex::CreateObject()
{
choice = (tag <= e_programStream) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_NewATMVCCommand_reverseParameters_multiplex::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCCommand_reverseParameters_multiplex::Class()), PInvalidCast);
#endif
return new H245_NewATMVCCommand_reverseParameters_multiplex(*this);
}
//
// MiscellaneousIndication_type_videoNotDecodedMBs
//
H245_MiscellaneousIndication_type_videoNotDecodedMBs::H245_MiscellaneousIndication_type_videoNotDecodedMBs(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_firstMB.SetConstraints(PASN_Object::FixedConstraint, 1, 8192);
m_numberOfMBs.SetConstraints(PASN_Object::FixedConstraint, 1, 8192);
m_temporalReference.SetConstraints(PASN_Object::FixedConstraint, 0, 255);
}
#ifndef PASN_NOPRINTON
void H245_MiscellaneousIndication_type_videoNotDecodedMBs::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+10) << "firstMB = " << setprecision(indent) << m_firstMB << '\n';
strm << setw(indent+14) << "numberOfMBs = " << setprecision(indent) << m_numberOfMBs << '\n';
strm << setw(indent+20) << "temporalReference = " << setprecision(indent) << m_temporalReference << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_MiscellaneousIndication_type_videoNotDecodedMBs::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_MiscellaneousIndication_type_videoNotDecodedMBs::Class()), PInvalidCast);
#endif
const H245_MiscellaneousIndication_type_videoNotDecodedMBs & other = (const H245_MiscellaneousIndication_type_videoNotDecodedMBs &)obj;
Comparison result;
if ((result = m_firstMB.Compare(other.m_firstMB)) != EqualTo)
return result;
if ((result = m_numberOfMBs.Compare(other.m_numberOfMBs)) != EqualTo)
return result;
if ((result = m_temporalReference.Compare(other.m_temporalReference)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_MiscellaneousIndication_type_videoNotDecodedMBs::GetDataLength() const
{
PINDEX length = 0;
length += m_firstMB.GetObjectLength();
length += m_numberOfMBs.GetObjectLength();
length += m_temporalReference.GetObjectLength();
return length;
}
BOOL H245_MiscellaneousIndication_type_videoNotDecodedMBs::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_firstMB.Decode(strm))
return FALSE;
if (!m_numberOfMBs.Decode(strm))
return FALSE;
if (!m_temporalReference.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_MiscellaneousIndication_type_videoNotDecodedMBs::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_firstMB.Encode(strm);
m_numberOfMBs.Encode(strm);
m_temporalReference.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_MiscellaneousIndication_type_videoNotDecodedMBs::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_MiscellaneousIndication_type_videoNotDecodedMBs::Class()), PInvalidCast);
#endif
return new H245_MiscellaneousIndication_type_videoNotDecodedMBs(*this);
}
//
// NewATMVCIndication_aal_aal5
//
H245_NewATMVCIndication_aal_aal5::H245_NewATMVCIndication_aal_aal5(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
m_forwardMaximumSDUSize.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
m_backwardMaximumSDUSize.SetConstraints(PASN_Object::FixedConstraint, 0, 65535);
}
#ifndef PASN_NOPRINTON
void H245_NewATMVCIndication_aal_aal5::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+24) << "forwardMaximumSDUSize = " << setprecision(indent) << m_forwardMaximumSDUSize << '\n';
strm << setw(indent+25) << "backwardMaximumSDUSize = " << setprecision(indent) << m_backwardMaximumSDUSize << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_NewATMVCIndication_aal_aal5::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_NewATMVCIndication_aal_aal5::Class()), PInvalidCast);
#endif
const H245_NewATMVCIndication_aal_aal5 & other = (const H245_NewATMVCIndication_aal_aal5 &)obj;
Comparison result;
if ((result = m_forwardMaximumSDUSize.Compare(other.m_forwardMaximumSDUSize)) != EqualTo)
return result;
if ((result = m_backwardMaximumSDUSize.Compare(other.m_backwardMaximumSDUSize)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_NewATMVCIndication_aal_aal5::GetDataLength() const
{
PINDEX length = 0;
length += m_forwardMaximumSDUSize.GetObjectLength();
length += m_backwardMaximumSDUSize.GetObjectLength();
return length;
}
BOOL H245_NewATMVCIndication_aal_aal5::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_forwardMaximumSDUSize.Decode(strm))
return FALSE;
if (!m_backwardMaximumSDUSize.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_NewATMVCIndication_aal_aal5::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_forwardMaximumSDUSize.Encode(strm);
m_backwardMaximumSDUSize.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_NewATMVCIndication_aal_aal5::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCIndication_aal_aal5::Class()), PInvalidCast);
#endif
return new H245_NewATMVCIndication_aal_aal5(*this);
}
//
// NewATMVCIndication_reverseParameters_multiplex
//
H245_NewATMVCIndication_reverseParameters_multiplex::H245_NewATMVCIndication_reverseParameters_multiplex(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Choice(tag, tagClass, 3, TRUE
#ifndef PASN_NOPRINTON
, "noMultiplex "
"transportStream "
"programStream "
#endif
)
{
}
BOOL H245_NewATMVCIndication_reverseParameters_multiplex::CreateObject()
{
choice = (tag <= e_programStream) ? new PASN_Null() : NULL;
return choice != NULL;
}
PObject * H245_NewATMVCIndication_reverseParameters_multiplex::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_NewATMVCIndication_reverseParameters_multiplex::Class()), PInvalidCast);
#endif
return new H245_NewATMVCIndication_reverseParameters_multiplex(*this);
}
//
// UserInputIndication_signal_rtp
//
H245_UserInputIndication_signal_rtp::H245_UserInputIndication_signal_rtp(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 2, TRUE, 0)
{
m_timestamp.SetConstraints(PASN_Object::FixedConstraint, 0, 4294967295U);
m_expirationTime.SetConstraints(PASN_Object::FixedConstraint, 0, 4294967295U);
}
#ifndef PASN_NOPRINTON
void H245_UserInputIndication_signal_rtp::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
if (HasOptionalField(e_timestamp))
strm << setw(indent+12) << "timestamp = " << setprecision(indent) << m_timestamp << '\n';
if (HasOptionalField(e_expirationTime))
strm << setw(indent+17) << "expirationTime = " << setprecision(indent) << m_expirationTime << '\n';
strm << setw(indent+23) << "logicalChannelNumber = " << setprecision(indent) << m_logicalChannelNumber << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_UserInputIndication_signal_rtp::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_UserInputIndication_signal_rtp::Class()), PInvalidCast);
#endif
const H245_UserInputIndication_signal_rtp & other = (const H245_UserInputIndication_signal_rtp &)obj;
Comparison result;
if ((result = m_timestamp.Compare(other.m_timestamp)) != EqualTo)
return result;
if ((result = m_expirationTime.Compare(other.m_expirationTime)) != EqualTo)
return result;
if ((result = m_logicalChannelNumber.Compare(other.m_logicalChannelNumber)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_UserInputIndication_signal_rtp::GetDataLength() const
{
PINDEX length = 0;
if (HasOptionalField(e_timestamp))
length += m_timestamp.GetObjectLength();
if (HasOptionalField(e_expirationTime))
length += m_expirationTime.GetObjectLength();
length += m_logicalChannelNumber.GetObjectLength();
return length;
}
BOOL H245_UserInputIndication_signal_rtp::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (HasOptionalField(e_timestamp) && !m_timestamp.Decode(strm))
return FALSE;
if (HasOptionalField(e_expirationTime) && !m_expirationTime.Decode(strm))
return FALSE;
if (!m_logicalChannelNumber.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_UserInputIndication_signal_rtp::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
if (HasOptionalField(e_timestamp))
m_timestamp.Encode(strm);
if (HasOptionalField(e_expirationTime))
m_expirationTime.Encode(strm);
m_logicalChannelNumber.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_UserInputIndication_signal_rtp::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UserInputIndication_signal_rtp::Class()), PInvalidCast);
#endif
return new H245_UserInputIndication_signal_rtp(*this);
}
//
// UserInputIndication_signalUpdate_rtp
//
H245_UserInputIndication_signalUpdate_rtp::H245_UserInputIndication_signalUpdate_rtp(unsigned tag, PASN_Object::TagClass tagClass)
: PASN_Sequence(tag, tagClass, 0, TRUE, 0)
{
}
#ifndef PASN_NOPRINTON
void H245_UserInputIndication_signalUpdate_rtp::PrintOn(ostream & strm) const
{
int indent = strm.precision() + 2;
strm << "{\n";
strm << setw(indent+23) << "logicalChannelNumber = " << setprecision(indent) << m_logicalChannelNumber << '\n';
strm << setw(indent-1) << "}";
}
#endif
PObject::Comparison H245_UserInputIndication_signalUpdate_rtp::Compare(const PObject & obj) const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsDescendant(H245_UserInputIndication_signalUpdate_rtp::Class()), PInvalidCast);
#endif
const H245_UserInputIndication_signalUpdate_rtp & other = (const H245_UserInputIndication_signalUpdate_rtp &)obj;
Comparison result;
if ((result = m_logicalChannelNumber.Compare(other.m_logicalChannelNumber)) != EqualTo)
return result;
return PASN_Sequence::Compare(other);
}
PINDEX H245_UserInputIndication_signalUpdate_rtp::GetDataLength() const
{
PINDEX length = 0;
length += m_logicalChannelNumber.GetObjectLength();
return length;
}
BOOL H245_UserInputIndication_signalUpdate_rtp::Decode(PASN_Stream & strm)
{
if (!PreambleDecode(strm))
return FALSE;
if (!m_logicalChannelNumber.Decode(strm))
return FALSE;
return UnknownExtensionsDecode(strm);
}
void H245_UserInputIndication_signalUpdate_rtp::Encode(PASN_Stream & strm) const
{
PreambleEncode(strm);
m_logicalChannelNumber.Encode(strm);
UnknownExtensionsEncode(strm);
}
PObject * H245_UserInputIndication_signalUpdate_rtp::Clone() const
{
#ifndef PASN_LEANANDMEAN
PAssert(IsClass(H245_UserInputIndication_signalUpdate_rtp::Class()), PInvalidCast);
#endif
return new H245_UserInputIndication_signalUpdate_rtp(*this);
}
#endif // if ! H323_DISABLE_H245
// End of h245_2.cxx