diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-27 14:50:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-27 14:50:56 +0100 |
| commit | f0de0c63504446714ab642f9db872bd31f9c070b (patch) | |
| tree | 45ea6c4219a3a3dbd1dedde65f071ab092c5c290 /src/stl_text_reader.h | |
| parent | 170aa07b0c45d031b89815a5d07c8eb7e9226bbe (diff) | |
Rename STL -> STLText
Diffstat (limited to 'src/stl_text_reader.h')
| -rw-r--r-- | src/stl_text_reader.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/stl_text_reader.h b/src/stl_text_reader.h new file mode 100644 index 0000000..c48a8e5 --- /dev/null +++ b/src/stl_text_reader.h @@ -0,0 +1,38 @@ +/* + Copyright (C) 2014 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 + the Free Software Foundation; either version 2 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 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include "reader.h" +#include <boost/optional.hpp> + +namespace sub { + +class STLTextReader : public Reader +{ +public: + STLTextReader (std::istream &); + +private: + void set (std::string name, std::string value); + void maybe_push (); + boost::optional<FrameTime> time (std::string t) const; + + Subtitle _current; +}; + +} |
