]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/BamPipe_p.h
Cleaned up intra-API includes & moved version numbers to 2.0.0
[bamtools.git] / src / api / internal / BamPipe_p.h
index 386ede0b922e6f225f51c90ad8e0dbd37341c710..8996766f175e79859b709974fbcde1438c631806 100644 (file)
@@ -2,9 +2,9 @@
 // BamPipe_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 piped BAM files (stdin/stdout)
+// Provides BAM pipe-specific IO behavior
 // ***************************************************************************
 
 #ifndef BAMPIPE_P_H
 //
 // We mean it.
 
-#include <api/IBamIODevice.h>
+#include "api/internal/ILocalIODevice_p.h"
 #include <string>
 
 namespace BamTools {
 namespace Internal {
 
-class BamPipe : public IBamIODevice {
+class BamPipe : public ILocalIODevice {
 
     // ctor & dtor
     public:
@@ -35,20 +35,9 @@ class BamPipe : public IBamIODevice {
 
     // IBamIODevice 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;
 };
 
 } // namespace Internal