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

#include <libmpd++/Codecs.hh>

Public Member Functions

 Encoding ()
 
 Encoding (const Encoding &other)
 
 Encoding (Encoding &other)
 
 Encoding (const std::string &encoding)
 
virtual ~Encoding ()
 
Encodingoperator= (const Encoding &other)
 
Encodingoperator= (Encoding &&other)
 
bool operator== (const Encoding &other) const
 
bool operator!= (const Encoding &other) const
 
 operator std::string () const
 String cast operator.
 

Detailed Description

Codecs encoding values

This models the character set and language encodings for extended @codecs attribute values.

Constructor & Destructor Documentation

◆ Encoding() [1/4]

com::bbc::libmpdpp::Codecs::Encoding::Encoding ( )
inline

Default constructor

Creates an empty Encoding instance.

◆ Encoding() [2/4]

com::bbc::libmpdpp::Codecs::Encoding::Encoding ( const Encoding & other)
inline

Copy constructor

Creates a new Encoding object which is a copy of other.

Parameters
otherThe Encoding object to copy.

◆ Encoding() [3/4]

com::bbc::libmpdpp::Codecs::Encoding::Encoding ( Encoding & other)
inline

Move constructor

Creates a new Encoding object which transfers the resources from other.

Parameters
otherThe Encoding object to move.

◆ Encoding() [4/4]

com::bbc::libmpdpp::Codecs::Encoding::Encoding ( const std::string & encoding)

Construct with encoding string

Make a new Encoding with encoding as the encoding string.

Parameters
encodingThe encoding to set this Encoding value to.

◆ ~Encoding()

virtual com::bbc::libmpdpp::Codecs::Encoding::~Encoding ( )
inlinevirtual

Destructor

Member Function Documentation

◆ operator std::string()

com::bbc::libmpdpp::Codecs::Encoding::operator std::string ( ) const
inline

String cast operator.

@pnchor Codecs_Encoding_operator_std_string

Return a string representation of the encodings values (as would appear in the @codecs attribute).

Returns
The character set and language encoding string.

◆ operator!=()

bool com::bbc::libmpdpp::Codecs::Encoding::operator!= ( const Encoding & other) const
inline

In-equality operator

Compares this Encoding with another for in-equality. This operator overload allows checking if two Encoding instances are not equal.

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

◆ operator=() [1/2]

Encoding & com::bbc::libmpdpp::Codecs::Encoding::operator= ( const Encoding & other)
inline

Copy operator

Copies the values from other into this Encoding object.

Parameters
otherThe Encoding object to copy.
Returns
This Encoding object.

◆ operator=() [2/2]

Encoding & com::bbc::libmpdpp::Codecs::Encoding::operator= ( Encoding && other)
inline

Move operator

Transfers the resources from other into this Encoding object.

Parameters
otherThe Encoding object to move.
Returns
This Encoding object.

◆ operator==()

bool com::bbc::libmpdpp::Codecs::Encoding::operator== ( const Encoding & other) const
inline

Equality operator

Compares this Encoding with another for equality. This operator overload allows checking if two Encoding instances are equal.

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

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