// ---------------------------------------------------------------------------
// Last modified: 8 September 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:
// 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