Commit 22230d8a authored by Christopher Mueller's avatar Christopher Mueller Committed by Hugo Beauzée-Luyssen

dash: chunk added optionalurl setter

Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent d20d8bd9
...@@ -34,28 +34,31 @@ Chunk::Chunk() : startByte( 0 ), ...@@ -34,28 +34,31 @@ Chunk::Chunk() : startByte( 0 ),
{ {
} }
int Chunk::getEndByte () const int Chunk::getEndByte () const
{ {
return endByte; return endByte;
} }
int Chunk::getStartByte () const int Chunk::getStartByte () const
{ {
return startByte; return startByte;
} }
const std::string& Chunk::getUrl () const
const std::string& Chunk::getUrl () const
{ {
return url; return url;
} }
void Chunk::setEndByte (int endByte) void Chunk::setEndByte (int endByte)
{ {
this->endByte = endByte; this->endByte = endByte;
} }
void Chunk::setStartByte (int startByte) void Chunk::setStartByte (int startByte)
{ {
this->startByte = startByte; this->startByte = startByte;
} }
void Chunk::setUrl ( const std::string& url ) void Chunk::setUrl (const std::string& url )
{ {
this->url = url; this->url = url;
} }
void Chunk::addOptionalUrl (const std::string& url)
{
this->optionalUrls.push_back(url);
}
...@@ -43,6 +43,7 @@ namespace dash ...@@ -43,6 +43,7 @@ namespace dash
void setEndByte (int endByte); void setEndByte (int endByte);
void setStartByte (int startByte); void setStartByte (int startByte);
void setUrl (const std::string& url); void setUrl (const std::string& url);
void addOptionalUrl (const std::string& url);
private: private:
std::string url; std::string url;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment