/*
- Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2017 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define LIBSUB_DCP_READER_H
#include "reader.h"
-#include <boost/shared_ptr.hpp>
-
-namespace cxml {
- class Node;
-}
+#include <boost/filesystem.hpp>
namespace sub {
-class DCPFont;
-class DCPText;
-class DCPSubtitle;
-class DCPLoadFont;
-
/** @class DCPReader
* @brief A class which reads DCP subtitles.
*/
class DCPReader : public Reader
{
public:
- DCPReader (std::istream &);
-
-private:
-
- struct ParseState;
-
- void maybe_add_subtitle (std::string text, ParseState& parse_state);
-
- void examine_font_nodes (
- boost::shared_ptr<const cxml::Node> xml,
- std::list<boost::shared_ptr<DCPFont> > const & font_nodes,
- ParseState& parse_state
- );
-
- void examine_text_nodes (
- boost::shared_ptr<const cxml::Node> xml,
- std::list<boost::shared_ptr<DCPText> > const & text_nodes,
- ParseState& parse_state
- );
-
- std::string font_id_to_name (std::string id) const;
-
- std::list<boost::shared_ptr<DCPLoadFont> > _load_font_nodes;
+ DCPReader (boost::filesystem::path file);
};
}