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

#include <libmpd++/ContentProtection.hh>

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

Public Member Functions

 ContentProtection ()=delete
 
 ContentProtection (const ContentProtection &to_copy)
 
 ContentProtection (ContentProtection &&to_move)
 
virtual ~ContentProtection ()
 
ContentProtectionoperator= (const ContentProtection &to_copy)
 
ContentProtectionoperator= (ContentProtection &&to_move)
 
bool operator== (const ContentProtection &other) const
 Compares this ContentProtection with another for equality. This operator overload allows checking if two ContentProtection instances are equal. Currently, the implementation always returns true, meaning all instances are considered equal, regardless of their internal state.
 
bool hasRobustness () const
 
const std::optional< std::string > & robustness () const
 
ContentProtectionrobustness (const std::nullopt_t &)
 
ContentProtectionrobustness (const std::string &val)
 
ContentProtectionrobustness (std::string &&val)
 
ContentProtectionrobustness (const std::optional< std::string > &val)
 
ContentProtectionrobustness (std::optional< std::string > &&val)
 
bool hasRefId () const
 
const std::optional< std::string > & refId () const
 
ContentProtectionrefId (const std::nullopt_t &)
 
ContentProtectionrefId (const std::string &val)
 
ContentProtectionrefId (std::string &&val)
 
ContentProtectionrefId (const std::optional< std::string > &val)
 
ContentProtectionrefId (std::optional< std::string > &&val)
 
bool hasRef () const
 
const std::optional< std::string > & ref () const
 
ContentProtectionref (const std::nullopt_t &)
 
ContentProtectionref (const std::string &val)
 
ContentProtectionref (std::string &&val)
 
ContentProtectionref (const std::optional< std::string > &val)
 
ContentProtectionref (std::optional< std::string > &&val)
 
 ContentProtection (const URI &scheme_id, const std::optional< std::string > &value=std::nullopt, const std::optional< std::string > &id=std::nullopt, const std::optional< std::string > &robustness=std::nullopt, const std::optional< std::string > &ref_id=std::nullopt, const std::optional< std::string > &ref=std::nullopt)
 
 ContentProtection (URI &&scheme_id, const std::optional< std::string > &value=std::nullopt, const std::optional< std::string > &id=std::nullopt, const std::optional< std::string > &robustness=std::nullopt, const std::optional< std::string > &ref_id=std::nullopt, const std::optional< std::string > &ref=std::nullopt)
 
- Public Member Functions inherited from com::bbc::libmpdpp::Descriptor
 Descriptor ()=delete
 
 Descriptor (const Descriptor &other)
 
 Descriptor (Descriptor &&other)
 
virtual ~Descriptor ()
 
Descriptoroperator= (const Descriptor &other)
 
Descriptoroperator= (Descriptor &&other)
 
bool operator== (const Descriptor &other) const
 
bool has_value () const
 
Descriptorvalue (const std::nullopt_t &)
 
bool has_id () const
 
Descriptorid (const std::nullopt_t &)
 
 Descriptor (const URI &scheme_id, const std::optional< std::string > &value=std::nullopt, const std::optional< std::string > &id=std::nullopt)
 Constructs a new Descriptor object.
 
 Descriptor (URI &&scheme_id, const std::optional< std::string > &value=std::nullopt, const std::optional< std::string > &id=std::nullopt)
 Constructs a new Descriptor object.
 
const URIschemeId () const
 
URIschemeId ()
 
DescriptorschemeId (const URI &scheme_id)
 
DescriptorschemeId (URI &&scheme_id)
 
const std::optional< std::string > & value () const
 
std::optional< std::string > & value ()
 
Descriptorvalue (const std::string &val)
 
Descriptorvalue (std::string &&val)
 
const std::optional< std::string > & id () const
 
std::optional< std::string > & id ()
 
Descriptorid (const std::string &id)
 
Descriptorid (std::string &&id)
 

Detailed Description

ContentProtection class

This is a container for the ContentProtectionType element from the DASH MPD XML schema. The schema definition can be found in ISO 23009-1:2022 Clause 5.8.4.1.5

Constructor & Destructor Documentation

◆ ContentProtection() [1/5]

com::bbc::libmpdpp::ContentProtection::ContentProtection ( )
delete

Default constructor (deleted)

This class must be instantiated with at least a schemeId.

◆ ContentProtection() [2/5]

com::bbc::libmpdpp::ContentProtection::ContentProtection ( const URI & scheme_id,
const std::optional< std::string > & value = std::nullopt,
const std::optional< std::string > & id = std::nullopt,
const std::optional< std::string > & robustness = std::nullopt,
const std::optional< std::string > & ref_id = std::nullopt,
const std::optional< std::string > & ref = std::nullopt )

Constructor

Create a new ContentProtection object withthe scheme_id set as the @schemeId attribute.

Parameters
scheme_idThe @schemeId attribute value for the content protection.
valueThe optional @value attribute value for the content protection.
idThe optional @id attribute value for the content protection.
robustnessThe optional @robustness attribute value.
ref_idThe optional @refId attribute value.
refThe optional @ref attribute value.

◆ ContentProtection() [3/5]

com::bbc::libmpdpp::ContentProtection::ContentProtection ( URI && scheme_id,
const std::optional< std::string > & value = std::nullopt,
const std::optional< std::string > & id = std::nullopt,
const std::optional< std::string > & robustness = std::nullopt,
const std::optional< std::string > & ref_id = std::nullopt,
const std::optional< std::string > & ref = std::nullopt )

Constructor

Create a new ContentProtection object withthe scheme_id set as the @schemeId attribute.

Parameters
scheme_idThe @schemeId attribute value for the content protection.
valueThe optional @value attribute value for the content protection.
idThe optional @id attribute value for the content protection.
robustnessThe optional @robustness attribute value.
ref_idThe optional @refId attribute value.
refThe optional @ref attribute value.

◆ ContentProtection() [4/5]

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

Copy constructor

Parameters
to_copyThe other ContentProtection object to copy as a new ContentProtection.

◆ ContentProtection() [5/5]

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

Move constructor

Parameters
to_moveThe other ContentProtection object to move the values and resources from to make a new ContentProtection.

◆ ~ContentProtection()

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

Destructor

Member Function Documentation

◆ hasRef()

bool com::bbc::libmpdpp::ContentProtection::hasRef ( ) const
inline

◆ hasRefId()

bool com::bbc::libmpdpp::ContentProtection::hasRefId ( ) const
inline

◆ hasRobustness()

bool com::bbc::libmpdpp::ContentProtection::hasRobustness ( ) const
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

bool com::bbc::libmpdpp::ContentProtection::operator== ( const ContentProtection & other) const

Compares this ContentProtection with another for equality. This operator overload allows checking if two ContentProtection instances are equal. Currently, the implementation always returns true, meaning all instances are considered equal, regardless of their internal state.

Equality operator

Parameters
otherA constant reference to the ContentProtection instance to compare against.
Returns
true if the ContentProtection are considered equal, false otherwise.

◆ ref() [1/6]

const std::optional< std::string > & com::bbc::libmpdpp::ContentProtection::ref ( ) const
inline

◆ ref() [2/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::ref ( const std::nullopt_t & )
inline

◆ ref() [3/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::ref ( const std::optional< std::string > & val)
inline

◆ ref() [4/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::ref ( const std::string & val)
inline

◆ ref() [5/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::ref ( std::optional< std::string > && val)
inline

◆ ref() [6/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::ref ( std::string && val)
inline

◆ refId() [1/6]

const std::optional< std::string > & com::bbc::libmpdpp::ContentProtection::refId ( ) const
inline

◆ refId() [2/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::refId ( const std::nullopt_t & )
inline

◆ refId() [3/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::refId ( const std::optional< std::string > & val)
inline

◆ refId() [4/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::refId ( const std::string & val)
inline

◆ refId() [5/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::refId ( std::optional< std::string > && val)
inline

◆ refId() [6/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::refId ( std::string && val)
inline

◆ robustness() [1/6]

const std::optional< std::string > & com::bbc::libmpdpp::ContentProtection::robustness ( ) const
inline

◆ robustness() [2/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::robustness ( const std::nullopt_t & )
inline

◆ robustness() [3/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::robustness ( const std::optional< std::string > & val)
inline

◆ robustness() [4/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::robustness ( const std::string & val)
inline

◆ robustness() [5/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::robustness ( std::optional< std::string > && val)
inline

◆ robustness() [6/6]

ContentProtection & com::bbc::libmpdpp::ContentProtection::robustness ( std::string && val)
inline

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