vlc_delete_all( this->groups );
}
-const std::vector<Group*>& Period::getGroups() const
+const std::vector<Group*>& Period::getGroups() const
{
return this->groups;
}
-void Period::addGroup(Group *group)
+void Period::addGroup(Group *group)
{
if ( group != NULL )
this->groups.push_back(group);
}
+const std::vector<AdaptationSet*>& Period::getAdaptationSets() const
+{
+ return this->adaptationSets;
+}
+
+void Period::addAdaptationSet(AdaptationSet *adaptationSet)
+{
+ if ( adaptationSet != NULL )
+ this->adaptationSets.push_back(adaptationSet);
+}
#include <string>
#include "mpd/Group.h"
+#include "mpd/AdaptationSet.h"
namespace dash
{
Period();
virtual ~Period ();
- const std::vector<Group *>& getGroups() const;
- void addGroup( Group *group );
+ const std::vector<Group *>& getGroups () const;
+ void addGroup (Group *group);
+ const std::vector<AdaptationSet *>& getAdaptationSets () const;
+ void addAdaptationSet (AdaptationSet *AdaptationSet);
private:
- std::vector<Group *> groups;
+ std::vector<Group *> groups;
+ std::vector<AdaptationSet *> adaptationSets;
};
}
}