aboutsummaryrefslogtreecommitdiffstats
path: root/src/libdash/source/mpd/Representation.h
blob: a56f5828b6210d4ac14bc91002aba8ad8b9bf45a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * Representation.h
 *****************************************************************************
 * Copyright (C) 2012, bitmovin Softwareentwicklung OG, All Rights Reserved
 *
 * Email: libdash-dev@vicky.bitmovin.net
 *
 * This source code and its use and distribution, is subject to the terms
 * and conditions of the applicable license agreement.
 *****************************************************************************/

#ifndef REPRESENTATION_H_
#define REPRESENTATION_H_

#include "config.h"

#include "IRepresentation.h"
#include "SegmentTemplate.h"
#include "RepresentationBase.h"
#include "BaseUrl.h"
#include "SubRepresentation.h"
#include "SegmentBase.h"
#include "SegmentList.h"
#include "../helpers/String.h"

namespace dash
{
    namespace mpd
    {
        class Representation : public IRepresentation, public RepresentationBase
        {
            public:
                Representation          ();
                virtual ~Representation ();

                const std::vector<IBaseUrl *>&              GetBaseURLs                 ()  const;
                const std::vector<ISubRepresentation *>&    GetSubRepresentations       ()  const;
                ISegmentBase*                               GetSegmentBase              ()  const;
                ISegmentList*                               GetSegmentList              ()  const;
                ISegmentTemplate*                           GetSegmentTemplate          ()  const;
                const std::string&                          GetId                       ()  const;
                uint32_t                                    GetBandwidth                ()  const;
                uint32_t                                    GetQualityRanking           ()  const;
                const std::vector<std::string>&             GetDependencyId             ()  const;
                const std::vector<std::string>&             GetMediaStreamStructureId   ()  const;


                void    AddBaseURL                  (BaseUrl *baseURL);
                void    AddSubRepresentation        (SubRepresentation *subRepresentation);
                void    SetSegmentBase              (SegmentBase *segmentBase);
                void    SetSegmentList              (SegmentList *segmentList);
                void    SetSegmentTemplate          (SegmentTemplate *segmentTemplate);
                void    SetId                       (const std::string &id);
                void    SetBandwidth                (uint32_t bandwidth);
                void    SetQualityRanking           (uint32_t qualityRanking);
                void    SetDependencyId             (const std::string &dependencyId);
                void    SetMediaStreamStructureId   (const std::string &mediaStreamStructureId);

            private:
                std::vector<BaseUrl *>              baseURLs;
                std::vector<SubRepresentation *>    subRepresentations;
                SegmentBase                         *segmentBase;
                SegmentList                         *segmentList;
                SegmentTemplate                     *segmentTemplate;
                std::string                         id;
                uint32_t                            bandwidth;
                uint32_t                            qualityRanking;
                std::vector<std::string>            dependencyId;
                std::vector<std::string>            mediaStreamStructureId;

        };
    }
}

#endif /* REPRESENTATION_H_ */