IMPDParser.h 2.07 KB
Newer Older
Christopher Mueller's avatar
Christopher Mueller committed
1 2 3 4 5 6 7 8 9
/*
 * IMPDParser.h
 *****************************************************************************
 * 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
Christopher Mueller's avatar
Christopher Mueller committed
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.
Christopher Mueller's avatar
Christopher Mueller committed
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.
Christopher Mueller's avatar
Christopher Mueller committed
23 24 25 26 27
 *****************************************************************************/

#ifndef IMPDPARSER_H_
#define IMPDPARSER_H_

28 29 30 31
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

Christopher Mueller's avatar
Christopher Mueller committed
32
#include "mpd/MPD.h"
33 34 35
#include "xml/DOMParser.h"

#include <vlc_common.h>
Christopher Mueller's avatar
Christopher Mueller committed
36 37 38 39 40 41 42 43

namespace dash
{
    namespace mpd
    {
        class IMPDParser
        {
            public:
44
                IMPDParser(dash::xml::Node *, MPD*, stream_t*, Representation*);
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
45
                virtual ~IMPDParser(){}
46
                virtual bool    parse  (Profile profile) = 0;
47 48 49 50 51 52 53 54 55 56
                virtual MPD*    getMPD ();
                virtual void    setMPDBaseUrl(dash::xml::Node *root);
                virtual void    setAdaptationSets(dash::xml::Node *periodNode, Period *period) = 0;
                virtual void    setPeriods(dash::xml::Node *root);

            protected:
                dash::xml::Node *root;
                MPD             *mpd;
                stream_t        *p_stream;
                Representation  *currentRepresentation;
Christopher Mueller's avatar
Christopher Mueller committed
57 58 59 60 61
        };
    }
}

#endif /* IMPDPARSER_H_ */