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

#include "OVR_File.h"

Inheritance diagram for OVR::MemoryFile:
Inheritance graph
Collaboration diagram for OVR::MemoryFile:
Collaboration graph

Public Member Functions

const char * GetFilePath ()
 
bool IsValid ()
 
bool IsWritable ()
 
bool Flush ()
 
int GetErrorCode ()
 
int Tell ()
 
SInt64 LTell ()
 
int GetLength ()
 
SInt64 LGetLength ()
 
bool Close ()
 
int CopyFromStream (File *pstream, int byteSize)
 
int Write (const UByte *pbuffer, int numBytes)
 
int Read (UByte *pbufer, int numBytes)
 
int SkipBytes (int numBytes)
 
int BytesAvailable ()
 
int Seek (int offset, int origin=Seek_Set)
 
SInt64 LSeek (SInt64 offset, int origin=Seek_Set)
 
 MemoryFile (const String &fileName, const UByte *pBuffer, int buffSize)
 
 MemoryFile (const char *pfileName, const UByte *pBuffer, int buffSize)
 
- 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 &)
 

Private Attributes

String FilePath
 
const UByteFileData
 
int FileSize
 
int FileIndex
 
bool Valid
 

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 407 of file OVR_File.h.

Constructor & Destructor Documentation

OVR::MemoryFile::MemoryFile ( const String fileName,
const UByte pBuffer,
int  buffSize 
)
inline

Definition at line 494 of file OVR_File.h.

OVR::MemoryFile::MemoryFile ( const char *  pfileName,
const UByte pBuffer,
int  buffSize 
)
inline

Definition at line 504 of file OVR_File.h.

Member Function Documentation

int OVR::MemoryFile::BytesAvailable ( )
inlinevirtual

Implements OVR::File.

Definition at line 470 of file OVR_File.h.

bool OVR::MemoryFile::Close ( )
inlinevirtual

Implements OVR::File.

Definition at line 425 of file OVR_File.h.

int OVR::MemoryFile::CopyFromStream ( File pstream,
int  byteSize 
)
inlinevirtual

Implements OVR::File.

Definition at line 431 of file OVR_File.h.

bool OVR::MemoryFile::Flush ( )
inlinevirtual

Implements OVR::File.

Definition at line 416 of file OVR_File.h.

int OVR::MemoryFile::GetErrorCode ( )
inlinevirtual

Implements OVR::File.

Definition at line 417 of file OVR_File.h.

const char* OVR::MemoryFile::GetFilePath ( )
inlinevirtual

Implements OVR::File.

Definition at line 411 of file OVR_File.h.

int OVR::MemoryFile::GetLength ( )
inlinevirtual

Implements OVR::File.

Definition at line 422 of file OVR_File.h.

bool OVR::MemoryFile::IsValid ( )
inlinevirtual

Implements OVR::File.

Definition at line 413 of file OVR_File.h.

bool OVR::MemoryFile::IsWritable ( )
inlinevirtual

Implements OVR::File.

Definition at line 414 of file OVR_File.h.

SInt64 OVR::MemoryFile::LGetLength ( )
inlinevirtual

Implements OVR::File.

Definition at line 423 of file OVR_File.h.

SInt64 OVR::MemoryFile::LSeek ( SInt64  offset,
int  origin = Seek_Set 
)
inlinevirtual

Implements OVR::File.

Definition at line 487 of file OVR_File.h.

SInt64 OVR::MemoryFile::LTell ( )
inlinevirtual

Implements OVR::File.

Definition at line 420 of file OVR_File.h.

int OVR::MemoryFile::Read ( UByte pbufer,
int  numBytes 
)
inlinevirtual

Implements OVR::File.

Definition at line 441 of file OVR_File.h.

int OVR::MemoryFile::Seek ( int  offset,
int  origin = Seek_Set 
)
inlinevirtual

Implements OVR::File.

Definition at line 475 of file OVR_File.h.

int OVR::MemoryFile::SkipBytes ( int  numBytes)
inlinevirtual

Implements OVR::File.

Definition at line 458 of file OVR_File.h.

int OVR::MemoryFile::Tell ( )
inlinevirtual

Implements OVR::File.

Definition at line 419 of file OVR_File.h.

int OVR::MemoryFile::Write ( const UByte pbuffer,
int  numBytes 
)
inlinevirtual

Implements OVR::File.

Definition at line 436 of file OVR_File.h.

Field Documentation

const UByte* OVR::MemoryFile::FileData
private

Definition at line 515 of file OVR_File.h.

int OVR::MemoryFile::FileIndex
private

Definition at line 517 of file OVR_File.h.

String OVR::MemoryFile::FilePath
private

Definition at line 514 of file OVR_File.h.

int OVR::MemoryFile::FileSize
private

Definition at line 516 of file OVR_File.h.

bool OVR::MemoryFile::Valid
private

Definition at line 518 of file OVR_File.h.


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