1#ifndef _BBC_PARSE_DASH_MPD_SINGLE_RFC7233_RANGE_HH_
2#define _BBC_PARSE_DASH_MPD_SINGLE_RFC7233_RANGE_HH_
53 operator std::string()
const;
58 size_type to(
size_type max_bytes)
const {
return m_toByte.has_value()?(m_toByte.value()<max_bytes?m_toByte.value():max_bytes-1):max_bytes-1; };
59 const std::optional<size_type> &
to()
const {
return m_toByte; };
67 void setXMLElement(xmlpp::Element&)
const;
71 void convertString(
const std::string&);
74 std::optional<size_type> m_toByte;
Definition SingleRFC7233Range.hh:35
SingleRFC7233Range & to(const std::nullopt_t &)
Definition SingleRFC7233Range.hh:60
size_t size_type
Definition SingleRFC7233Range.hh:37
SingleRFC7233Range()
Definition SingleRFC7233Range.hh:39
size_type to(size_type max_bytes) const
Definition SingleRFC7233Range.hh:58
SingleRFC7233Range & to(size_type val)
Definition SingleRFC7233Range.hh:61
SingleRFC7233Range(const std::string &range_str)
virtual ~SingleRFC7233Range()
Definition SingleRFC7233Range.hh:49
SingleRFC7233Range & from(size_type val)
Definition SingleRFC7233Range.hh:56
bool operator==(const SingleRFC7233Range &) const
const std::optional< size_type > & to() const
Definition SingleRFC7233Range.hh:59
size_type from() const
Definition SingleRFC7233Range.hh:55
SingleRFC7233Range(size_type from, const std::optional< size_type > &to=std::nullopt)
Definition SingleRFC7233Range.hh:44
#define LIBMPDPP_NAMESPACE_END
Definition macros.hh:54
#define LIBMPDPP_PUBLIC_API
Used to mark something as part of the public API.
Definition macros.hh:21
#define LIBMPDPP_NAMESPACE_BEGIN
Definition macros.hh:50