diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-15 16:21:41 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-15 16:21:41 +0000 |
| commit | 86214f4619476b1a4951e15f002a93743b5f7a1e (patch) | |
| tree | a827550b72a7409d280d21fc6e0a820c9f940fc2 /src/lib/subrip.h | |
| parent | a890bedf688f0066d70dd5e9b07cbd86736cc0b1 (diff) | |
Basics of subtitle rendering.
Diffstat (limited to 'src/lib/subrip.h')
| -rw-r--r-- | src/lib/subrip.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/subrip.h b/src/lib/subrip.h index 6451c105f..91bc7156b 100644 --- a/src/lib/subrip.h +++ b/src/lib/subrip.h @@ -17,6 +17,9 @@ */ +#ifndef DCPOMATIC_SUBRIP_H +#define DCPOMATIC_SUBRIP_H + #include "subrip_subtitle.h" class SubRipContent; @@ -28,10 +31,13 @@ class subrip_parse_test; class SubRip { public: - SubRip (boost::shared_ptr<SubRipContent>); + SubRip (boost::shared_ptr<const SubRipContent>); Time length () const; +protected: + std::vector<SubRipSubtitle> _subtitles; + private: friend class subrip_time_test; friend class subrip_coordinate_test; @@ -42,6 +48,6 @@ private: static int convert_coordinate (std::string); static std::list<SubRipSubtitlePiece> convert_content (std::list<std::string>); static void maybe_content (std::list<SubRipSubtitlePiece> &, SubRipSubtitlePiece &); - - std::list<SubRipSubtitle> _subtitles; }; + +#endif |
