1 /* 2 * Period.h 3 ***************************************************************************** 4 * Copyright (C) 2010 - 2011 Klagenfurt University 5 * 6 * Created on: Aug 10, 2010 7 * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at> 8 * Christian Timmerer <christian.timmerer@itec.uni-klu.ac.at> 9 * 10 * This program is free software; you can redistribute it and/or modify it 11 * under the terms of the GNU Lesser General Public License as published 12 * by the Free Software Foundation; either version 2.1 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public License 21 * along with this program; if not, write to the Free Software Foundation, 22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 23 *****************************************************************************/ 24 #ifndef BASEPERIOD_H_ 25 #define BASEPERIOD_H_ 26 27 #include <vector> 28 29 #include "BaseAdaptationSet.h" 30 #include "SegmentInformation.hpp" 31 #include "../tools/Properties.hpp" 32 33 namespace adaptive 34 { 35 namespace playlist 36 { 37 class BasePeriod : public SegmentInformation 38 { 39 public: 40 BasePeriod(AbstractPlaylist *); 41 virtual ~BasePeriod (); 42 43 const std::vector<BaseAdaptationSet *>& getAdaptationSets () const; 44 BaseAdaptationSet * getAdaptationSetByID(const ID &); 45 void addAdaptationSet (BaseAdaptationSet *AdaptationSet); 46 void debug (vlc_object_t *,int = 0) const; 47 48 virtual mtime_t getPeriodStart() const; /* reimpl */ 49 virtual mtime_t getPeriodDuration() const; 50 virtual AbstractPlaylist *getPlaylist() const; /* reimpl */ 51 52 Property<mtime_t> duration; 53 Property<mtime_t> startTime; 54 55 private: 56 std::vector<BaseAdaptationSet *> adaptationSets; 57 AbstractPlaylist *playlist; 58 }; 59 } 60 } 61 62 #endif /* BASEPERIOD_H_ */ 63