3 #ifndef __TapeReader_hpp
4 #define __TapeReader_hpp
8 #define TapeReaderBlockSize 65536
39 TapeReader (
const char* szPath,
int nSize = TapeReaderBlockSize);
51 void undo_read (
void* buffer,
int undo_size);
87 static int open (
const char* szPath,
bool& bTape);
92 int read (
void* buf,
int req_size);
void set_max_errors(int nErrors)
bool bBlockMode
Definition: TapeReader.hpp:98
int read(ReadStatus &status, void *buffer, int req_size=0)
int fdTape
Definition: TapeReader.hpp:95
Definition: TapeReader.hpp:22
Definition: TapeReader.hpp:25
int get_max_block_size() const
int get_max_errors() const
void set_block_mode(bool bFlag)
bool get_block_mode() const
Definition: TapeReader.hpp:21
int nDataOffset
Definition: TapeReader.hpp:116
int nMaxBlockSize
Definition: TapeReader.hpp:107
ReadStatus ePrevStatus
Definition: TapeReader.hpp:104
Definition: TapeReader.hpp:26
char * pBlockBuffer
Definition: TapeReader.hpp:113
Definition: TapeReader.hpp:24
TapeReader(const char *szPath, int nSize=TapeReaderBlockSize)
int nMaxErrors
Definition: TapeReader.hpp:110
ReadStatus
Definition: TapeReader.hpp:20
void undo_read(void *buffer, int undo_size)
static int open(const char *szPath, bool &bTape)
Definition: TapeReader.hpp:16
bool bTapeDevice
Definition: TapeReader.hpp:101
int nDataSize
Definition: TapeReader.hpp:119