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
...@@ -42,7 +42,6 @@ int Chunk::getStartByte () const ...@@ -42,7 +42,6 @@ int Chunk::getStartByte () const
{ {
return startByte; return startByte;
} }
const std::string& Chunk::getUrl () const const std::string& Chunk::getUrl () const
{ {
return url; return url;
...@@ -55,7 +54,11 @@ void Chunk::setStartByte (int startByte) ...@@ -55,7 +54,11 @@ 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