TSDuck Version 3.15-964 (TSDuck - The MPEG Transport Stream Toolkit)
ts::AbstractDescriptor Class Referenceabstract

Abstract base class for MPEG PSI/SI descriptors. More...

Inherits ts::AbstractSignalization.

Inherited by ts::AACDescriptor, ts::AbstractDeliverySystemDescriptor, ts::AbstractMultilingualDescriptor, ts::AC3Descriptor, ts::AC4Descriptor, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::ApplicationDescriptor, ts::ApplicationIconsDescriptor, ts::ApplicationRecordingDescriptor, ts::ApplicationSignallingDescriptor, ts::ApplicationStorageDescriptor, ts::ApplicationUsageDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::AVCTimingAndHRDDescriptor, ts::AVCVideoDescriptor, ts::BouquetNameDescriptor, ts::CADescriptor, ts::CAIdentifierDescriptor, ts::CarouselIdentifierDescriptor, ts::CIAncillaryDataDescriptor, ts::ComponentDescriptor, ts::ContentDescriptor, ts::CopyrightDescriptor, ts::CountryAvailabilityDescriptor, ts::CPDescriptor, ts::CPIdentifierDescriptor, ts::CueIdentifierDescriptor, ts::DataBroadcastDescriptor, ts::DataBroadcastIdDescriptor, ts::DataStreamAlignmentDescriptor, ts::DeferredAssociationTagsDescriptor, ts::DIILocationDescriptor, ts::DTSDescriptor, ts::DTSNeuralDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::DVBJApplicationDescriptor, ts::DVBJApplicationLocationDescriptor, ts::EacemPreferredNameIdentifierDescriptor, ts::EacemPreferredNameListDescriptor, ts::EacemStreamIdentifierDescriptor, ts::ECMRepetitionRateDescriptor, ts::EnhancedAC3Descriptor, ts::EutelsatChannelNumberDescriptor, ts::ExtendedEventDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::ExternalESIdDescriptor, ts::GraphicsConstraintsDescriptor, ts::HDSimulcastLogicalChannelDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::HEVCVideoDescriptor, ts::HierarchyDescriptor, ts::IBPDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::IPMACStreamLocationDescriptor, ts::IPSignallingDescriptor, ts::ISO639LanguageDescriptor, ts::ISPAccessModeDescriptor, ts::LinkageDescriptor, ts::LocalTimeOffsetDescriptor, ts::LogicalChannelNumberDescriptor, ts::MaximumBitrateDescriptor, ts::MessageDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::MultilingualServiceNameDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::NPTEndpointDescriptor, ts::NPTReferenceDescriptor, ts::NVODReferenceDescriptor, ts::ParentalRatingDescriptor, ts::PartialTransportStreamDescriptor, ts::PrefetchDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::RegistrationDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::ScramblingDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::ServiceIdentifierDescriptor, ts::ServiceListDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::ShortEventDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SLDescriptor, ts::SmoothingBufferDescriptor, ts::SpliceAvailDescriptor, ts::SpliceDTMFDescriptor, ts::SpliceSegmentationDescriptor, ts::SpliceTimeDescriptor, ts::SSUDataBroadcastIdDescriptor, ts::SSULinkageDescriptor, ts::STDDescriptor, ts::StreamEventDescriptor, ts::StreamIdentifierDescriptor, ts::StreamModeDescriptor, ts::StuffingDescriptor, ts::SubtitlingDescriptor, ts::SupplementaryAudioDescriptor, ts::SystemClockDescriptor, ts::T2MIDescriptor, ts::TargetBackgroundGridDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPSlashDescriptor, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6AddressDescriptor, ts::TargetIPv6SlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::TargetMACAddressDescriptor, ts::TargetMACAddressRangeDescriptor, ts::TargetSerialNumberDescriptor, ts::TargetSmartcardDescriptor, ts::TeletextDescriptor, ts::TimeShiftedEventDescriptor, ts::TimeShiftedServiceDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::TransportProtocolDescriptor, ts::TransportStreamDescriptor, ts::VBIDataDescriptor, ts::VideoStreamDescriptor, and ts::VideoWindowDescriptor.

Collaboration diagram for ts::AbstractDescriptor:

Public Member Functions

virtual ~AbstractDescriptor ()
 Virtual destructor.
 
virtual void deserialize (const Descriptor &bin, const DVBCharset *charset=0)=0
 This abstract method deserializes a binary descriptor. More...
 
void deserialize (const DescriptorList &dlist, size_t index, const DVBCharset *charset=0)
 Deserialize a descriptor from a descriptor list. More...
 
virtual void fromXML (const xml::Element *element)=0
 This abstract converts an XML structure to a table or descriptor. More...
 
void invalidate ()
 Invalidate this object. More...
 
bool isPrivateDescriptor () const
 Check if this descriptor is a private descriptor. More...
 
bool isValid () const
 Check if this object is valid. More...
 
PDS requiredPDS () const
 Get the required private data specifier. More...
 
virtual void serialize (Descriptor &bin, const DVBCharset *charset=0) const =0
 This abstract method serializes a descriptor. More...
 
DID tag () const
 Get the descriptor tag. More...
 
virtual xml::ElementtoXML (xml::Element *parent) const
 This method converts this object to XML. More...
 
UString xmlName () const
 Get the XMl node name representing this table or descriptor. More...
 

Protected Member Functions

 AbstractDescriptor (DID tag, const UChar *xml_name, PDS pds=0)
 Protected constructor for subclasses. More...
 
virtual void buildXML (xml::Element *root) const
 Helper method to convert this object to XML. More...
 
bool checkXMLName (const xml::Element *element) const
 Check that an XML element has the right name for this table. More...
 
bool serializeEnd (Descriptor &bin, const ByteBlockPtr &bbp) const
 Tool for serialization: complete a serialization. More...
 
ByteBlockPtr serializeStart () const
 Tool for serialization: get a byte buffer for serialization. More...
 

Static Protected Member Functions

static bool SerializeFixedLength (ByteBlock &bb, const UString &str, const size_t size, const DVBCharset *charset=0)
 This static method serializes a DVB string with a required fixed size. More...
 
static bool SerializeLanguageCode (ByteBlock &bb, const UString &str, const DVBCharset *charset=0)
 This abstract method serializes a 3-byte language or country code. More...
 

Protected Attributes

bool _is_valid
 It is the responsibility of the subclasses to set the valid flag.
 
PDS _required_pds
 Required private data specified.
 
DID _tag
 The descriptor tag can be modified by subclasses only.
 
const UChar *const _xml_name
 XML table or descriptor name.
 

Detailed Description

Abstract base class for MPEG PSI/SI descriptors.

Constructor & Destructor Documentation

◆ AbstractDescriptor()

ts::AbstractDescriptor::AbstractDescriptor ( DID  tag,
const UChar xml_name,
PDS  pds = 0 
)
protected

Protected constructor for subclasses.

Parameters
[in]tagDescriptor tag.
[in]xml_nameDescriptor name, as used in XML structures.
[in]pdsRequired private data specifier if this is a private descriptor.

Member Function Documentation

◆ tag()

DID ts::AbstractDescriptor::tag ( ) const
inline

Get the descriptor tag.

Returns
The descriptor tag.

◆ requiredPDS()

PDS ts::AbstractDescriptor::requiredPDS ( ) const
inline

Get the required private data specifier.

Returns
The private data specifier which is required to interpret correctly this descriptor in a section. Return zero if this descriptor is a DVB-defined or MPEG-defined descriptor, not a private specifier.

◆ isPrivateDescriptor()

bool ts::AbstractDescriptor::isPrivateDescriptor ( ) const
inline

Check if this descriptor is a private descriptor.

Returns
True if this descriptor is a private descriptor, false if it is a DVB-defined or MPEG-defined descriptor.

◆ serialize()

virtual void ts::AbstractDescriptor::serialize ( Descriptor bin,
const DVBCharset charset = 0 
) const
pure virtual

This abstract method serializes a descriptor.

Parameters
[out]binA binary descriptor object. Its content is replaced with a binary representation of this object.
[in]charsetIf not zero, default character set to use.

Implemented in ts::LinkageDescriptor, ts::TeletextDescriptor, ts::SSULinkageDescriptor, ts::TransportProtocolDescriptor, ts::SSUDataBroadcastIdDescriptor, ts::VBIDataDescriptor, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::LogicalChannelNumberDescriptor, ts::HDSimulcastLogicalChannelDescriptor, ts::EutelsatChannelNumberDescriptor, ts::ISO639LanguageDescriptor, ts::ParentalRatingDescriptor, ts::ServiceListDescriptor, ts::SubtitlingDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::SpliceSegmentationDescriptor, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::ApplicationSignallingDescriptor, ts::ExtendedEventDescriptor, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::PrefetchDescriptor, ts::NVODReferenceDescriptor, ts::LocalTimeOffsetDescriptor, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::TargetMACAddressRangeDescriptor, ts::ApplicationDescriptor, ts::MultilingualServiceNameDescriptor, ts::ShortEventDescriptor, ts::EacemPreferredNameListDescriptor, ts::HEVCVideoDescriptor, ts::EnhancedAC3Descriptor, ts::DataBroadcastIdDescriptor, ts::AbstractMultilingualDescriptor, ts::ContentDescriptor, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AC3Descriptor, ts::AVCTimingAndHRDDescriptor, ts::AVCVideoDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::MessageDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::IPMACStreamLocationDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::SpliceTimeDescriptor, ts::TargetSmartcardDescriptor, ts::CAIdentifierDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::TargetSerialNumberDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::ComponentDescriptor, ts::DVBJApplicationLocationDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ApplicationUsageDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::IPSignallingDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::StreamEventDescriptor, ts::AACDescriptor, ts::AC4Descriptor, ts::CableDeliverySystemDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBJApplicationDescriptor, ts::EacemPreferredNameIdentifierDescriptor, ts::EacemStreamIdentifierDescriptor, ts::NPTEndpointDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SupplementaryAudioDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::DeferredAssociationTagsDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::T2MIDescriptor, ts::BouquetNameDescriptor, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::CarouselIdentifierDescriptor, ts::CopyrightDescriptor, ts::DTSNeuralDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::StreamIdentifierDescriptor, ts::StuffingDescriptor, ts::TimeShiftedEventDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::SLDescriptor, and ts::TimeShiftedServiceDescriptor.

◆ deserialize() [1/2]

virtual void ts::AbstractDescriptor::deserialize ( const Descriptor bin,
const DVBCharset charset = 0 
)
pure virtual

This abstract method deserializes a binary descriptor.

In case of success, this object is replaced with the interpreted content of bin. In case of error, this object is invalidated.

Parameters
[in]binA binary descriptor to interpret according to the descriptor subclass.
[in]charsetIf not zero, character set to use without explicit table code.

Implemented in ts::LinkageDescriptor, ts::TeletextDescriptor, ts::SSULinkageDescriptor, ts::TransportProtocolDescriptor, ts::SSUDataBroadcastIdDescriptor, ts::VBIDataDescriptor, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::LogicalChannelNumberDescriptor, ts::HDSimulcastLogicalChannelDescriptor, ts::EutelsatChannelNumberDescriptor, ts::ISO639LanguageDescriptor, ts::ParentalRatingDescriptor, ts::ServiceListDescriptor, ts::SubtitlingDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::SpliceSegmentationDescriptor, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::ApplicationSignallingDescriptor, ts::ExtendedEventDescriptor, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::PrefetchDescriptor, ts::NVODReferenceDescriptor, ts::LocalTimeOffsetDescriptor, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::TargetMACAddressRangeDescriptor, ts::ApplicationDescriptor, ts::MultilingualServiceNameDescriptor, ts::ShortEventDescriptor, ts::EacemPreferredNameListDescriptor, ts::HEVCVideoDescriptor, ts::EnhancedAC3Descriptor, ts::DataBroadcastIdDescriptor, ts::AbstractMultilingualDescriptor, ts::ContentDescriptor, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AC3Descriptor, ts::AVCTimingAndHRDDescriptor, ts::AVCVideoDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::MessageDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::IPMACStreamLocationDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::SpliceTimeDescriptor, ts::TargetSmartcardDescriptor, ts::CAIdentifierDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::TargetSerialNumberDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::ComponentDescriptor, ts::DVBJApplicationLocationDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ApplicationUsageDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::IPSignallingDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::StreamEventDescriptor, ts::AACDescriptor, ts::AC4Descriptor, ts::CableDeliverySystemDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBJApplicationDescriptor, ts::EacemPreferredNameIdentifierDescriptor, ts::EacemStreamIdentifierDescriptor, ts::NPTEndpointDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SupplementaryAudioDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::DeferredAssociationTagsDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::T2MIDescriptor, ts::BouquetNameDescriptor, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::CarouselIdentifierDescriptor, ts::CopyrightDescriptor, ts::DTSNeuralDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::StreamIdentifierDescriptor, ts::StuffingDescriptor, ts::TimeShiftedEventDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::SLDescriptor, and ts::TimeShiftedServiceDescriptor.

◆ deserialize() [2/2]

void ts::AbstractDescriptor::deserialize ( const DescriptorList dlist,
size_t  index,
const DVBCharset charset = 0 
)

Deserialize a descriptor from a descriptor list.

In case of success, this object is replaced with the interpreted content of the binary descriptor. In case of error, this object is invalidated.

Parameters
[in]dlistA list of binary descriptors.
[in]indexIndex of the descriptor to deserialize in dlist.
[in]charsetIf not zero, character set to use without explicit table code.

◆ serializeStart()

ByteBlockPtr ts::AbstractDescriptor::serializeStart ( ) const
protected

Tool for serialization: get a byte buffer for serialization.

Returns
A safe pointer to a two-byte byffer containing the descriptor tag and zero as length.

◆ serializeEnd()

bool ts::AbstractDescriptor::serializeEnd ( Descriptor bin,
const ByteBlockPtr bbp 
) const
protected

Tool for serialization: complete a serialization.

Parameters
[out]binA binary descriptor object which receives the serialized object.
[in]bbpSafe pointer containing the serialized data, typically returned by serializeStart(). The tag and length will be updated.
Returns
True if the serialized descriptor is valid.

◆ isValid()

bool ts::AbstractSignalization::isValid ( ) const
inlineinherited

Check if this object is valid.

Returns
True if this object is valid.

◆ invalidate()

void ts::AbstractSignalization::invalidate ( )
inlineinherited

Invalidate this object.

This object must be rebuilt.

◆ xmlName()

UString ts::AbstractSignalization::xmlName ( ) const
inherited

Get the XMl node name representing this table or descriptor.

Returns
The XML node name.

◆ toXML()

virtual xml::Element* ts::AbstractSignalization::toXML ( xml::Element parent) const
virtualinherited

This method converts this object to XML.

When this object is valid, the default implementation of toXML() creates a root node with the default XML name and then invoke buildXML() to populate the XML node.

Subclasses have the choice to either implement buildXML() or toXML(). If the object is serialized as one single XML node, it is simpler to implement buidlXML().

Parameters
[in,out]parentThe parent node for the new XML tree.
Returns
The new XML element.

Reimplemented in ts::SSULinkageDescriptor, and ts::SSUDataBroadcastIdDescriptor.

◆ fromXML()

virtual void ts::AbstractSignalization::fromXML ( const xml::Element element)
pure virtualinherited

This abstract converts an XML structure to a table or descriptor.

In case of success, this object is replaced with the interpreted content of the XML structure. In case of error, this object is invalidated.

Parameters
[in]elementXML element to convert.

Implemented in ts::SDT, ts::EIT, ts::PMT, ts::LinkageDescriptor, ts::TeletextDescriptor, ts::SSULinkageDescriptor, ts::TransportProtocolDescriptor, ts::SpliceInsert, ts::SSUDataBroadcastIdDescriptor, ts::INT, ts::SpliceSchedule, ts::VBIDataDescriptor, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::AIT, ts::LogicalChannelNumberDescriptor, ts::HDSimulcastLogicalChannelDescriptor, ts::SelectionInformationTable, ts::EutelsatChannelNumberDescriptor, ts::ISO639LanguageDescriptor, ts::ParentalRatingDescriptor, ts::ServiceListDescriptor, ts::SubtitlingDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::SpliceSegmentationDescriptor, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::RST, ts::ApplicationSignallingDescriptor, ts::ExtendedEventDescriptor, ts::NIT, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::PrefetchDescriptor, ts::NVODReferenceDescriptor, ts::TOT, ts::LocalTimeOffsetDescriptor, ts::SpliceInformationTable, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::TargetMACAddressRangeDescriptor, ts::ApplicationDescriptor, ts::MultilingualServiceNameDescriptor, ts::ShortEventDescriptor, ts::EacemPreferredNameListDescriptor, ts::HEVCVideoDescriptor, ts::EnhancedAC3Descriptor, ts::DataBroadcastIdDescriptor, ts::PAT, ts::AbstractMultilingualDescriptor, ts::BAT, ts::ContentDescriptor, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AC3Descriptor, ts::AVCTimingAndHRDDescriptor, ts::AVCVideoDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::MessageDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::IPMACStreamLocationDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::SpliceTimeDescriptor, ts::TargetSmartcardDescriptor, ts::CAIdentifierDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::TargetSerialNumberDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::ComponentDescriptor, ts::DSMCCStreamDescriptorsTable, ts::DVBJApplicationLocationDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ApplicationUsageDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::IPSignallingDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::StreamEventDescriptor, ts::AACDescriptor, ts::AC4Descriptor, ts::CableDeliverySystemDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBJApplicationDescriptor, ts::EacemPreferredNameIdentifierDescriptor, ts::EacemStreamIdentifierDescriptor, ts::NPTEndpointDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SupplementaryAudioDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::DeferredAssociationTagsDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::T2MIDescriptor, ts::BouquetNameDescriptor, ts::DiscontinuityInformationTable, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::CarouselIdentifierDescriptor, ts::CopyrightDescriptor, ts::DTSNeuralDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::StreamIdentifierDescriptor, ts::StuffingDescriptor, ts::TDT, ts::TimeShiftedEventDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::SLDescriptor, ts::TimeShiftedServiceDescriptor, ts::MultilingualComponentDescriptor, and ts::AbstractDescriptorsTable.

◆ buildXML()

virtual void ts::AbstractSignalization::buildXML ( xml::Element root) const
inlineprotectedvirtualinherited

Helper method to convert this object to XML.

When this object is valid, the default implementation of toXML() creates a root node with the default XML name and then invoke buildXML() to populate the XML node.

The default implementation is to do nothing. Subclasses which override toXML() do not need to implement buildXML() since it won't be invoked.

Parameters
[in,out]rootThe root node for the new XML tree.

Reimplemented in ts::SDT, ts::EIT, ts::PMT, ts::LinkageDescriptor, ts::TeletextDescriptor, ts::TransportProtocolDescriptor, ts::SpliceInsert, ts::INT, ts::SpliceSchedule, ts::VBIDataDescriptor, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::AIT, ts::LogicalChannelNumberDescriptor, ts::HDSimulcastLogicalChannelDescriptor, ts::SelectionInformationTable, ts::EutelsatChannelNumberDescriptor, ts::ISO639LanguageDescriptor, ts::ParentalRatingDescriptor, ts::ServiceListDescriptor, ts::SubtitlingDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::SpliceSegmentationDescriptor, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::RST, ts::ApplicationSignallingDescriptor, ts::ExtendedEventDescriptor, ts::NIT, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::PrefetchDescriptor, ts::NVODReferenceDescriptor, ts::TOT, ts::LocalTimeOffsetDescriptor, ts::SpliceInformationTable, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::TargetMACAddressRangeDescriptor, ts::ApplicationDescriptor, ts::MultilingualServiceNameDescriptor, ts::ShortEventDescriptor, ts::EacemPreferredNameListDescriptor, ts::HEVCVideoDescriptor, ts::EnhancedAC3Descriptor, ts::DataBroadcastIdDescriptor, ts::PAT, ts::AbstractMultilingualDescriptor, ts::BAT, ts::ContentDescriptor, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AC3Descriptor, ts::AVCTimingAndHRDDescriptor, ts::AVCVideoDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::MessageDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::IPMACStreamLocationDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::SpliceTimeDescriptor, ts::TargetSmartcardDescriptor, ts::CAIdentifierDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::TargetSerialNumberDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::ComponentDescriptor, ts::DSMCCStreamDescriptorsTable, ts::DVBJApplicationLocationDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ApplicationUsageDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::IPSignallingDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::StreamEventDescriptor, ts::AACDescriptor, ts::AC4Descriptor, ts::CableDeliverySystemDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBJApplicationDescriptor, ts::EacemPreferredNameIdentifierDescriptor, ts::EacemStreamIdentifierDescriptor, ts::NPTEndpointDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SupplementaryAudioDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::DeferredAssociationTagsDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::T2MIDescriptor, ts::BouquetNameDescriptor, ts::DiscontinuityInformationTable, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::CarouselIdentifierDescriptor, ts::CopyrightDescriptor, ts::DTSNeuralDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::StreamIdentifierDescriptor, ts::StuffingDescriptor, ts::TDT, ts::TimeShiftedEventDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::SLDescriptor, ts::TimeShiftedServiceDescriptor, ts::MultilingualComponentDescriptor, and ts::AbstractDescriptorsTable.

◆ checkXMLName()

bool ts::AbstractSignalization::checkXMLName ( const xml::Element element) const
protectedinherited

Check that an XML element has the right name for this table.

Parameters
[in]elementXML element to check.
Returns
True on success, false on error.

◆ SerializeFixedLength()

static bool ts::AbstractSignalization::SerializeFixedLength ( ByteBlock bb,
const UString str,
const size_t  size,
const DVBCharset charset = 0 
)
staticprotectedinherited

This static method serializes a DVB string with a required fixed size.

Parameters
[in,out]bbA byte-block where str will be appended if its size is correct.
[in]strString to serialize.
[in]sizeRequired size in bytes of the serialized string.
[in]charsetIf not zero, default character set to use.
Returns
True if the size has the required length and has been serialized.

◆ SerializeLanguageCode()

static bool ts::AbstractSignalization::SerializeLanguageCode ( ByteBlock bb,
const UString str,
const DVBCharset charset = 0 
)
inlinestaticprotectedinherited

This abstract method serializes a 3-byte language or country code.

Parameters
[in,out]bbA byte-block where str will be appended if its size is correct.
[in]strString to serialize.
[in]charsetIf not zero, default character set to use.
Returns
True if the size has the required length and has been serialized.

The documentation for this class was generated from the following file: