summaryrefslogtreecommitdiff
path: root/src/ssa_reader.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-02-11 14:57:02 +0000
committerCarl Hetherington <cth@carlh.net>2016-02-11 14:57:02 +0000
commit7114a99bf210c5d41a13161aea868fe68dd06e84 (patch)
tree5dc29fbcc15acd21d9c344d5b9cdb3789009adf9 /src/ssa_reader.h
parent8fd43fface7757bd0d7228ff0490a8c8ad074175 (diff)
Rudimentary SSA parser.
Diffstat (limited to 'src/ssa_reader.h')
-rw-r--r--src/ssa_reader.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/ssa_reader.h b/src/ssa_reader.h
new file mode 100644
index 0000000..0f575ff
--- /dev/null
+++ b/src/ssa_reader.h
@@ -0,0 +1,45 @@
+/*
+ Copyright (C) 2016 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.
+
+*/
+
+/** @file src/ssa_reader.h
+ * @brief SSAReader class.
+ */
+
+#ifndef LIBSUB_SSA_READER_H
+#define LIBSUB_SSA_READER_H
+
+#include "reader.h"
+#include <boost/function.hpp>
+
+namespace sub {
+
+class SSAReader : public Reader
+{
+public:
+ SSAReader (FILE* f);
+ SSAReader (std::string const & subs);
+
+private:
+ void read (boost::function<boost::optional<std::string> ()> get_line);
+ Time parse_time (std::string t) const;
+};
+
+}
+
+#endif