New test.
[libsub.git] / src / stl_binary_reader.h
index a637e9146d01117a34b18195c9c1ab6f6aa6566d..fd85a3c95bdf63e55ddb1f8d7a6f32bd3c01559c 100644 (file)
 
 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;
 
@@ -68,12 +70,9 @@ 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;
 };
 
 }