#include <libmpd++/Codecs.hh>
Classes | |
class | Encoding |
Public Member Functions | |
Codecs () | |
Codecs (const std::string &attr_value) | |
Codecs (const Codecs &to_copy) | |
Codecs (Codecs &&to_move) | |
virtual | ~Codecs () |
Codecs & | operator= (const Codecs &to_copy) |
Codecs & | operator= (Codecs &&to_move) |
bool | operator== (const Codecs &to_compare) const |
operator std::string () const | |
String cast operator. | |
bool | hasEncoding () const |
const std::optional< Encoding > & | encoding () const |
Codecs & | encoding (const std::nullopt_t &) |
const std::list< std::string > & | codecs () const |
const std::string & | codec (std::list< std::string >::size_type idx) const |
Codecs & | codecsRemove (const std::string &codec) |
Codecs & | encoding (const Encoding &enc) |
Codecs & | encoding (Encoding &&enc) |
Codecs & | encoding (const std::optional< Encoding > &enc) |
Codecs & | encoding (std::optional< Encoding > &&enc) |
std::list< std::string >::const_iterator | cbegin () const |
std::list< std::string >::const_iterator | begin () const |
std::list< std::string >::iterator | begin () |
std::list< std::string >::const_iterator | codecsBegin () const |
std::list< std::string >::iterator | codecsBegin () |
std::list< std::string >::const_iterator | cend () const |
std::list< std::string >::const_iterator | end () const |
std::list< std::string >::iterator | end () |
std::list< std::string >::const_iterator | codecsEnd () const |
std::list< std::string >::iterator | codecsEnd () |
Codecs & | codecsAdd (const std::string &codec) |
Codecs & | codecsAdd (std::string &&codec) |
Codecs & | codecsRemove (const std::list< std::string >::const_iterator &it) |
Codecs & | codecsRemove (const std::list< std::string >::iterator &it) |
Codecs class
This class models the codecs listed in an @codecs attribute in a DASH MPD.
This is a container for the CodecsType from the DASH MPD XML schema from ISO 23009-1:2022 Clause 5.3.7.3.
com::bbc::libmpdpp::Codecs::Codecs | ( | ) |
Default constructor
Creates an empty Codecs.
com::bbc::libmpdpp::Codecs::Codecs | ( | const std::string & | attr_value | ) |
Construct from an attribute value string
attr_value | The attribute value string to split into a Codecs list. |
com::bbc::libmpdpp::Codecs::Codecs | ( | const Codecs & | to_copy | ) |
com::bbc::libmpdpp::Codecs::Codecs | ( | Codecs && | to_move | ) |
|
inlinevirtual |
Destructor
|
inline |
|
inline |
|
inline |
|
inline |
const std::string & com::bbc::libmpdpp::Codecs::codec | ( | std::list< std::string >::size_type | idx | ) | const |
Get a codec from the list
idx | The index of the codec to get, starting at 0 for the first codec. |
idx
. std::out_of_range | If idx is greater than or equal to the number of codecs in the list. |
|
inline |
Get the codecs list
|
inline |
Add a codec to the list
codec | The codec to add to the codecs list. |
|
inline |
Add a codec to the list
codec | The codec to add to the codecs list. |
|
inline |
|
inline |
|
inline |
|
inline |
Codecs & com::bbc::libmpdpp::Codecs::codecsRemove | ( | const std::list< std::string >::const_iterator & | it | ) |
Remove a codec by iterator
it | Iterator referencing the codec to remove from the list. |
Codecs & com::bbc::libmpdpp::Codecs::codecsRemove | ( | const std::list< std::string >::iterator & | it | ) |
Remove a codec by iterator
it | Iterator referencing the codec to remove from the list. |
Codecs & com::bbc::libmpdpp::Codecs::codecsRemove | ( | const std::string & | codec | ) |
Remove a codec by value
Remove a codec from the list which has the same value as codec
.
codec | The value to remove from the list. |
|
inline |
Get the codecs encoding
|
inline |
|
inline |
|
inline |
|
inline |
com::bbc::libmpdpp::Codecs::operator std::string | ( | ) | const |
bool com::bbc::libmpdpp::Codecs::operator== | ( | const Codecs & | to_compare | ) | const |