#include <IOBufferFile.h>
Inheritance diagram for Impala::Util::IOBufferFile:
Public Member Functions | |
IOBufferFile (CString filename, bool readMode, bool useMemory) | |
virtual | ~IOBufferFile () |
virtual bool | Valid () |
virtual void | SetPosition (PositionType position) |
virtual Int64 | Read (void *buf, Int64 bytesToRead) |
returns number of bytes read | |
virtual String | ReadLine () |
only for ascii (not binary) entities | |
virtual Int64 | Gets (char *buf, Int64 bytesToRead) |
virtual void | NativeTypeRead (Int8 *ptr) |
virtual void | NativeTypeRead (UInt8 *ptr) |
virtual void | NativeTypeRead (Int16 *ptr) |
virtual void | NativeTypeRead (UInt16 *ptr) |
virtual void | NativeTypeRead (Int32 *ptr) |
virtual void | NativeTypeRead (UInt32 *ptr) |
virtual void | NativeTypeRead (Int64 *ptr) |
virtual void | NativeTypeRead (UInt64 *ptr) |
virtual void | NativeTypeRead (Real32 *ptr) |
virtual void | NativeTypeRead (Real64 *ptr) |
virtual void | Write (const void *buf, Int64 bytesToWrite) |
virtual Int64 | Puts (const char *buf) |
virtual void | NativeTypeWrite (Int8 val) |
virtual void | NativeTypeWrite (UInt8 val) |
virtual void | NativeTypeWrite (Int16 val) |
virtual void | NativeTypeWrite (UInt16 val) |
virtual void | NativeTypeWrite (Int32 val) |
virtual void | NativeTypeWrite (UInt32 val) |
virtual void | NativeTypeWrite (Int64 val) |
virtual void | NativeTypeWrite (UInt64 val) |
virtual void | NativeTypeWrite (Real32 val) |
virtual void | NativeTypeWrite (Real64 val) |
Static Public Member Functions | |
static bool | FileExists (CString path) |
Private Member Functions | |
template<class NativeType> | |
void | DoNativeTypeRead (NativeType *ptr) |
template<class NativeType> | |
void | DoNativeTypeWrite (NativeType val) |
PositionType | FTell (FILE *fp) |
int | FSeek (FILE *fp, PositionType offset, int origin) |
Static Private Member Functions | |
static FILE * | Open (CString path, CString mode) |
Private Attributes | |
bool | mReadMode |
bool | mUseMemory |
FILE * | mFile |
ILOG_VAR_DEC |
Definition at line 14 of file IOBufferFile.h.