18 #ifndef IBAMIODEVICE_H
19 #define IBAMIODEVICE_H
37 ReadWrite = ReadOnly | WriteOnly
52 virtual int64_t
Read(
char* data,
const unsigned int numBytes) = 0;
53 virtual bool Seek(
const int64_t& position,
const int origin = SEEK_SET) = 0;
54 virtual int64_t
Tell()
const = 0;
55 virtual int64_t
Write(
const char* data,
const unsigned int numBytes) = 0;
58 virtual std::string GetErrorString();
59 virtual bool IsOpen()
const;
65 void SetErrorString(
const std::string& where,
const std::string& what);
94 static const std::string SEPARATOR =
": ";