18 #ifndef IBAMIODEVICE_H 19 #define IBAMIODEVICE_H 33 , ReadWrite = ReadOnly | WriteOnly
46 virtual void Close(
void) =0;
47 virtual bool IsRandomAccess(
void)
const =0;
48 virtual bool Open(
const OpenMode mode) =0;
49 virtual int64_t Read(
char* data,
const unsigned int numBytes) =0;
50 virtual bool Seek(
const int64_t& position,
const int origin = SEEK_SET) =0;
51 virtual int64_t Tell(
void)
const =0;
52 virtual int64_t Write(
const char* data,
const unsigned int numBytes) =0;
55 virtual std::string GetErrorString(
void);
56 virtual bool IsOpen(
void)
const;
62 void SetErrorString(
const std::string& where,
const std::string& what);
92 static const std::string SEPARATOR =
": ";
98 #endif // IBAMIODEVICE_H
#define API_EXPORT
Definition: api_global.h:18