]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/BamFile_p.h
Cleaned up intra-API includes & moved version numbers to 2.0.0
[bamtools.git] / src / api / internal / BamFile_p.h
index d0712ef0bb870b11f4738d698cd453c9ef9c5f40..873e71ac39bbdddc49632bdfd0e30c48ef3aafec 100644 (file)
@@ -2,9 +2,9 @@
 // BamFile_p.h (c) 2011 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 8 September 2011 (DB)
+// Last modified: 10 October 2011 (DB)
 // ---------------------------------------------------------------------------
-// Provides reading/writing of local BAM files
+// Provides BAM file-specific IO behavior
 // ***************************************************************************
 
 #ifndef BAMFILE_P_H
 //
 // We mean it.
 
-#include <api/IBamIODevice.h>
+#include "api/internal/ILocalIODevice_p.h"
 #include <string>
 
 namespace BamTools {
 namespace Internal {
 
-class BamFile : public IBamIODevice {
+class BamFile : public ILocalIODevice {
 
     // ctor & dtor
     public:
         BamFile(const std::string& filename);
         ~BamFile(void);
 
-    // IBamIODevice implementation
+    // ILocalIODevice implementation
     public:
         void Close(void);
         bool IsRandomAccess(void) const;
         bool Open(const IBamIODevice::OpenMode mode);
-        size_t Read(char* data, const unsigned int numBytes);
         bool Seek(const int64_t& position);
-        int64_t Tell(void) const;
-        size_t Write(const char* data, const unsigned int numBytes);
-
-    // internal methods
-    private:
 
     // data members
     private:
-        FILE* m_stream;
         std::string m_filename;
 };