Bump lib{cxml,dcp}.
[libsub.git] / src / stl_binary_reader.h
index 0e3c7cf3f851eab7c24b1e5884f0b516fbdb8fa3..fd85a3c95bdf63e55ddb1f8d7a6f32bd3c01559c 100644 (file)
 
 */
 
+#ifndef LIBSUB_STL_BINARY_READER_H
+#define LIBSUB_STL_BINARY_READER_H
+
 #include "reader.h"
 #include "stl_binary_tables.h"
 #include <map>
 
 namespace sub {
 
+class InputReader;
+
+/** @class STLBinaryReader
+ *  @brief A class to read binary STL files.
+ */
 class STLBinaryReader : public Reader
 {
 public:
-       STLBinaryReader (std::istream &);
-       ~STLBinaryReader ();
+       explicit STLBinaryReader (std::istream& in);
+       explicit STLBinaryReader (FILE* in);
 
        std::map<std::string, std::string> metadata () const;
 
@@ -62,12 +70,11 @@ public:
        std::string editor_contact_details;
 
 private:
-       std::string get_string (int, int) const;
-       int get_int (int, int) const;
-       FrameTime get_timecode (int) const;
+       void read (boost::shared_ptr<InputReader> reader);
 
        STLBinaryTables _tables;
-       unsigned char* _buffer;
 };
 
 }
+
+#endif