class DiskXFile

A file on the disk.

Inheritance:


Public Methods

[more] DiskXFile(const char* file_name, const char* open_flags)
Open "file_name" with the flags open_flags
[more] DiskXFile(FILE* file_)
Use the given file
[more]static bool isLittleEndianProcessor()
Returns true if the processor uses the little endian coding format
[more]static bool isBigEndianProcessor()
Returns true if the processor uses the big endian coding format
[more]static bool isNativeMode()
Returns true if we'll load/save using the native mode
[more]static void setNativeMode()
We'll load/save using native mode.
[more]static void setLittleEndianMode()
We'll load/save using little endian mode.
[more]static void setBigEndianMode()
We'll load/save using big endian mode.


Inherited from XFile:

Public Methods

ovirtual int read(void* ptr, int block_size, int n_blocks)
ovirtual int write(void* ptr, int block_size, int n_blocks)
oint taggedRead(void* ptr, int block_size, int n_blocks, const char* tag)
oint taggedWrite(void* ptr, int block_size, int n_blocks, const char* tag)
ovirtual int eof()
ovirtual int flush()
ovirtual int seek(long offset, int whence)
ovirtual long tell()
ovirtual void rewind()
ovirtual int printf(const char* format, ...)
ovirtual int scanf(const char* format, void* ptr)
ovirtual char* gets(char* dest, int size_)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

A file on the disk.

o DiskXFile(const char* file_name, const char* open_flags)
Open "file_name" with the flags open_flags

o DiskXFile(FILE* file_)
Use the given file

ostatic bool isLittleEndianProcessor()
Returns true if the processor uses the little endian coding format

ostatic bool isBigEndianProcessor()
Returns true if the processor uses the big endian coding format

ostatic bool isNativeMode()
Returns true if we'll load/save using the native mode

ostatic 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.

ostatic 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.

ostatic 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++.