aboutsummaryrefslogtreecommitdiffstats
path: root/src/libdash/source/mpd/Metrics.h
blob: c879f82998bcf7625f28ae9869e1561f6b62f2ae (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
/*
 * Metrics.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 METRICS_H_
#define METRICS_H_

#include "config.h"

#include <string>
#include <vector>

#include "IMetrics.h"
#include "Descriptor.h"
#include "Range.h"
#include "AbstractMPDElement.h"

namespace dash
{
    namespace mpd
    {
        class Metrics : public IMetrics, public AbstractMPDElement
        {
            public:
                Metrics             ();
                virtual ~Metrics    ();

                const std::vector<IDescriptor *>&   GetReportings   ()  const;
                const std::vector<IRange *>&        GetRanges       ()  const;
                const std::string&                  GetMetrics      ()  const;

                void    AddReporting    (Descriptor *reporting);
                void    AddRange        (Range *range);
                void    SetMetrics      (const std::string& metrics);

            private:
                std::vector<Descriptor *>   reportings;
                std::vector<Range *>        ranges;
                std::string metrics;
        };
    }
}

#endif /* METRICS_H_ */