A file on the disk.
Inheritance:
Public Methods
-
DiskXFile(const char* file_name, const char* open_flags)
- Open "file_name" with the flags open_flags
-
DiskXFile(FILE* file_)
- Use the given file
-
static bool isLittleEndianProcessor()
- Returns true if the processor uses the little endian coding format
-
static bool isBigEndianProcessor()
- Returns true if the processor uses the big endian coding format
-
static bool isNativeMode()
- Returns true if we'll load/save using the native mode
-
static void setNativeMode()
- We'll load/save using native mode.
-
static void setLittleEndianMode()
- We'll load/save using little endian mode.
-
static void setBigEndianMode()
- We'll load/save using big endian mode.
Inherited from XFile:
Public Methods
-
virtual int read(void* ptr, int block_size, int n_blocks)
-
virtual int write(void* ptr, int block_size, int n_blocks)
-
int taggedRead(void* ptr, int block_size, int n_blocks, const char* tag)
-
int taggedWrite(void* ptr, int block_size, int n_blocks, const char* tag)
-
virtual int eof()
-
virtual int flush()
-
virtual int seek(long offset, int whence)
-
virtual long tell()
-
virtual void rewind()
-
virtual int printf(const char* format, ...)
-
virtual int scanf(const char* format, void* ptr)
-
virtual char* gets(char* dest, int size_)
Inherited from Object:
Public Fields
-
Allocator* allocator
Public Methods
-
void addOption(const char* name, int size, void* ptr, const char* help="")
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="")
-
void addROption(const char* name, real* ptr, real init_value, const char* help="")
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
-
void addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
void setOOption(const char* name, Object* option)
-
virtual void loadXFile(XFile* file)
-
virtual void saveXFile(XFile* file)
-
void load(const char* filename)
-
void save(const char* filename)
-
void* operator new(size_t size, Allocator* allocator_=NULL)
-
void* operator new(size_t size, Allocator* allocator_, void* ptr_)
-
void operator delete(void* ptr)
Documentation
A file on the disk.
- DiskXFile(const char* file_name, const char* open_flags)
- Open "file_name" with the flags open_flags
- DiskXFile(FILE* file_)
- Use the given file
- static bool isLittleEndianProcessor()
- Returns true if the processor uses the little endian coding format
- static bool isBigEndianProcessor()
- Returns true if the processor uses the big endian coding format
- static bool isNativeMode()
- Returns true if we'll load/save using the native mode
- static void setNativeMode()
- We'll load/save using native mode.
We use little endian iff the computer uses little endian.
We use big endian iff the computer uses big endian.
- static void setLittleEndianMode()
- We'll load/save using little endian mode.
It means that if the computer doesn't use Little Endian,
data will be converted.
- static void setBigEndianMode()
- We'll load/save using big endian mode.
It means that if the computer doesn't use Big Endian,
data will be converted.
- Direct child classes:
- PipeXFile
- Author:
- Ronan Collobert (collober@idiap.ch)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.