TSDuck Version 3.22-1914 (TSDuck - The MPEG Transport Stream Toolkit)
ts::AbstractSignalization Class Referenceabstract

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

Inheritance diagram for ts::AbstractSignalization:
Collaboration diagram for ts::AbstractSignalization:

Public Member Functions

virtual ~AbstractSignalization ()
 Virtual destructor.
 
virtual void clear ()
 This method clears the content of the table or descriptor. More...
 
virtual Standards definingStandards () const override
 Get the list of standards which define this object. More...
 
virtual void fromXML (DuckContext &duck, const xml::Element *element) final
 This method converts an XML structure to a table or descriptor in this object. More...
 
void invalidate ()
 Invalidate this object. More...
 
bool isValid () const
 Check if this object is valid. More...
 
virtual xml::ElementtoXML (DuckContext &duck, xml::Element *parent) const final
 This method converts this object to XML. More...
 
UString xmlName () const
 Get the XMl node name representing this table or descriptor. More...
 

Static Public Member Functions

static UString DeserializeLanguageCode (const uint8_t *data)
 This static method deserializes a 3-byte language or country code. More...
 
static bool SerializeFixedLength (DuckContext &duck, ByteBlock &bb, const UString &str, const size_t size)
 This static method serializes a DVB string with a required fixed size. More...
 
static bool SerializeLanguageCode (ByteBlock &bb, const UString &str, bool allow_empty=false)
 This static method serializes a 3-byte language or country code. More...
 

Static Public Attributes

static const UChar *const XML_GENERIC_DESCRIPTOR
 XML tag name for generic descriptors.
 
static const UChar *const XML_GENERIC_LONG_TABLE
 XML tag name for generic tables with long sections.
 
static const UChar *const XML_GENERIC_SHORT_TABLE
 XML tag name for generic short sections.
 

Protected Member Functions

 AbstractSignalization (const UChar *xml_name, Standards standards, const UChar *xml_legacy_name=nullptr)
 Protected constructor for subclasses. More...
 
 AbstractSignalization (const AbstractSignalization &other)=default
 Copy constructor. More...
 
virtual bool analyzeXML (DuckContext &duck, const xml::Element *element)=0
 Helper method to convert this object from XML. More...
 
virtual void buildXML (DuckContext &duck, xml::Element *root) const =0
 Helper method to convert this object to XML. More...
 
virtual void clearContent ()=0
 Helper method to clear the content of the table or descriptor. More...
 
bool deserializeBool (bool &value, const uint8_t *&data, size_t &size, size_t bit=0)
 Deserialize a one-bit boolean inside one byte. More...
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
bool deserializeInt (INT &value, const uint8_t *&data, size_t &size)
 Deserialize an integer. More...
 
bool deserializeLanguageCode (UString &lang, const uint8_t *&data, size_t &size)
 Deserialize a 3-byte language or country code. More...
 
AbstractSignalizationoperator= (const AbstractSignalization &other)
 Assignment operator. More...
 

Protected Attributes

bool _is_valid
 It is the responsibility of the subclasses to set the valid flag.
 

Detailed Description

Abstract base class for MPEG PSI/SI tables and descriptors.

Some methods are declared as "virtual final". Since these methods are not inherited, this seems useless. This is in fact a compilation check. These methods were formerly designed to be overridden by subclasses but the implementation has changed. They are now defined in this class only and call a new pure virtual method. The "final" attribute is here to detect old subclasses which do not yet use the new scheme.

Constructor & Destructor Documentation

◆ AbstractSignalization() [1/2]

ts::AbstractSignalization::AbstractSignalization ( const UChar xml_name,
Standards  standards,
const UChar xml_legacy_name = nullptr 
)
protected

Protected constructor for subclasses.

Parameters
[in]xml_nameTable or descriptor name, as used in XML structures.
[in]standardsA bit mask of standards which define this structure.
[in]xml_legacy_nameTable or descriptor legacy XML name. Ignored if null pointer.

◆ AbstractSignalization() [2/2]

ts::AbstractSignalization::AbstractSignalization ( const AbstractSignalization other)
protecteddefault

Copy constructor.

Use default implementation, just tell the compiler we understand the consequences of copying a pointer member.

Parameters
[in]otherThe other instance to copy.

Member Function Documentation

◆ isValid()

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

Check if this object is valid.

Returns
True if this object is valid.

◆ invalidate()

void ts::AbstractSignalization::invalidate ( )
inline

Invalidate this object.

This object must be rebuilt.

◆ clear()

virtual void ts::AbstractSignalization::clear ( )
virtual

This method clears the content of the table or descriptor.

Upon return, the object is valid and in the same empty state as after a default constructor.

Reimplemented in ts::AbstractLongTable.

◆ xmlName()

UString ts::AbstractSignalization::xmlName ( ) const

Get the XMl node name representing this table or descriptor.

Returns
The XML node name.

◆ toXML()

virtual xml::Element* ts::AbstractSignalization::toXML ( DuckContext duck,
xml::Element parent 
) const
finalvirtual

This method converts this object to XML.

When this object is valid, this method creates a root node with the default XML name and then invokes buildXML() in the subclass to populate the XML node.

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

◆ fromXML()

virtual void ts::AbstractSignalization::fromXML ( DuckContext duck,
const xml::Element element 
)
finalvirtual

This method converts an XML structure to a table or descriptor in this object.

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

This method checks the name of the XML node and then invokes analyzeXML() in the subclass. Depending on the returned values of analyzeXML(), this object is either validated or invalidated.

Parameters
[in,out]duckTSDuck execution context.
[in]elementXML element to convert.

◆ definingStandards()

virtual Standards ts::AbstractSignalization::definingStandards ( ) const
overridevirtual

Get the list of standards which define this object.

Returns
A bit mask of standards.

Implements ts::AbstractDefinedByStandards.

◆ SerializeFixedLength()

static bool ts::AbstractSignalization::SerializeFixedLength ( DuckContext duck,
ByteBlock bb,
const UString str,
const size_t  size 
)
static

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

Parameters
[in,out]duckTSDuck execution context.
[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.
Returns
True if the size has the required length and has been serialized.

◆ SerializeLanguageCode()

static bool ts::AbstractSignalization::SerializeLanguageCode ( ByteBlock bb,
const UString str,
bool  allow_empty = false 
)
static

This static 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]allow_emptyIf true, an empty string is allowed and serialized as zeroes.
Returns
True if the size has the required length and has been serialized.

◆ DeserializeLanguageCode()

static UString ts::AbstractSignalization::DeserializeLanguageCode ( const uint8_t *  data)
static

This static method deserializes a 3-byte language or country code.

Parameters
[in]dataAddress of a 3-byte memory area.
Returns
Deserialized string.

◆ operator=()

AbstractSignalization& ts::AbstractSignalization::operator= ( const AbstractSignalization other)
protected

Assignment operator.

Parameters
[in]otherThe other instance to copy.
Returns
A reference to this object.

◆ clearContent()

virtual void ts::AbstractSignalization::clearContent ( )
protectedpure virtual

Helper method to clear the content of the table or descriptor.

It is called by clear(). In clearContent(), the subclass shall simply revert the value of all fields to their original values in the default constructor.

Implemented in ts::EIT, ts::SDT, ts::UNT, ts::VCT, ts::PMT, ts::DCCT, ts::NBIT, ts::CableEmergencyAlertTable, ts::TeletextDescriptor, ts::LinkageDescriptor, ts::AbstractTransportListTable, ts::PCAT, ts::DCCSCT, ts::SSULinkageDescriptor, ts::AIT, ts::SSUDataBroadcastIdDescriptor, ts::SHDeliverySystemDescriptor, ts::VBIDataDescriptor, ts::MGT, ts::NorDigLogicalChannelDescriptorV2, ts::TransportProtocolDescriptor, ts::INT, ts::ContentDescriptor, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::ATSCEIT, ts::ERT, ts::ExtendedEventDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::RRT, ts::LIT, ts::SpliceInsert, ts::ServiceListDescriptor, ts::AbstractMultilingualDescriptor, ts::STT, ts::SpliceSchedule, ts::BIT, ts::LDT, ts::EutelsatChannelNumberDescriptor, ts::ParentalRatingDescriptor, ts::SubtitlingDescriptor, ts::T2DeliverySystemDescriptor, ts::SelectionInformationTable, ts::SkyLogicalChannelNumberDescriptor, ts::AbstractLogicalChannelDescriptor, ts::ISO639LanguageDescriptor, ts::NetworkChangeNotifyDescriptor, ts::DTSHDDescriptor, ts::CellListDescriptor, ts::EASInbandExceptionChannelsDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::NorDigLogicalChannelDescriptorV1, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::TOT, ts::DTGServiceAttributeDescriptor, ts::ApplicationSignallingDescriptor, ts::SpliceSegmentationDescriptor, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::RST, ts::CellFrequencyLinkDescriptor, ts::FMCDescriptor, ts::PrefetchDescriptor, ts::S2XSatelliteDeliverySystemDescriptor, ts::SpliceInformationTable, ts::ServiceLocationDescriptor, ts::ATSCTimeShiftedServiceDescriptor, ts::AudioPreselectionDescriptor, ts::CaptionServiceDescriptor, ts::EventGroupDescriptor, ts::NVODReferenceDescriptor, ts::LocalTimeOffsetDescriptor, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::C2BundleDeliverySystemDescriptor, ts::EASAudioFileDescriptor, ts::TargetMACAddressRangeDescriptor, ts::AbstractPreferredNameListDescriptor, ts::AbstractDescriptorsTable, ts::ApplicationDescriptor, ts::ExtendedBroadcasterDescriptor, ts::MosaicDescriptor, ts::AnnouncementSupportDescriptor, ts::MultilingualServiceNameDescriptor, ts::ContentAdvisoryDescriptor, ts::DigitalCopyControlDescriptor, ts::FrequencyListDescriptor, ts::SIPrimeTSDescriptor, ts::ShortEventDescriptor, ts::TargetRegionNameDescriptor, ts::SIParameterDescriptor, ts::TargetRegionDescriptor, ts::ServiceGroupDescriptor, ts::TSInformationDescriptor, ts::ATSCEAC3AudioDescriptor, ts::HEVCVideoDescriptor, ts::VideoDepthRangeDescriptor, ts::ITT, ts::AreaBroadcastingInformationDescriptor, ts::ATSCAC3AudioStreamDescriptor, ts::DVBEnhancedAC3Descriptor, ts::EmergencyInformationDescriptor, ts::ReferenceDescriptor, ts::SchedulingDescriptor, ts::PAT, ts::DataBroadcastIdDescriptor, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::TelephoneDescriptor, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AbstractPreferredNameIdentifierDescriptor, ts::AVCTimingAndHRDDescriptor, ts::DVBAC3Descriptor, ts::J2KVideoDescriptor, ts::StreamEventDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::AudioComponentDescriptor, ts::ImageIconDescriptor, ts::MessageDescriptor, ts::SVCExtensionDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::MVCExtensionDescriptor, ts::AVCVideoDescriptor, ts::DTGGuidanceDescriptor, ts::IPMACStreamLocationDescriptor, ts::SeriesDescriptor, ts::SpliceTimeDescriptor, ts::SSUEnhancedMessageDescriptor, ts::TargetSmartcardDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::SSUMessageDescriptor, ts::TargetSerialNumberDescriptor, ts::UpdateDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::C2DeliverySystemDescriptor, ts::CAIdentifierDescriptor, ts::ComponentDescriptor, ts::DVBJApplicationLocationDescriptor, ts::EASInbandDetailsChannelDescriptor, ts::EASMetadataDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::SSUEventNameDescriptor, ts::SSULocationDescriptor, ts::SSUURIDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ApplicationUsageDescriptor, ts::ContentAvailabilityDescriptor, ts::DataContentDescriptor, ts::DTGShortServiceNameDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::HybridInformationDescriptor, ts::IPSignallingDescriptor, ts::ISDBAccessControlDescriptor, ts::LogoTransmissionDescriptor, ts::NodeRelationDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::AACDescriptor, ts::CableDeliverySystemDescriptor, ts::CAContractInfoDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBAC4Descriptor, ts::DVBJApplicationDescriptor, ts::EacemStreamIdentifierDescriptor, ts::ISDBTerrestrialDeliverySystemDescriptor, ts::NPTEndpointDescriptor, ts::ServiceDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SSUSubgroupAssociationDescriptor, ts::StereoscopicVideoInfoDescriptor, ts::SupplementaryAudioDescriptor, ts::ETT, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::CAEMMTSDescriptor, ts::CAServiceDescriptor, ts::DeferredAssociationTagsDescriptor, ts::DSNGDescriptor, ts::FlexMuxTimingDescriptor, ts::FTAContentManagementDescriptor, ts::PDCDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::SystemManagementDescriptor, ts::T2MIDescriptor, ts::URILinkageDescriptor, ts::VideoDecodeControlDescriptor, ts::ConditionalPlaybackDescriptor, ts::DCCArrivingRequestDescriptor, ts::DCCDepartingRequestDescriptor, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MetadataSTDDescriptor, ts::MPEG2AACAudioDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::ShortNodeInformationDescriptor, ts::ShortSmoothingBufferDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::ATSCStuffingDescriptor, ts::BoardInformationDescriptor, ts::CarouselIdentifierDescriptor, ts::ComponentNameDescriptor, ts::CopyrightDescriptor, ts::DataComponentDescriptor, ts::DTSNeuralDescriptor, ts::DVBStuffingDescriptor, ts::ExtendedChannelNameDescriptor, ts::GenreDescriptor, ts::HierarchicalTransmissionDescriptor, ts::MPEG2StereoscopicVideoFormatDescriptor, ts::MultiplexBufferDescriptor, ts::PartialReceptionDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ProtectionMessageDescriptor, ts::RedistributionControlDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::TimeShiftedEventDescriptor, ts::TransportProfileDescriptor, ts::BouquetNameDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::DVBTimeShiftedServiceDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::NetworkNameDescriptor, ts::SLDescriptor, ts::StereoscopicProgramInfoDescriptor, ts::DiscontinuityInformationTable, ts::TDT, ts::AFExtensionsDescriptor, ts::StreamIdentifierDescriptor, ts::BroadcasterNameDescriptor, and ts::MultilingualComponentDescriptor.

◆ buildXML()

virtual void ts::AbstractSignalization::buildXML ( DuckContext duck,
xml::Element root 
) const
protectedpure virtual

Helper method to convert this object to XML.

It is called by toXML() only when the object is valid. The root element is already built with the appropriate XML node name. In buildXML(), the subclass shall simply populate the XML node.

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

Implemented in ts::EIT, ts::SDT, ts::UNT, ts::VCT, ts::PMT, ts::DCCT, ts::NBIT, ts::CableEmergencyAlertTable, ts::TeletextDescriptor, ts::PCAT, ts::LinkageDescriptor, ts::DCCSCT, ts::AIT, ts::SSULinkageDescriptor, ts::SSUDataBroadcastIdDescriptor, ts::MGT, ts::INT, ts::SHDeliverySystemDescriptor, ts::VBIDataDescriptor, ts::NorDigLogicalChannelDescriptorV2, ts::TransportProtocolDescriptor, ts::ATSCEIT, ts::ERT, ts::ContentDescriptor, ts::RRT, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::LIT, ts::ExtendedEventDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::SpliceInsert, ts::ServiceListDescriptor, ts::STT, ts::BIT, ts::LDT, ts::AbstractMultilingualDescriptor, ts::SpliceSchedule, ts::SelectionInformationTable, ts::EutelsatChannelNumberDescriptor, ts::ISO639LanguageDescriptor, ts::ParentalRatingDescriptor, ts::SubtitlingDescriptor, ts::T2DeliverySystemDescriptor, ts::SkyLogicalChannelNumberDescriptor, ts::AbstractLogicalChannelDescriptor, ts::NetworkChangeNotifyDescriptor, ts::DTSHDDescriptor, ts::CellListDescriptor, ts::EASInbandExceptionChannelsDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::NorDigLogicalChannelDescriptorV1, ts::TOT, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::RST, ts::DTGServiceAttributeDescriptor, ts::NIT, ts::SpliceInformationTable, ts::ApplicationSignallingDescriptor, ts::SpliceSegmentationDescriptor, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::CellFrequencyLinkDescriptor, ts::FMCDescriptor, ts::PrefetchDescriptor, ts::S2XSatelliteDeliverySystemDescriptor, ts::ServiceLocationDescriptor, ts::ATSCTimeShiftedServiceDescriptor, ts::AudioPreselectionDescriptor, ts::CaptionServiceDescriptor, ts::EventGroupDescriptor, ts::NVODReferenceDescriptor, ts::LocalTimeOffsetDescriptor, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::AbstractDescriptorsTable, ts::C2BundleDeliverySystemDescriptor, ts::EASAudioFileDescriptor, ts::TargetMACAddressRangeDescriptor, ts::AbstractPreferredNameListDescriptor, ts::ApplicationDescriptor, ts::ExtendedBroadcasterDescriptor, ts::MosaicDescriptor, ts::AnnouncementSupportDescriptor, ts::MultilingualServiceNameDescriptor, ts::ContentAdvisoryDescriptor, ts::DigitalCopyControlDescriptor, ts::FrequencyListDescriptor, ts::SIPrimeTSDescriptor, ts::ShortEventDescriptor, ts::TargetRegionNameDescriptor, ts::SIParameterDescriptor, ts::TargetRegionDescriptor, ts::ITT, ts::ServiceGroupDescriptor, ts::TSInformationDescriptor, ts::ATSCEAC3AudioDescriptor, ts::HEVCVideoDescriptor, ts::VideoDepthRangeDescriptor, ts::PAT, ts::AreaBroadcastingInformationDescriptor, ts::ATSCAC3AudioStreamDescriptor, ts::DVBEnhancedAC3Descriptor, ts::EmergencyInformationDescriptor, ts::ReferenceDescriptor, ts::SchedulingDescriptor, ts::DataBroadcastIdDescriptor, ts::DSMCCStreamDescriptorsTable, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::TelephoneDescriptor, ts::BAT, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AbstractPreferredNameIdentifierDescriptor, ts::AVCTimingAndHRDDescriptor, ts::DVBAC3Descriptor, ts::J2KVideoDescriptor, ts::StreamEventDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::AudioComponentDescriptor, ts::ImageIconDescriptor, ts::MessageDescriptor, ts::SVCExtensionDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::MVCExtensionDescriptor, ts::AVCVideoDescriptor, ts::DTGGuidanceDescriptor, ts::IPMACStreamLocationDescriptor, ts::SeriesDescriptor, ts::SpliceTimeDescriptor, ts::SSUEnhancedMessageDescriptor, ts::TargetSmartcardDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::SSUMessageDescriptor, ts::TargetSerialNumberDescriptor, ts::UpdateDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::C2DeliverySystemDescriptor, ts::CAIdentifierDescriptor, ts::ComponentDescriptor, ts::DVBJApplicationLocationDescriptor, ts::EASInbandDetailsChannelDescriptor, ts::EASMetadataDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::SSUEventNameDescriptor, ts::SSULocationDescriptor, ts::SSUURIDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ETT, ts::ApplicationUsageDescriptor, ts::ContentAvailabilityDescriptor, ts::DataContentDescriptor, ts::DTGShortServiceNameDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::HybridInformationDescriptor, ts::IPSignallingDescriptor, ts::ISDBAccessControlDescriptor, ts::LogoTransmissionDescriptor, ts::NodeRelationDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::AACDescriptor, ts::CableDeliverySystemDescriptor, ts::CAContractInfoDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBAC4Descriptor, ts::DVBJApplicationDescriptor, ts::EacemStreamIdentifierDescriptor, ts::ISDBTerrestrialDeliverySystemDescriptor, ts::NPTEndpointDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SSUSubgroupAssociationDescriptor, ts::StereoscopicVideoInfoDescriptor, ts::SupplementaryAudioDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::CAEMMTSDescriptor, ts::CAServiceDescriptor, ts::DeferredAssociationTagsDescriptor, ts::DSNGDescriptor, ts::FlexMuxTimingDescriptor, ts::FTAContentManagementDescriptor, ts::PDCDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::SystemManagementDescriptor, ts::T2MIDescriptor, ts::URILinkageDescriptor, ts::VideoDecodeControlDescriptor, ts::BouquetNameDescriptor, ts::ConditionalPlaybackDescriptor, ts::DCCArrivingRequestDescriptor, ts::DCCDepartingRequestDescriptor, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MetadataSTDDescriptor, ts::MPEG2AACAudioDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::ShortNodeInformationDescriptor, ts::ShortSmoothingBufferDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::DiscontinuityInformationTable, ts::TDT, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::ATSCStuffingDescriptor, ts::BoardInformationDescriptor, ts::CarouselIdentifierDescriptor, ts::ComponentNameDescriptor, ts::CopyrightDescriptor, ts::DataComponentDescriptor, ts::DTSNeuralDescriptor, ts::DVBStuffingDescriptor, ts::ExtendedChannelNameDescriptor, ts::GenreDescriptor, ts::HierarchicalTransmissionDescriptor, ts::MPEG2StereoscopicVideoFormatDescriptor, ts::MultiplexBufferDescriptor, ts::PartialReceptionDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ProtectionMessageDescriptor, ts::RedistributionControlDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::StreamIdentifierDescriptor, ts::TimeShiftedEventDescriptor, ts::TransportProfileDescriptor, ts::BroadcasterNameDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::DVBTimeShiftedServiceDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::SLDescriptor, ts::StereoscopicProgramInfoDescriptor, ts::AFExtensionsDescriptor, and ts::MultilingualComponentDescriptor.

◆ analyzeXML()

virtual bool ts::AbstractSignalization::analyzeXML ( DuckContext duck,
const xml::Element element 
)
protectedpure virtual

Helper method to convert this object from XML.

It is called by fromXML() after checking the validity of the XML node name. In analyzeXML(), the subclass shall populate the C++ object from the content of the XML node. If analyzeXML() returns false, this table or descriptor object is then invalidated and cleared.

Parameters
[in,out]duckTSDuck execution context.
[in]elementXML element to convert.
Returns
True if the analysis is correct, false otherwise.

Implemented in ts::EIT, ts::SDT, ts::UNT, ts::VCT, ts::PMT, ts::DCCT, ts::NBIT, ts::CableEmergencyAlertTable, ts::TeletextDescriptor, ts::PCAT, ts::LinkageDescriptor, ts::DCCSCT, ts::AIT, ts::SSULinkageDescriptor, ts::SSUDataBroadcastIdDescriptor, ts::MGT, ts::INT, ts::SHDeliverySystemDescriptor, ts::VBIDataDescriptor, ts::NorDigLogicalChannelDescriptorV2, ts::TransportProtocolDescriptor, ts::ATSCEIT, ts::ERT, ts::ContentDescriptor, ts::RRT, ts::CADescriptor, ts::NPTReferenceDescriptor, ts::LIT, ts::ExtendedEventDescriptor, ts::SatelliteDeliverySystemDescriptor, ts::SpliceInsert, ts::ServiceListDescriptor, ts::STT, ts::BIT, ts::LDT, ts::AbstractMultilingualDescriptor, ts::SpliceSchedule, ts::SelectionInformationTable, ts::EutelsatChannelNumberDescriptor, ts::ISO639LanguageDescriptor, ts::ParentalRatingDescriptor, ts::SubtitlingDescriptor, ts::T2DeliverySystemDescriptor, ts::SkyLogicalChannelNumberDescriptor, ts::AbstractLogicalChannelDescriptor, ts::NetworkChangeNotifyDescriptor, ts::DTSHDDescriptor, ts::CellListDescriptor, ts::EASInbandExceptionChannelsDescriptor, ts::ExternalApplicationAuthorizationDescriptor, ts::NorDigLogicalChannelDescriptorV1, ts::TOT, ts::DIILocationDescriptor, ts::ApplicationRecordingDescriptor, ts::RST, ts::DTGServiceAttributeDescriptor, ts::NIT, ts::SpliceInformationTable, ts::ApplicationSignallingDescriptor, ts::SpliceSegmentationDescriptor, ts::TargetIPSourceSlashDescriptor, ts::TargetIPv6SourceSlashDescriptor, ts::CellFrequencyLinkDescriptor, ts::FMCDescriptor, ts::PrefetchDescriptor, ts::S2XSatelliteDeliverySystemDescriptor, ts::ServiceLocationDescriptor, ts::ATSCTimeShiftedServiceDescriptor, ts::AudioPreselectionDescriptor, ts::CaptionServiceDescriptor, ts::EventGroupDescriptor, ts::NVODReferenceDescriptor, ts::LocalTimeOffsetDescriptor, ts::TargetIPSlashDescriptor, ts::TargetIPv6SlashDescriptor, ts::AbstractDescriptorsTable, ts::C2BundleDeliverySystemDescriptor, ts::EASAudioFileDescriptor, ts::TargetMACAddressRangeDescriptor, ts::AbstractPreferredNameListDescriptor, ts::ApplicationDescriptor, ts::ExtendedBroadcasterDescriptor, ts::MosaicDescriptor, ts::AnnouncementSupportDescriptor, ts::MultilingualServiceNameDescriptor, ts::ContentAdvisoryDescriptor, ts::DigitalCopyControlDescriptor, ts::FrequencyListDescriptor, ts::SIPrimeTSDescriptor, ts::ShortEventDescriptor, ts::TargetRegionNameDescriptor, ts::SIParameterDescriptor, ts::TargetRegionDescriptor, ts::ITT, ts::ServiceGroupDescriptor, ts::TSInformationDescriptor, ts::ATSCEAC3AudioDescriptor, ts::HEVCVideoDescriptor, ts::VideoDepthRangeDescriptor, ts::PAT, ts::AreaBroadcastingInformationDescriptor, ts::ATSCAC3AudioStreamDescriptor, ts::DVBEnhancedAC3Descriptor, ts::EmergencyInformationDescriptor, ts::ReferenceDescriptor, ts::SchedulingDescriptor, ts::DataBroadcastIdDescriptor, ts::DSMCCStreamDescriptorsTable, ts::CountryAvailabilityDescriptor, ts::TargetIPAddressDescriptor, ts::TargetIPv6AddressDescriptor, ts::TelephoneDescriptor, ts::BAT, ts::SpliceDTMFDescriptor, ts::TargetMACAddressDescriptor, ts::AbstractPreferredNameIdentifierDescriptor, ts::AVCTimingAndHRDDescriptor, ts::DVBAC3Descriptor, ts::J2KVideoDescriptor, ts::StreamEventDescriptor, ts::TerrestrialDeliverySystemDescriptor, ts::AudioComponentDescriptor, ts::ImageIconDescriptor, ts::MessageDescriptor, ts::SVCExtensionDescriptor, ts::ApplicationStorageDescriptor, ts::IPMACGenericStreamLocationDescriptor, ts::MVCExtensionDescriptor, ts::AVCVideoDescriptor, ts::DTGGuidanceDescriptor, ts::IPMACStreamLocationDescriptor, ts::SeriesDescriptor, ts::SpliceTimeDescriptor, ts::SSUEnhancedMessageDescriptor, ts::TargetSmartcardDescriptor, ts::CueIdentifierDescriptor, ts::DTSDescriptor, ts::GraphicsConstraintsDescriptor, ts::HierarchyDescriptor, ts::IPMACPlatformNameDescriptor, ts::IPMACPlatformProviderNameDescriptor, ts::SSUMessageDescriptor, ts::TargetSerialNumberDescriptor, ts::UpdateDescriptor, ts::VideoStreamDescriptor, ts::ApplicationIconsDescriptor, ts::C2DeliverySystemDescriptor, ts::CAIdentifierDescriptor, ts::ComponentDescriptor, ts::DVBJApplicationLocationDescriptor, ts::EASInbandDetailsChannelDescriptor, ts::EASMetadataDescriptor, ts::HEVCTimingAndHRDDescriptor, ts::ISPAccessModeDescriptor, ts::MaximumBitrateDescriptor, ts::PartialTransportStreamDescriptor, ts::ServiceAvailabilityDescriptor, ts::ServiceDescriptor, ts::SSUEventNameDescriptor, ts::SSULocationDescriptor, ts::SSUURIDescriptor, ts::TimeSliceFECIdentifierDescriptor, ts::ETT, ts::ApplicationUsageDescriptor, ts::ContentAvailabilityDescriptor, ts::DataContentDescriptor, ts::DTGShortServiceNameDescriptor, ts::DVBHTMLApplicationBoundaryDescriptor, ts::DVBHTMLApplicationDescriptor, ts::DVBHTMLApplicationLocationDescriptor, ts::HybridInformationDescriptor, ts::IPSignallingDescriptor, ts::ISDBAccessControlDescriptor, ts::LogoTransmissionDescriptor, ts::NodeRelationDescriptor, ts::S2SatelliteDeliverySystemDescriptor, ts::SpliceAvailDescriptor, ts::AACDescriptor, ts::CableDeliverySystemDescriptor, ts::CAContractInfoDescriptor, ts::CPDescriptor, ts::DataBroadcastDescriptor, ts::DVBAC4Descriptor, ts::DVBJApplicationDescriptor, ts::EacemStreamIdentifierDescriptor, ts::ISDBTerrestrialDeliverySystemDescriptor, ts::NPTEndpointDescriptor, ts::SimpleApplicationBoundaryDescriptor, ts::SimpleApplicationLocationDescriptor, ts::SSUSubgroupAssociationDescriptor, ts::StereoscopicVideoInfoDescriptor, ts::SupplementaryAudioDescriptor, ts::AssociationTagDescriptor, ts::AudioStreamDescriptor, ts::CAEMMTSDescriptor, ts::CAServiceDescriptor, ts::DeferredAssociationTagsDescriptor, ts::DSNGDescriptor, ts::FlexMuxTimingDescriptor, ts::FTAContentManagementDescriptor, ts::PDCDescriptor, ts::RegistrationDescriptor, ts::ServiceIdentifierDescriptor, ts::SystemManagementDescriptor, ts::T2MIDescriptor, ts::URILinkageDescriptor, ts::VideoDecodeControlDescriptor, ts::BouquetNameDescriptor, ts::ConditionalPlaybackDescriptor, ts::DCCArrivingRequestDescriptor, ts::DCCDepartingRequestDescriptor, ts::ECMRepetitionRateDescriptor, ts::IBPDescriptor, ts::MetadataSTDDescriptor, ts::MPEG2AACAudioDescriptor, ts::MultiplexBufferUtilizationDescriptor, ts::NetworkNameDescriptor, ts::ServiceMoveDescriptor, ts::ServiceRelocatedDescriptor, ts::ShortNodeInformationDescriptor, ts::ShortSmoothingBufferDescriptor, ts::StreamModeDescriptor, ts::SystemClockDescriptor, ts::TargetBackgroundGridDescriptor, ts::TransportStreamDescriptor, ts::VideoWindowDescriptor, ts::DiscontinuityInformationTable, ts::TDT, ts::AdaptationFieldDataDescriptor, ts::AncillaryDataDescriptor, ts::ATSCStuffingDescriptor, ts::BoardInformationDescriptor, ts::CarouselIdentifierDescriptor, ts::ComponentNameDescriptor, ts::CopyrightDescriptor, ts::DataComponentDescriptor, ts::DTSNeuralDescriptor, ts::DVBStuffingDescriptor, ts::ExtendedChannelNameDescriptor, ts::GenreDescriptor, ts::HierarchicalTransmissionDescriptor, ts::MPEG2StereoscopicVideoFormatDescriptor, ts::MultiplexBufferDescriptor, ts::PartialReceptionDescriptor, ts::PrivateDataIndicatorDescriptor, ts::PrivateDataSpecifierDescriptor, ts::ProtectionMessageDescriptor, ts::RedistributionControlDescriptor, ts::ScramblingDescriptor, ts::SmoothingBufferDescriptor, ts::STDDescriptor, ts::StreamIdentifierDescriptor, ts::TimeShiftedEventDescriptor, ts::TransportProfileDescriptor, ts::BroadcasterNameDescriptor, ts::CIAncillaryDataDescriptor, ts::CPIdentifierDescriptor, ts::DataStreamAlignmentDescriptor, ts::DVBTimeShiftedServiceDescriptor, ts::ExternalESIdDescriptor, ts::MPEG4AudioDescriptor, ts::MPEG4VideoDescriptor, ts::SLDescriptor, ts::StereoscopicProgramInfoDescriptor, ts::AFExtensionsDescriptor, and ts::MultilingualComponentDescriptor.

◆ deserializeLanguageCode()

bool ts::AbstractSignalization::deserializeLanguageCode ( UString lang,
const uint8_t *&  data,
size_t &  size 
)
protected

Deserialize a 3-byte language or country code.

Parameters
[out]langDeserialized language code.
[in,out]dataAddress of memory area. Adjusted to point after the deserialized data.
[in,out]sizeRemaining size in bytes of memory area. Adjusted remove the deserialized data.
Returns
True on success, false on error. On error, the object is invalidated.

◆ deserializeInt()

template<typename INT , typename std::enable_if< std::is_integral< INT >::value >::type * = nullptr>
bool ts::AbstractSignalization::deserializeInt ( INT value,
const uint8_t *&  data,
size_t &  size 
)
protected

Deserialize an integer.

Template Parameters
INTSome integer type.
Parameters
[out]valueDeserialized integer value.
[in,out]dataAddress of memory area. Adjusted to point after the deserialized data.
[in,out]sizeRemaining size in bytes of memory area. Adjusted remove the deserialized data.
Returns
True on success, false on error. On error, the object is invalidated.

◆ deserializeBool()

bool ts::AbstractSignalization::deserializeBool ( bool &  value,
const uint8_t *&  data,
size_t &  size,
size_t  bit = 0 
)
protected

Deserialize a one-bit boolean inside one byte.

Parameters
[out]valueDeserialized bool value.
[in,out]dataAddress of memory area. Adjusted to point after the deserialized data (one byte).
[in,out]sizeRemaining size in bytes of memory area. Adjusted remove the deserialized data.
[in]bitBit number of the boolean in the deserialized byte, from 0 (LSB) to 7 (MSB).
Returns
True on success, false on error. On error, the object is invalidated.

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