X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fapi%2Finternal%2FBamPipe_p.h;h=8996766f175e79859b709974fbcde1438c631806;hb=9f1ce8c47aeadb6dc1320b52ee671c3341b97935;hp=386ede0b922e6f225f51c90ad8e0dbd37341c710;hpb=243a21d278e81d0a05997ad8bef109153443fb75;p=bamtools.git diff --git a/src/api/internal/BamPipe_p.h b/src/api/internal/BamPipe_p.h index 386ede0..8996766 100644 --- a/src/api/internal/BamPipe_p.h +++ b/src/api/internal/BamPipe_p.h @@ -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 @@ -20,13 +20,13 @@ // // We mean it. -#include +#include "api/internal/ILocalIODevice_p.h" #include 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