1 // ***************************************************************************
2 // BamFile_p.h (c) 2011 Derek Barnett
3 // Marth Lab, Department of Biology, Boston College
4 // ---------------------------------------------------------------------------
5 // Last modified: 8 September 2011 (DB)
6 // ---------------------------------------------------------------------------
7 // Provides reading/writing of local BAM files
8 // ***************************************************************************
17 // This file is not part of the BamTools API. It exists purely as an
18 // implementation detail. This header file may change from version to version
19 // without notice, or even be removed.
23 #include <api/IBamIODevice.h>
29 class BamFile : public IBamIODevice {
33 BamFile(const std::string& filename);
36 // IBamIODevice implementation
39 bool IsRandomAccess(void) const;
40 bool Open(const IBamIODevice::OpenMode mode);
41 size_t Read(char* data, const unsigned int numBytes);
42 bool Seek(const int64_t& position);
43 int64_t Tell(void) const;
44 size_t Write(const char* data, const unsigned int numBytes);
52 std::string m_filename;
55 } // namespace Internal
56 } // namespace BamTools