libmpd++
DASH MPD parsing and manipulation library
 
Loading...
Searching...
No Matches
com::bbc::libmpdpp::Representation Class Reference

#include <libmpd++/Representation.hh>

Inheritance diagram for com::bbc::libmpdpp::Representation:
Collaboration diagram for com::bbc::libmpdpp::Representation:

Public Types

using time_type = std::chrono::system_clock::time_point
 The type used to represent date-time values in this class.
 
using duration_type = std::chrono::microseconds
 The type used to represent duration values in this class.
 
- Public Types inherited from com::bbc::libmpdpp::RepresentationBase
enum  VideoScan { VIDEO_SCAN_PROGRESSIVE , VIDEO_SCAN_INTERLACED , VIDEO_SCAN_UNKNOWN }
 

Public Member Functions

 Representation ()
 
 Representation (const Representation &to_copy)
 
 Representation (Representation &&to_move)
 
virtual ~Representation ()
 
Representationoperator= (const Representation &to_copy)
 
Representationoperator= (Representation &&to_move)
 
bool operator== (const Representation &to_compare) const
 
const std::string & id () const
 
Representationid (const std::string &id)
 
Representationid (std::string &&id)
 
unsigned int bandwidth () const
 
Representationbandwidth (unsigned int bandwidth)
 
bool hasQualityRanking () const
 
const std::optional< unsigned int > & qualityRanking () const
 
RepresentationqualityRanking (const std::nullopt_t &)
 
RepresentationqualityRanking (unsigned int qual_rank)
 
RepresentationqualityRanking (const std::optional< unsigned int > &qual_rank)
 
const std::list< std::string > & dependencyId () const
 
const std::list< std::string > & associationId () const
 
const std::list< std::string > & associationType () const
 
const std::list< std::string > & mediaStreamStructureId () const
 
URI getMediaURL (unsigned long segment_number) const
 
URI getMediaURL (time_type segment_time) const
 
URI getInitializationURL () const
 
std::list< BaseURLgetBaseURLs () const
 
bool isSelected () const
 
SegmentAvailability segmentAvailability (const time_type &query_time) const
 
SegmentAvailability initialisationSegmentAvailability () const
 
MPDgetMPD ()
 
const MPDgetMPD () const
 
PeriodgetPeriod ()
 
const PeriodgetPeriod () const
 
AdaptationSetgetAdaptationSet ()
 
const AdaptationSetgetAdaptationSet () const
 
- Public Member Functions inherited from com::bbc::libmpdpp::RepresentationBase
 RepresentationBase ()
 
 RepresentationBase (const RepresentationBase &to_copy)
 
 RepresentationBase (RepresentationBase &&to_move)
 
virtual ~RepresentationBase ()
 
RepresentationBaseoperator= (const RepresentationBase &to_copy)
 
RepresentationBaseoperator= (RepresentationBase &&to_move)
 
bool operator== (const RepresentationBase &to_compare) const
 
const std::list< URI > & profiles () const
 
const URIprofile (std::list< URI >::size_type idx) const
 
RepresentationBaseprofilesRemove (const URI &val)
 
bool hasWidth () const
 
const std::optional< unsigned int > & width () const
 
RepresentationBasewidth (const std::nullopt_t &)
 
RepresentationBasewidth (unsigned int val)
 
bool hasHeight () const
 
const std::optional< unsigned int > & height () const
 
RepresentationBaseheight (const std::nullopt_t &)
 
bool hasSar () const
 
const std::optional< Ratio > & sar () const
 
RepresentationBasesar (const std::nullopt_t &)
 
bool hasFrameRate () const
 
const std::optional< FrameRate > & frameRate () const
 
RepresentationBaseframeRate (const std::nullopt_t &)
 
RepresentationBaseframeRate (FrameRate::size_type numerator, FrameRate::size_type denominator=1)
 
const std::list< unsigned int > & audioSamplingRates () const
 
unsigned int audioSamplingRate (std::list< unsigned int >::size_type idx) const
 
RepresentationBaseaudioSamplingRatesAdd (unsigned int val)
 
RepresentationBaseaudioSamplingRatesRemove (unsigned int val)
 
bool hasMimeType () const
 
const std::optional< std::string > & mimeType () const
 
RepresentationBasemimeType (const std::nullopt_t &)
 
const std::list< std::string > & segmentProfiles () const
 
const std::string & segmentProfile (std::list< std::string >::size_type idx) const
 
RepresentationBasesegmentProfilesRemove (const std::string &val)
 
bool hasCodecs () const
 
const std::optional< Codecs > & codecs () const
 
RepresentationBasecodecs (const std::nullopt_t &)
 
const std::list< std::string > & containerProfiles () const
 
const std::string & containerProfile (std::list< std::string >::size_type idx) const
 
RepresentationBasecontainerProfilesRemove (const std::string &val)
 
bool hasMaximumSAPPeriod () const
 
const std::optional< double > & maximumSAPPeriod () const
 
RepresentationBasemaximumSAPPeriod (const std::nullopt_t &)
 
bool hasStartWithSAP () const
 
const std::optional< SAP > & startWithSAP () const
 
RepresentationBasestartWithSAP (const std::nullopt_t &)
 
bool hasMaxPlayoutRate () const
 
const std::optional< double > & maxPlayoutRate () const
 
RepresentationBasemaxPlayoutRate (const std::nullopt_t &)
 
bool hasCodingDependency () const
 
const std::optional< bool > & codingDependency () const
 
RepresentationBasecodingDependency (const std::nullopt_t &)
 
bool hasScanType () const
 
const std::optional< VideoScan > & scanType () const
 
RepresentationBasescanType (const std::nullopt_t &)
 
unsigned int selectionPriority () const
 
RepresentationBaseselectionPriority (unsigned int val)
 
bool hasTag () const
 
const std::optional< std::string > & tag () const
 
RepresentationBasetag (const std::nullopt_t &)
 
const std::list< Descriptor > & framePackings () const
 
const DescriptorframePacking (std::list< Descriptor >::size_type idx) const
 
RepresentationBaseframePackingsRemove (const Descriptor &val)
 
const std::list< Descriptor > & audioChannelConfigurations () const
 
const DescriptoraudioChannelConfiguration (std::list< Descriptor >::size_type idx) const
 
RepresentationBaseaudioChannelConfigurationsRemove (const Descriptor &val)
 
const std::list< ContentProtection > & contentProtections () const
 
const ContentProtectioncontentProtection (std::list< ContentProtection >::size_type idx) const
 
RepresentationBasecontentProtectionsRemove (const ContentProtection &val)
 
bool hasOutputProtection () const
 
const std::optional< Descriptor > & outputProtection () const
 
RepresentationBaseoutputProtection (const std::nullopt_t &)
 
const std::list< Descriptor > & essentialProperties () const
 
const DescriptoressentialProperty (std::list< Descriptor >::size_type idx) const
 
RepresentationBaseessentialPropertiesRemove (const Descriptor &val)
 
const std::list< Descriptor > & supplementalProperties () const
 
const DescriptorsupplementalProperty (std::list< Descriptor >::size_type idx) const
 
RepresentationBasesupplementalPropertiesRemove (const Descriptor &val)
 
const std::list< EventStream > & inbandEventStreams () const
 
const EventStreaminbandEventStream (std::list< EventStream >::size_type idx) const
 
RepresentationBaseinbandEventStreamsRemove (const EventStream &val)
 
const std::list< Switching > & switchings () const
 
const Switchingswitching (std::list< Switching >::size_type idx) const
 
RepresentationBaseswitchingsRemove (const Switching &val)
 
const std::list< RandomAccess > & randomAccesses () const
 
const RandomAccessrandomAccess (std::list< RandomAccess >::size_type idx) const
 
RepresentationBaserandomAccessesRemove (const RandomAccess &val)
 
const std::list< Label > & groupLabels () const
 
const LabelgroupLabel (std::list< Label >::size_type idx) const
 
RepresentationBasegroupLabelsRemove (const Label &val)
 
const std::list< Label > & labels () const
 
const Labellabel (std::list< Label >::size_type idx) const
 
RepresentationBaselabelsRemove (const Label &val)
 
const std::list< ProducerReferenceTime > & producerReferenceTimes () const
 
const ProducerReferenceTime & producerReferenceTime (std::list< ProducerReferenceTime >::size_type idx) const
 
RepresentationBaseproducerReferenceTimesRemove (const ProducerReferenceTime &val)
 
const std::list< ContentPopularityRate > & contentPopularityRates () const
 
const ContentPopularityRatecontentPopularityRate (std::list< ContentPopularityRate >::size_type idx) const
 
RepresentationBasecontentPopularityRatesRemove (const ContentPopularityRate &val)
 
const std::list< Resync > & resyncs () const
 
const Resyncresync (std::list< Resync >::size_type idx) const
 
RepresentationBaseresyncsRemove (const Resync &val)
 
std::list< URI >::const_iterator profilesBegin () const
 
std::list< URI >::iterator profilesBegin ()
 
std::list< URI >::const_iterator profilesEnd () const
 
std::list< URI >::iterator profilesEnd ()
 
RepresentationBaseprofiles (const std::list< URI > &_profiles)
 
RepresentationBaseprofiles (std::list< URI > &&_profiles)
 
RepresentationBaseprofilesAdd (const URI &val)
 
RepresentationBaseprofilesAdd (URI &&val)
 
RepresentationBaseprofilesRemove (const std::list< URI >::const_iterator &it)
 
RepresentationBaseprofilesRemove (const std::list< URI >::iterator &it)
 
RepresentationBaseheight (unsigned int val)
 
RepresentationBaseheight (const std::optional< unsigned int > &val)
 
RepresentationBaseheight (std::optional< unsigned int > &&val)
 
RepresentationBasesar (const Ratio &val)
 
RepresentationBasesar (Ratio &&val)
 
RepresentationBasesar (const std::optional< Ratio > &val)
 
RepresentationBasesar (std::optional< Ratio > &&val)
 
RepresentationBaseframeRate (const FrameRate &val)
 
RepresentationBaseframeRate (FrameRate &&val)
 
RepresentationBaseframeRate (const std::optional< FrameRate > &val)
 
RepresentationBaseframeRate (std::optional< FrameRate > &&val)
 
std::list< unsignedint >::const_iterator audioSamplingRatesBegin () const
 
std::list< unsignedint >::iterator audioSamplingRatesBegin ()
 
std::list< unsignedint >::const_iterator audioSamplingRatesEnd () const
 
std::list< unsignedint >::iterator audioSamplingRatesEnd ()
 
RepresentationBaseaudioSamplingRates (const std::list< unsigned int > &rates)
 
RepresentationBaseaudioSamplingRates (std::list< unsigned int > &&rates)
 
RepresentationBaseaudioSamplingRatesRemove (const std::list< unsigned int >::const_iterator &it)
 
RepresentationBaseaudioSamplingRatesRemove (const std::list< unsigned int >::iterator &it)
 
RepresentationBasemimeType (const std::string &val)
 
RepresentationBasemimeType (std::string &&val)
 
RepresentationBasemimeType (const std::optional< std::string > &val)
 
RepresentationBasemimeType (std::optional< std::string > &&val)
 
RepresentationBasesegmentProfiles (const std::list< std::string > &profiles)
 
RepresentationBasesegmentProfiles (std::list< std::string > &&profiles)
 
std::list< std::string >::const_iterator segmentProfilesBegin () const
 
std::list< std::string >::iterator segmentProfilesBegin ()
 
std::list< std::string >::const_iterator segmentProfilesEnd () const
 
std::list< std::string >::iterator segmentProfilesEnd ()
 
RepresentationBasesegmentProfilesAdd (const std::string &val)
 
RepresentationBasesegmentProfilesAdd (std::string &&val)
 
RepresentationBasesegmentProfilesRemove (const std::list< std::string >::const_iterator &it)
 
RepresentationBasesegmentProfilesRemove (const std::list< std::string >::iterator &it)
 
RepresentationBasecodecs (const Codecs &val)
 
RepresentationBasecodecs (Codecs &&val)
 
RepresentationBasecodecs (const std::optional< Codecs > &val)
 
RepresentationBasecodecs (std::optional< Codecs > &&val)
 
RepresentationBasecontainerProfiles (const std::list< std::string > &profiles)
 
RepresentationBasecontainerProfiles (std::list< std::string > &&profiles)
 
std::list< std::string >::const_iterator containerProfilesBegin () const
 
std::list< std::string >::iterator containerProfilesBegin ()
 
std::list< std::string >::const_iterator containerProfilesEnd () const
 
std::list< std::string >::iterator containerProfilesEnd ()
 
RepresentationBasecontainerProfilesAdd (const std::string &val)
 
RepresentationBasecontainerProfilesAdd (std::string &&val)
 
RepresentationBasecontainerProfilesRemove (const std::list< std::string >::const_iterator &it)
 
RepresentationBasecontainerProfilesRemove (const std::list< std::string >::iterator &it)
 
RepresentationBasemaximumSAPPeriod (double val)
 
RepresentationBasemaximumSAPPeriod (const std::optional< double > &val)
 
RepresentationBasemaximumSAPPeriod (std::optional< double > &&val)
 
RepresentationBasestartWithSAP (const SAP &val)
 
RepresentationBasestartWithSAP (SAP &&val)
 
RepresentationBasestartWithSAP (const std::optional< SAP > &val)
 
RepresentationBasestartWithSAP (std::optional< SAP > &&val)
 
RepresentationBasemaxPlayoutRate (double val)
 
RepresentationBasemaxPlayoutRate (const std::optional< double > &val)
 
RepresentationBasemaxPlayoutRate (std::optional< double > &&val)
 
RepresentationBasecodingDependency (bool val)
 
RepresentationBasecodingDependency (const std::optional< bool > &val)
 
RepresentationBasecodingDependency (std::optional< bool > &&val)
 
RepresentationBasescanType (const VideoScan &val)
 
RepresentationBasescanType (VideoScan &&val)
 
RepresentationBasescanType (const std::optional< VideoScan > &val)
 
RepresentationBasescanType (std::optional< VideoScan > &&val)
 
RepresentationBasetag (const std::string &val)
 
RepresentationBasetag (std::string &&val)
 
RepresentationBasetag (const std::optional< std::string > &val)
 
RepresentationBasetag (std::optional< std::string > &&val)
 
RepresentationBaseframePackings (const std::list< Descriptor > &packings)
 
RepresentationBaseframePackings (std::list< Descriptor > &&packings)
 
std::list< Descriptor >::const_iterator framePackingsBegin () const
 
std::list< Descriptor >::iterator framePackingsBegin ()
 
std::list< Descriptor >::const_iterator framePackingsEnd () const
 
std::list< Descriptor >::iterator framePackingsEnd ()
 
RepresentationBaseframePackingsAdd (const Descriptor &val)
 
RepresentationBaseframePackingsAdd (Descriptor &&val)
 
RepresentationBaseframePackingsRemove (const std::list< Descriptor >::const_iterator &it)
 
RepresentationBaseframePackingsRemove (const std::list< Descriptor >::iterator &it)
 
RepresentationBaseaudioChannelConfigurations (const std::list< Descriptor > &packings)
 
RepresentationBaseaudioChannelConfigurations (std::list< Descriptor > &&packings)
 
std::list< Descriptor >::const_iterator audioChannelConfigurationsBegin () const
 
std::list< Descriptor >::iterator audioChannelConfigurationsBegin ()
 
std::list< Descriptor >::const_iterator audioChannelConfigurationsEnd () const
 
std::list< Descriptor >::iterator audioChannelConfigurationsEnd ()
 
RepresentationBaseaudioChannelConfigurationsAdd (const Descriptor &val)
 
RepresentationBaseaudioChannelConfigurationsAdd (Descriptor &&val)
 
RepresentationBaseaudioChannelConfigurationsRemove (const std::list< Descriptor >::const_iterator &it)
 
RepresentationBaseaudioChannelConfigurationsRemove (const std::list< Descriptor >::iterator &it)
 
RepresentationBasecontentProtections (const std::list< ContentProtection > &protections)
 
RepresentationBasecontentProtections (std::list< ContentProtection > &&protections)
 
std::list< ContentProtection >::const_iterator contentProtectionsBegin () const
 
std::list< ContentProtection >::iterator contentProtectionsBegin ()
 
std::list< ContentProtection >::const_iterator contentProtectionsEnd () const
 
std::list< ContentProtection >::iterator contentProtectionsEnd ()
 
RepresentationBasecontentProtectionsAdd (const ContentProtection &val)
 
RepresentationBasecontentProtectionsAdd (ContentProtection &&val)
 
RepresentationBasecontentProtectionsRemove (const std::list< ContentProtection >::const_iterator &it)
 
RepresentationBasecontentProtectionsRemove (const std::list< ContentProtection >::iterator &it)
 
RepresentationBaseoutputProtection (const Descriptor &val)
 
RepresentationBaseoutputProtection (Descriptor &&val)
 
RepresentationBaseoutputProtection (const std::optional< Descriptor > &val)
 
RepresentationBaseoutputProtection (std::optional< Descriptor > &&val)
 
RepresentationBaseessentialProperties (const std::list< Descriptor > &properties)
 
RepresentationBaseessentialProperties (std::list< Descriptor > &&properties)
 
std::list< Descriptor >::const_iterator essentialPropertiesBegin () const
 
std::list< Descriptor >::iterator essentialPropertiesBegin ()
 
std::list< Descriptor >::const_iterator essentialPropertiesEnd () const
 
std::list< Descriptor >::iterator essentialPropertiesEnd ()
 
RepresentationBaseessentialPropertiesAdd (const Descriptor &val)
 
RepresentationBaseessentialPropertiesAdd (Descriptor &&val)
 
RepresentationBaseessentialPropertiesRemove (const std::list< Descriptor >::const_iterator &it)
 
RepresentationBaseessentialPropertiesRemove (const std::list< Descriptor >::iterator &it)
 
RepresentationBasesupplementalProperties (const std::list< Descriptor > &properties)
 
RepresentationBasesupplementalProperties (std::list< Descriptor > &&properties)
 
std::list< Descriptor >::const_iterator supplementalPropertiesBegin () const
 
std::list< Descriptor >::iterator supplementalPropertiesBegin ()
 
std::list< Descriptor >::const_iterator supplementalPropertiesEnd () const
 
std::list< Descriptor >::iterator supplementalPropertiesEnd ()
 
RepresentationBasesupplementalPropertiesAdd (const Descriptor &val)
 
RepresentationBasesupplementalPropertiesAdd (Descriptor &&val)
 
RepresentationBasesupplementalPropertiesRemove (const std::list< Descriptor >::const_iterator &it)
 
RepresentationBasesupplementalPropertiesRemove (const std::list< Descriptor >::iterator &it)
 
RepresentationBaseinbandEventStreams (const std::list< EventStream > &streams)
 
RepresentationBaseinbandEventStreams (std::list< EventStream > &&streams)
 
std::list< EventStream >::const_iterator inbandEventStreamsBegin () const
 
std::list< EventStream >::iterator inbandEventStreamsBegin ()
 
std::list< EventStream >::const_iterator inbandEventStreamsEnd () const
 
std::list< EventStream >::iterator inbandEventStreamsEnd ()
 
RepresentationBaseinbandEventStreamsAdd (const EventStream &val)
 
RepresentationBaseinbandEventStreamsAdd (EventStream &&val)
 
RepresentationBaseinbandEventStreamsRemove (const std::list< EventStream >::const_iterator &it)
 
RepresentationBaseinbandEventStreamsRemove (const std::list< EventStream >::iterator &it)
 
RepresentationBaseswitchings (const std::list< Switching > &_switchings)
 
RepresentationBaseswitchings (std::list< Switching > &&_switchings)
 
std::list< Switching >::const_iterator switchingsBegin () const
 
std::list< Switching >::iterator switchingsBegin ()
 
std::list< Switching >::const_iterator switchingsEnd () const
 
std::list< Switching >::iterator switchingsEnd ()
 
RepresentationBaseswitchingsAdd (const Switching &val)
 
RepresentationBaseswitchingsAdd (Switching &&val)
 
RepresentationBaseswitchingsRemove (const std::list< Switching >::const_iterator &it)
 
RepresentationBaseswitchingsRemove (const std::list< Switching >::iterator &it)
 
RepresentationBaserandomAccesses (const std::list< RandomAccess > &accesses)
 
RepresentationBaserandomAccesses (std::list< RandomAccess > &&accesses)
 
std::list< RandomAccess >::const_iterator randomAccessesBegin () const
 
std::list< RandomAccess >::iterator randomAccessesBegin ()
 
std::list< RandomAccess >::const_iterator randomAccessesEnd () const
 
std::list< RandomAccess >::iterator randomAccessesEnd ()
 
RepresentationBaserandomAccessesAdd (const RandomAccess &val)
 
RepresentationBaserandomAccessesAdd (RandomAccess &&val)
 
RepresentationBaserandomAccessesRemove (const std::list< RandomAccess >::const_iterator &it)
 
RepresentationBaserandomAccessesRemove (const std::list< RandomAccess >::iterator &it)
 
RepresentationBasegroupLabels (const std::list< Label > &labels)
 
RepresentationBasegroupLabels (std::list< Label > &&labels)
 
std::list< Label >::const_iterator groupLabelsBegin () const
 
std::list< Label >::iterator groupLabelsBegin ()
 
std::list< Label >::const_iterator groupLabelsEnd () const
 
std::list< Label >::iterator groupLabelsEnd ()
 
RepresentationBasegroupLabelsAdd (const Label &val)
 
RepresentationBasegroupLabelsAdd (Label &&val)
 
RepresentationBasegroupLabelsRemove (const std::list< Label >::const_iterator &it)
 
RepresentationBasegroupLabelsRemove (const std::list< Label >::iterator &it)
 
RepresentationBaselabels (const std::list< Label > &_labels)
 
RepresentationBaselabels (std::list< Label > &&_labels)
 
std::list< Label >::const_iterator labelsBegin () const
 
std::list< Label >::iterator labelsBegin ()
 
std::list< Label >::const_iterator labelsEnd () const
 
std::list< Label >::iterator labelsEnd ()
 
RepresentationBaselabelsAdd (const Label &val)
 
RepresentationBaselabelsAdd (Label &&val)
 
RepresentationBaselabelsRemove (const std::list< Label >::const_iterator &it)
 
RepresentationBaselabelsRemove (const std::list< Label >::iterator &it)
 
RepresentationBaseproducerReferenceTimes (const std::list< ProducerReferenceTime > &times)
 
RepresentationBaseproducerReferenceTimes (std::list< ProducerReferenceTime > &&times)
 
std::list< ProducerReferenceTime >::const_iterator producerReferenceTimesBegin () const
 
std::list< ProducerReferenceTime >::iterator producerReferenceTimesBegin ()
 
std::list< ProducerReferenceTime >::const_iterator producerReferenceTimesEnd () const
 
std::list< ProducerReferenceTime >::iterator producerReferenceTimesEnd ()
 
RepresentationBaseproducerReferenceTimesAdd (const ProducerReferenceTime &val)
 
RepresentationBaseproducerReferenceTimesAdd (ProducerReferenceTime &&val)
 
RepresentationBaseproducerReferenceTimesRemove (const std::list< ProducerReferenceTime >::const_iterator &it)
 
RepresentationBaseproducerReferenceTimesRemove (const std::list< ProducerReferenceTime >::iterator &it)
 
RepresentationBasecontentPopularityRates (const std::list< ContentPopularityRate > &rates)
 
RepresentationBasecontentPopularityRates (std::list< ContentPopularityRate > &&rates)
 
std::list< ContentPopularityRate >::const_iterator contentPopularityRatesBegin () const
 
std::list< ContentPopularityRate >::iterator contentPopularityRatesBegin ()
 
std::list< ContentPopularityRate >::const_iterator contentPopularityRatesEnd () const
 
std::list< ContentPopularityRate >::iterator contentPopularityRatesEnd ()
 
RepresentationBasecontentPopularityRatesAdd (const ContentPopularityRate &val)
 
RepresentationBasecontentPopularityRatesAdd (ContentPopularityRate &&val)
 
RepresentationBasecontentPopularityRatesRemove (const std::list< ContentPopularityRate >::const_iterator &it)
 
RepresentationBasecontentPopularityRatesRemove (const std::list< ContentPopularityRate >::iterator &it)
 
RepresentationBaseresyncs (const std::list< Resync > &_resyncs)
 
RepresentationBaseresyncs (std::list< Resync > &&_resyncs)
 
std::list< Resync >::const_iterator resyncsBegin () const
 
std::list< Resync >::iterator resyncsBegin ()
 
std::list< Resync >::const_iterator resyncsEnd () const
 
std::list< Resync >::iterator resyncsEnd ()
 
RepresentationBaseresyncsAdd (const Resync &val)
 
RepresentationBaseresyncsAdd (Resync &&val)
 
RepresentationBaseresyncsRemove (const std::list< Resync >::const_iterator &it)
 
RepresentationBaseresyncsRemove (const std::list< Resync >::iterator &it)
 

Detailed Description

Representation class

This is the container for Representation elements from an MPD and follows the schema description of RepresentationType from ISO 23009-1:2022 Clause 5.3.5.3.

Member Typedef Documentation

◆ duration_type

using com::bbc::libmpdpp::Representation::duration_type = std::chrono::microseconds

The type used to represent duration values in this class.

◆ time_type

using com::bbc::libmpdpp::Representation::time_type = std::chrono::system_clock::time_point

The type used to represent date-time values in this class.

Constructor & Destructor Documentation

◆ Representation() [1/3]

com::bbc::libmpdpp::Representation::Representation ( )

Default constructor

Create an empty Representation object

◆ Representation() [2/3]

com::bbc::libmpdpp::Representation::Representation ( const Representation & to_copy)

Copy constructor

Create a new Representation as a copy of to_copy.

Parameters
to_copyThe Representation object to copy into the new Representation.

◆ Representation() [3/3]

com::bbc::libmpdpp::Representation::Representation ( Representation && to_move)

Move constructor

Create a new Representation using the values and resources of to_move.

Parameters
to_moveThe Representation object take the values and resources from to create the new Representation.

◆ ~Representation()

virtual com::bbc::libmpdpp::Representation::~Representation ( )
inlinevirtual

Destructor

Member Function Documentation

◆ associationId()

const std::list< std::string > & com::bbc::libmpdpp::Representation::associationId ( ) const
inline

◆ associationType()

const std::list< std::string > & com::bbc::libmpdpp::Representation::associationType ( ) const
inline

◆ bandwidth() [1/2]

unsigned int com::bbc::libmpdpp::Representation::bandwidth ( ) const
inline

◆ bandwidth() [2/2]

Representation & com::bbc::libmpdpp::Representation::bandwidth ( unsigned int bandwidth)
inline

◆ dependencyId()

const std::list< std::string > & com::bbc::libmpdpp::Representation::dependencyId ( ) const
inline

◆ getAdaptationSet() [1/2]

AdaptationSet * com::bbc::libmpdpp::Representation::getAdaptationSet ( )
inline

Get the AdaptationSet this Representation is attached to

Gets the AdaptationSet object that this Representation is a child of. If the Representation has not been added to an AdaptationSet then nullptr is returned.

Returns
The AdaptationSet this Representation is part of or nullptr.

◆ getAdaptationSet() [2/2]

const AdaptationSet * com::bbc::libmpdpp::Representation::getAdaptationSet ( ) const
inline

Get the AdaptationSet this Representation is attached to

Gets the AdaptationSet object that this Representation is a child of. If the Representation has not been added to an AdaptationSet then nullptr is returned.

Returns
The AdaptationSet this Representation is part of or nullptr.

◆ getBaseURLs()

std::list< BaseURL > com::bbc::libmpdpp::Representation::getBaseURLs ( ) const

Get the list of relevant BaseURLs

Get the list of relevant BaseURLs, resolved to absolute URLs when possible.

Returns
A list of resolves BaseURLs that apply at for this Representation.

◆ getInitializationURL()

URI com::bbc::libmpdpp::Representation::getInitializationURL ( ) const

Get initialisation segment URL

Get the initialisation segment URL.

Returns
The initialisation segment URL or an empty URL if no segment information is available.

◆ getMediaURL() [1/2]

URI com::bbc::libmpdpp::Representation::getMediaURL ( time_type segment_time) const

Get media URL

Get the media URL for a given segment_number.

Parameters
segment_timeThe segment time to fetch the URL for.
Returns
The media segment URL or an empty URL if the segment is unknown.

◆ getMediaURL() [2/2]

URI com::bbc::libmpdpp::Representation::getMediaURL ( unsigned long segment_number) const

Get media URL

Get the media URL for a given segment_number.

Parameters
segment_numberThe segment number to fetch the URL for.
Returns
The media segment URL or an empty URL if the segment is unknown.

◆ getMPD() [1/2]

MPD * com::bbc::libmpdpp::Representation::getMPD ( )

Get the MPD this Representation is attached to

Gets the MPD object this Representation is attached to. This is the equivalent of:

AdaptationSet * getAdaptationSet()
Definition Representation.hh:170
Returns
The MPD this Representation is part of or nullptr

◆ getMPD() [2/2]

const MPD * com::bbc::libmpdpp::Representation::getMPD ( ) const

Get the MPD this Representation is attached to

Gets the MPD object this Representation is attached to. This is the equivalent of:

Returns
The MPD this Representation is part of or nullptr

◆ getPeriod() [1/2]

Period * com::bbc::libmpdpp::Representation::getPeriod ( )

Get the Period this Representation is attached to

Gets the Period object this Representation is attached to. This is the equivalent of:

Period * getPeriod()
Definition AdaptationSet.hh:141
Returns
The Period this Representation is part of or nullptr.

◆ getPeriod() [2/2]

const Period * com::bbc::libmpdpp::Representation::getPeriod ( ) const

Get the Period this Representation is attached to

Gets the Period object this Representation is attached to. This is the equivalent of:

Returns
The Period this Representation is part of or nullptr.

◆ hasQualityRanking()

bool com::bbc::libmpdpp::Representation::hasQualityRanking ( ) const
inline

◆ id() [1/3]

const std::string & com::bbc::libmpdpp::Representation::id ( ) const
inline

◆ id() [2/3]

Representation & com::bbc::libmpdpp::Representation::id ( const std::string & id)
inline

◆ id() [3/3]

Representation & com::bbc::libmpdpp::Representation::id ( std::string && id)
inline

◆ initialisationSegmentAvailability()

SegmentAvailability com::bbc::libmpdpp::Representation::initialisationSegmentAvailability ( ) const

Get the segment availability information of the initialisation segment

This returns the full segment availability information for the initialisation segment. If no initialization segment is available then the SegmentAvailability object returned will have an empty URL.

Returns
The SegmentAvailability for the initialisation segment or an empty SegmentAvailability if no initialisation segment is available.

◆ isSelected()

bool com::bbc::libmpdpp::Representation::isSelected ( ) const

Is this Representation selected by its AdaptationSet?

Returns
true if the Representation is selected in its AdaptationSet.

◆ mediaStreamStructureId()

const std::list< std::string > & com::bbc::libmpdpp::Representation::mediaStreamStructureId ( ) const
inline

◆ operator=() [1/2]

Representation & com::bbc::libmpdpp::Representation::operator= ( const Representation & to_copy)

Copy operator

Make this Representation a copy of to_copy.

Parameters
to_copyThe Representation object to copy into this Representation.
Returns
This Representation.

◆ operator=() [2/2]

Representation & com::bbc::libmpdpp::Representation::operator= ( Representation && to_move)

Move operator

Make this Representation a copy of to_move by moving the values and resources.

Parameters
to_moveThe Representation object to move into this Representation.
Returns
This Representation.

◆ operator==()

bool com::bbc::libmpdpp::Representation::operator== ( const Representation & to_compare) const

Equality operator

Check if to_compare contains the same value as this Representation.

Parameters
to_compareThe other Representation to compare to this Representation.
Returns
true if the values match, otherwise false.

◆ qualityRanking() [1/4]

const std::optional< unsigned int > & com::bbc::libmpdpp::Representation::qualityRanking ( ) const
inline

◆ qualityRanking() [2/4]

Representation & com::bbc::libmpdpp::Representation::qualityRanking ( const std::nullopt_t & )
inline

◆ qualityRanking() [3/4]

Representation & com::bbc::libmpdpp::Representation::qualityRanking ( const std::optional< unsigned int > & qual_rank)
inline

◆ qualityRanking() [4/4]

Representation & com::bbc::libmpdpp::Representation::qualityRanking ( unsigned int qual_rank)
inline

◆ segmentAvailability()

SegmentAvailability com::bbc::libmpdpp::Representation::segmentAvailability ( const time_type & query_time) const

Get the full segment availability information

This returns the full segment availability information for the first segment on or after the query_time provided.

If no segment is available then the SegmentAvailability object returned will have an empty URL.

Parameters
query_timeThe system wallclock time we are querying for.
Returns
The SegmentAvailability for the next available segment or an empty SegmentAvailability if no segment is available.

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