]> git.donarmstrong.com Git - bamtools.git/blob - src/api/internal/BamHttp_p.cpp
Cleaned up intra-API includes & moved version numbers to 2.0.0
[bamtools.git] / src / api / internal / BamHttp_p.cpp
1 // ***************************************************************************
2 // BamHttp_p.cpp (c) 2011 Derek Barnett
3 // Marth Lab, Department of Biology, Boston College
4 // ---------------------------------------------------------------------------
5 // Last modified: 10 October 2011 (DB)
6 // ---------------------------------------------------------------------------
7 // Provides reading/writing of BAM files on HTTP server
8 // ***************************************************************************
9
10 #include "api/internal/BamHttp_p.h"
11 using namespace BamTools;
12 using namespace BamTools::Internal;
13
14 using namespace std;
15
16 BamHttp::BamHttp(const string& url)
17     : IBamIODevice()
18 {
19     BT_ASSERT_X(false, "BamHttp not yet implemented");
20 }
21
22 BamHttp::~BamHttp(void) { }
23
24 void BamHttp::Close(void) {
25     return ;
26 }
27
28 bool BamHttp::IsRandomAccess(void) const {
29     return true;
30 }
31
32 bool BamHttp::Open(const IBamIODevice::OpenMode mode) {
33     (void) mode;
34     return true;
35 }
36
37 size_t BamHttp::Read(char* data, const unsigned int numBytes) {
38     (void)data;
39     (void)numBytes;
40     return 0;
41 }
42
43 bool BamHttp::Seek(const int64_t& position) {
44     (void)position;
45     return true;
46 }
47
48 int64_t BamHttp::Tell(void) const {
49     return -1;
50 }
51
52 size_t BamHttp::Write(const char* data, const unsigned int numBytes) {
53     (void)data;
54     (void)numBytes;
55     return 0;
56 }