Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::File Class Referenceabstract

#include "OVR_File.h"

Inheritance diagram for OVR::File:
Inheritance graph
Collaboration diagram for OVR::File:
Collaboration graph

Public Member Functions

 File ()
 
virtual const char * GetFilePath ()=0
 
virtual bool IsValid ()=0
 
virtual bool IsWritable ()=0
 
virtual int Tell ()=0
 
virtual SInt64 LTell ()=0
 
virtual int GetLength ()=0
 
virtual SInt64 LGetLength ()=0
 
virtual int GetErrorCode ()=0
 
virtual int Write (const UByte *pbufer, int numBytes)=0
 
virtual int Read (UByte *pbufer, int numBytes)=0
 
virtual int SkipBytes (int numBytes)=0
 
virtual int BytesAvailable ()=0
 
virtual bool Flush ()=0
 
bool IsEOF ()
 
virtual int Seek (int offset, int origin=Seek_Set)=0
 
virtual SInt64 LSeek (SInt64 offset, int origin=Seek_Set)=0
 
int SeekToBegin ()
 
int SeekToEnd ()
 
int Skip (int numBytes)
 
virtual int CopyFromStream (File *pstream, int byteSize)=0
 
virtual bool Close ()=0
 
void WriteUByte (UByte v)
 
void WriteSByte (SByte v)
 
void WriteUInt8 (UByte v)
 
void WriteSInt8 (SByte v)
 
void WriteUInt16 (UInt16 v)
 
void WriteSInt16 (SInt16 v)
 
void WriteUInt32 (UInt32 v)
 
void WriteSInt32 (SInt32 v)
 
void WriteUInt64 (UInt64 v)
 
void WriteSInt64 (SInt64 v)
 
void WriteFloat (float v)
 
void WriteDouble (double v)
 
void WriteUByteBE (UByte v)
 
void WriteSByteBE (SByte v)
 
void WriteUInt8BE (UInt16 v)
 
void WriteSInt8BE (SInt16 v)
 
void WriteUInt16BE (UInt16 v)
 
void WriteSInt16BE (UInt16 v)
 
void WriteUInt32BE (UInt32 v)
 
void WriteSInt32BE (UInt32 v)
 
void WriteUInt64BE (UInt64 v)
 
void WriteSInt64BE (UInt64 v)
 
void WriteFloatBE (float v)
 
void WriteDoubleBE (double v)
 
UByte ReadUByte ()
 
SByte ReadSByte ()
 
UByte ReadUInt8 ()
 
SByte ReadSInt8 ()
 
UInt16 ReadUInt16 ()
 
SInt16 ReadSInt16 ()
 
UInt32 ReadUInt32 ()
 
SInt32 ReadSInt32 ()
 
UInt64 ReadUInt64 ()
 
SInt64 ReadSInt64 ()
 
float ReadFloat ()
 
double ReadDouble ()
 
UByte ReadUByteBE ()
 
SByte ReadSByteBE ()
 
UByte ReadUInt8BE ()
 
SByte ReadSInt8BE ()
 
UInt16 ReadUInt16BE ()
 
SInt16 ReadSInt16BE ()
 
UInt32 ReadUInt32BE ()
 
SInt32 ReadSInt32BE ()
 
UInt64 ReadUInt64BE ()
 
SInt64 ReadSInt64BE ()
 
float ReadFloatBE ()
 
double ReadDoubleBE ()
 
- Public Member Functions inherited from OVR::RefCountBase< File >
OVR_FORCE_INLINE RefCountBase ()
 
- Public Member Functions inherited from OVR::RefCountBaseStatImpl< RefCountImpl >
 RefCountBaseStatImpl ()
 
- Public Member Functions inherited from OVR::RefCountImpl
void AddRef ()
 
void Release ()
 
- Public Member Functions inherited from OVR::RefCountImplCore
OVR_FORCE_INLINE RefCountImplCore ()
 
virtual ~RefCountImplCore ()
 
int GetRefCount () const
 
void operator= (const RefCountImplCore &)
 

Private Member Functions

UInt64 PRead64 ()
 
UInt32 PRead32 ()
 
UInt16 PRead16 ()
 
UByte PRead8 ()
 
void PWrite64 (UInt64 v)
 
void PWrite32 (UInt32 v)
 
void PWrite16 (UInt16 v)
 
void PWrite8 (UByte v)
 

Additional Inherited Members

- Public Types inherited from OVR::FileConstants
enum  OpenFlags {
  Open_Read = 1, Open_Write = 2, Open_ReadWrite = 3, Open_Truncate = 4,
  Open_Create = 8, Open_CreateOnly = 24, Open_Buffered = 32
}
 
enum  Modes { Mode_Read = 0444, Mode_Write = 0222, Mode_Execute = 0111, Mode_ReadWrite = 0666 }
 
enum  SeekOps { Seek_Set = 0, Seek_Cur = 1, Seek_End = 2 }
 
enum  Errors { Error_FileNotFound = 0x1001, Error_Access = 0x1002, Error_IOError = 0x1003, Error_DiskFull = 0x1004 }
 
- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Detailed Description

Definition at line 118 of file OVR_File.h.

Constructor & Destructor Documentation

OVR::File::File ( )
inline

Definition at line 121 of file OVR_File.h.

Member Function Documentation

virtual int OVR::File::BytesAvailable ( )
pure virtual
virtual bool OVR::File::Close ( )
pure virtual
virtual int OVR::File::CopyFromStream ( File pstream,
int  byteSize 
)
pure virtual
virtual bool OVR::File::Flush ( )
pure virtual
virtual int OVR::File::GetErrorCode ( )
pure virtual
virtual const char* OVR::File::GetFilePath ( )
pure virtual
virtual int OVR::File::GetLength ( )
pure virtual
bool OVR::File::IsEOF ( )
inline

Definition at line 180 of file OVR_File.h.

virtual bool OVR::File::IsValid ( )
pure virtual
virtual bool OVR::File::IsWritable ( )
pure virtual
virtual SInt64 OVR::File::LGetLength ( )
pure virtual
virtual SInt64 OVR::File::LSeek ( SInt64  offset,
int  origin = Seek_Set 
)
pure virtual
virtual SInt64 OVR::File::LTell ( )
pure virtual
UInt16 OVR::File::PRead16 ( )
inlineprivate

Definition at line 208 of file OVR_File.h.

UInt32 OVR::File::PRead32 ( )
inlineprivate

Definition at line 207 of file OVR_File.h.

UInt64 OVR::File::PRead64 ( )
inlineprivate

Definition at line 206 of file OVR_File.h.

UByte OVR::File::PRead8 ( )
inlineprivate

Definition at line 209 of file OVR_File.h.

void OVR::File::PWrite16 ( UInt16  v)
inlineprivate

Definition at line 212 of file OVR_File.h.

void OVR::File::PWrite32 ( UInt32  v)
inlineprivate

Definition at line 211 of file OVR_File.h.

void OVR::File::PWrite64 ( UInt64  v)
inlineprivate

Definition at line 210 of file OVR_File.h.

void OVR::File::PWrite8 ( UByte  v)
inlineprivate

Definition at line 213 of file OVR_File.h.

virtual int OVR::File::Read ( UByte pbufer,
int  numBytes 
)
pure virtual
double OVR::File::ReadDouble ( )
inline

Definition at line 256 of file OVR_File.h.

double OVR::File::ReadDoubleBE ( )
inline

Definition at line 269 of file OVR_File.h.

float OVR::File::ReadFloat ( )
inline

Definition at line 255 of file OVR_File.h.

float OVR::File::ReadFloatBE ( )
inline

Definition at line 268 of file OVR_File.h.

SByte OVR::File::ReadSByte ( )
inline

Definition at line 246 of file OVR_File.h.

SByte OVR::File::ReadSByteBE ( )
inline

Definition at line 259 of file OVR_File.h.

SInt16 OVR::File::ReadSInt16 ( )
inline

Definition at line 250 of file OVR_File.h.

SInt16 OVR::File::ReadSInt16BE ( )
inline

Definition at line 263 of file OVR_File.h.

SInt32 OVR::File::ReadSInt32 ( )
inline

Definition at line 252 of file OVR_File.h.

SInt32 OVR::File::ReadSInt32BE ( )
inline

Definition at line 265 of file OVR_File.h.

SInt64 OVR::File::ReadSInt64 ( )
inline

Definition at line 254 of file OVR_File.h.

SInt64 OVR::File::ReadSInt64BE ( )
inline

Definition at line 267 of file OVR_File.h.

SByte OVR::File::ReadSInt8 ( )
inline

Definition at line 248 of file OVR_File.h.

SByte OVR::File::ReadSInt8BE ( )
inline

Definition at line 261 of file OVR_File.h.

UByte OVR::File::ReadUByte ( )
inline

Definition at line 245 of file OVR_File.h.

UByte OVR::File::ReadUByteBE ( )
inline

Definition at line 258 of file OVR_File.h.

UInt16 OVR::File::ReadUInt16 ( )
inline

Definition at line 249 of file OVR_File.h.

UInt16 OVR::File::ReadUInt16BE ( )
inline

Definition at line 262 of file OVR_File.h.

UInt32 OVR::File::ReadUInt32 ( )
inline

Definition at line 251 of file OVR_File.h.

UInt32 OVR::File::ReadUInt32BE ( )
inline

Definition at line 264 of file OVR_File.h.

UInt64 OVR::File::ReadUInt64 ( )
inline

Definition at line 253 of file OVR_File.h.

UInt64 OVR::File::ReadUInt64BE ( )
inline

Definition at line 266 of file OVR_File.h.

UByte OVR::File::ReadUInt8 ( )
inline

Definition at line 247 of file OVR_File.h.

UByte OVR::File::ReadUInt8BE ( )
inline

Definition at line 260 of file OVR_File.h.

virtual int OVR::File::Seek ( int  offset,
int  origin = Seek_Set 
)
pure virtual
int OVR::File::SeekToBegin ( )
inline

Definition at line 188 of file OVR_File.h.

int OVR::File::SeekToEnd ( )
inline

Definition at line 189 of file OVR_File.h.

int OVR::File::Skip ( int  numBytes)
inline

Definition at line 190 of file OVR_File.h.

virtual int OVR::File::SkipBytes ( int  numBytes)
pure virtual
virtual int OVR::File::Tell ( )
pure virtual
virtual int OVR::File::Write ( const UByte pbufer,
int  numBytes 
)
pure virtual
void OVR::File::WriteDouble ( double  v)
inline

Definition at line 229 of file OVR_File.h.

void OVR::File::WriteDoubleBE ( double  v)
inline

Definition at line 242 of file OVR_File.h.

void OVR::File::WriteFloat ( float  v)
inline

Definition at line 228 of file OVR_File.h.

void OVR::File::WriteFloatBE ( float  v)
inline

Definition at line 241 of file OVR_File.h.

void OVR::File::WriteSByte ( SByte  v)
inline

Definition at line 219 of file OVR_File.h.

void OVR::File::WriteSByteBE ( SByte  v)
inline

Definition at line 232 of file OVR_File.h.

void OVR::File::WriteSInt16 ( SInt16  v)
inline

Definition at line 223 of file OVR_File.h.

void OVR::File::WriteSInt16BE ( UInt16  v)
inline

Definition at line 236 of file OVR_File.h.

void OVR::File::WriteSInt32 ( SInt32  v)
inline

Definition at line 225 of file OVR_File.h.

void OVR::File::WriteSInt32BE ( UInt32  v)
inline

Definition at line 238 of file OVR_File.h.

void OVR::File::WriteSInt64 ( SInt64  v)
inline

Definition at line 227 of file OVR_File.h.

void OVR::File::WriteSInt64BE ( UInt64  v)
inline

Definition at line 240 of file OVR_File.h.

void OVR::File::WriteSInt8 ( SByte  v)
inline

Definition at line 221 of file OVR_File.h.

void OVR::File::WriteSInt8BE ( SInt16  v)
inline

Definition at line 234 of file OVR_File.h.

void OVR::File::WriteUByte ( UByte  v)
inline

Definition at line 218 of file OVR_File.h.

void OVR::File::WriteUByteBE ( UByte  v)
inline

Definition at line 231 of file OVR_File.h.

void OVR::File::WriteUInt16 ( UInt16  v)
inline

Definition at line 222 of file OVR_File.h.

void OVR::File::WriteUInt16BE ( UInt16  v)
inline

Definition at line 235 of file OVR_File.h.

void OVR::File::WriteUInt32 ( UInt32  v)
inline

Definition at line 224 of file OVR_File.h.

void OVR::File::WriteUInt32BE ( UInt32  v)
inline

Definition at line 237 of file OVR_File.h.

void OVR::File::WriteUInt64 ( UInt64  v)
inline

Definition at line 226 of file OVR_File.h.

void OVR::File::WriteUInt64BE ( UInt64  v)
inline

Definition at line 239 of file OVR_File.h.

void OVR::File::WriteUInt8 ( UByte  v)
inline

Definition at line 220 of file OVR_File.h.

void OVR::File::WriteUInt8BE ( UInt16  v)
inline

Definition at line 233 of file OVR_File.h.


The documentation for this class was generated from the following file: