#include "api/BamAux.h"
#include "api/BamIndex.h"
+#include "api/IBamIODevice.h"
#include <map>
#include <string>
#include <vector>
void CheckMagicNumber(void);
void CheckVersion(void);
void CloseFile(void);
- bool IsFileOpen(void) const;
- void OpenFile(const std::string& filename, const char* mode);
- void Seek(const int64_t& position, const int& origin);
+ bool IsDeviceOpen(void) const;
+ void OpenFile(const std::string& filename, IBamIODevice::OpenMode mode);
+ void Seek(const int64_t& position, const int origin);
int64_t Tell(void) const;
// index-creation methods
struct RaiiWrapper {
FILE* IndexStream;
+ IBamIODevice* Device;
RaiiWrapper(void);
~RaiiWrapper(void);
};
- RaiiWrapper Resources;
+ RaiiWrapper m_resources;
// static constants
private: