2 Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef LIBSUB_STL_BINARY_READER_H
21 #define LIBSUB_STL_BINARY_READER_H
24 #include "stl_binary_tables.h"
32 /** @class STLBinaryReader
33 * @brief A class to read binary STL files.
35 class STLBinaryReader : public Reader
38 explicit STLBinaryReader (std::istream& in);
39 explicit STLBinaryReader (FILE* in);
41 std::map<std::string, std::string> metadata () const override;
45 DisplayStandard display_standard;
46 LanguageGroup language_group;
48 std::string original_programme_title;
49 std::string original_episode_title;
50 std::string translated_programme_title;
51 std::string translated_episode_title;
52 std::string translator_name;
53 std::string translator_contact_details;
54 std::string subtitle_list_reference_code;
55 std::string creation_date;
56 std::string revision_date;
57 std::string revision_number;
59 int number_of_subtitles;
61 int maximum_characters;
63 TimecodeStatus timecode_status;
64 std::string start_of_programme;
65 std::string first_in_cue;
67 int disk_sequence_number;
68 std::string country_of_origin;
69 std::string publisher;
70 std::string editor_name;
71 std::string editor_contact_details;
74 void read (std::shared_ptr<InputReader> reader);
76 STLBinaryTables _tables;