demux: adaptive: rework profile specific types for global timeline
[vlc.git] / modules / demux / smooth / playlist / Parser.hpp
blobee93e4b45a8c4129d3b28f799d30317b899f3786
1 /*
2 * Parser.hpp
3 *****************************************************************************
4 * Copyright © 2015 - VideoLAN and VLC Authors
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
20 #ifndef MANIFESTPARSER_HPP
21 #define MANIFESTPARSER_HPP
23 #include "../../adaptive/playlist/SegmentBaseType.hpp"
25 #include <cstdlib>
26 #include <sstream>
28 #include <vlc_common.h>
30 namespace adaptive
32 namespace playlist
34 class SegmentInformation;
35 class SegmentTemplate;
36 class BasePeriod;
37 class BaseAdaptationSet;
39 namespace xml
41 class Node;
45 namespace smooth
47 namespace playlist
49 using namespace adaptive::playlist;
50 using namespace adaptive;
52 class Manifest;
54 class ManifestParser
56 public:
57 ManifestParser (xml::Node *, vlc_object_t *,
58 stream_t *, const std::string &);
59 virtual ~ManifestParser ();
61 Manifest * parse();
63 private:
64 xml::Node *root;
65 vlc_object_t *p_object;
66 stream_t *p_stream;
67 std::string playlisturl;
73 #endif // MANIFESTPARSER_HPP