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

#include "OVR_SysFile.h"

Inheritance diagram for OVR::SysFile:
Inheritance graph
Collaboration diagram for OVR::SysFile:
Collaboration graph

Public Member Functions

 SysFile ()
 
 SysFile (const String &path, int flags=Open_Read|Open_Buffered, int mode=Mode_ReadWrite)
 
bool Open (const String &path, int flags=Open_Read|Open_Buffered, int mode=Mode_ReadWrite)
 
OVR_FORCE_INLINE bool Create (const String &path, int mode=Mode_ReadWrite)
 
virtual int GetErrorCode ()
 
virtual bool IsValid ()
 
virtual bool Close ()
 
- Public Member Functions inherited from OVR::DelegatedFile
 DelegatedFile (File *pfile)
 
virtual const char * GetFilePath ()
 
virtual bool IsWritable ()
 
virtual int Tell ()
 
virtual SInt64 LTell ()
 
virtual int GetLength ()
 
virtual SInt64 LGetLength ()
 
virtual int Write (const UByte *pbuffer, int numBytes)
 
virtual int Read (UByte *pbuffer, int numBytes)
 
virtual int SkipBytes (int numBytes)
 
virtual int BytesAvailable ()
 
virtual bool Flush ()
 
virtual int Seek (int offset, int origin=Seek_Set)
 
virtual SInt64 LSeek (SInt64 offset, int origin=Seek_Set)
 
virtual int CopyFromStream (File *pstream, int byteSize)
 
- Public Member Functions inherited from OVR::File
 File ()
 
bool IsEOF ()
 
int SeekToBegin ()
 
int SeekToEnd ()
 
int Skip (int numBytes)
 
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 &)
 

Static Public Member Functions

static bool OVR_CDECL GetFileStat (FileStat *pfileStats, const String &path)
 
- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 

Protected Member Functions

 SysFile (const SysFile &source)
 
- Protected Member Functions inherited from OVR::DelegatedFile
 DelegatedFile ()
 
 DelegatedFile (const DelegatedFile &source)
 

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 }
 
- Protected Attributes inherited from OVR::DelegatedFile
Ptr< FilepFile
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Detailed Description

Definition at line 72 of file OVR_SysFile.h.

Constructor & Destructor Documentation

OVR::SysFile::SysFile ( const SysFile source)
inlineprotected

Definition at line 75 of file OVR_SysFile.h.

OVR::SysFile::SysFile ( )

Definition at line 82 of file OVR_SysFile.cpp.

OVR::SysFile::SysFile ( const String path,
int  flags = Open_Read|Open_Buffered,
int  mode = Mode_ReadWrite 
)

Definition at line 90 of file OVR_SysFile.cpp.

Member Function Documentation

bool OVR::SysFile::Close ( )
virtual

Reimplemented from OVR::DelegatedFile.

Definition at line 127 of file OVR_SysFile.cpp.

OVR_FORCE_INLINE bool OVR::SysFile::Create ( const String path,
int  mode = Mode_ReadWrite 
)
inline

Definition at line 86 of file OVR_SysFile.h.

int OVR::SysFile::GetErrorCode ( )
virtual

Reimplemented from OVR::DelegatedFile.

Definition at line 116 of file OVR_SysFile.cpp.

bool OVR::SysFile::GetFileStat ( FileStat pfileStats,
const String path 
)
static

Definition at line 571 of file OVR_FileFILE.cpp.

bool OVR::SysFile::IsValid ( )
virtual

Reimplemented from OVR::DelegatedFile.

Definition at line 123 of file OVR_SysFile.cpp.

bool OVR::SysFile::Open ( const String path,
int  flags = Open_Read|Open_Buffered,
int  mode = Mode_ReadWrite 
)

Definition at line 98 of file OVR_SysFile.cpp.


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