*/
+#ifndef LIBSUB_STL_TEXT_READER_H
+#define LIBSUB_STL_TEXT_READER_H
+
#include "reader.h"
#include <boost/optional.hpp>
+#include <iostream>
namespace sub {
+/** @class STLTextReader
+ * @brief A class to read textual STL files
+ */
class STLTextReader : public Reader
{
public:
private:
void set (std::string name, std::string value);
- void maybe_push_subtitle ();
- void maybe_push_block ();
- boost::optional<FrameTime> time (std::string t) const;
+ void maybe_push ();
+ boost::optional<Time> time (std::string t) const;
- Subtitle _subtitle;
- Block _block;
+ RawSubtitle _subtitle;
};
}
+
+#endif