BasePeriod.h 2.28 KB
Newer Older
1
/*
2
 * Period.h
3 4 5 6 7 8 9
 *****************************************************************************
 * Copyright (C) 2010 - 2011 Klagenfurt University
 *
 * Created on: Aug 10, 2010
 * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
 *          Christian Timmerer  <christian.timmerer@itec.uni-klu.ac.at>
 *
10 11
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
12 13 14 15 16
 * by the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
19 20
 *
 * You should have received a copy of the GNU Lesser General Public License
21 22
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23
 *****************************************************************************/
24 25
#ifndef BASEPERIOD_H_
#define BASEPERIOD_H_
26 27 28

#include <vector>

29 30 31 32
#include "BaseAdaptationSet.h"
#include "SegmentInformation.hpp"
#include "../tools/Properties.hpp"

33
namespace adaptive
34
{
35
    namespace playlist
36
    {
37
        class BasePeriod : public SegmentInformation
38 39
        {
            public:
40 41
                BasePeriod(AbstractPlaylist *);
                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 AbstractPlaylist *getPlaylist() const; /* reimpl */
50

51 52
                Property<mtime_t> duration;
                Property<mtime_t> startTime;
53

54 55
            private:
                std::vector<BaseAdaptationSet *>    adaptationSets;
56
                AbstractPlaylist *playlist;
57 58 59 60
        };
    }
}

61
#endif /* BASEPERIOD_H_ */