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

#include "OVR_File.h"

Inheritance diagram for OVR::DelegatedFile:
Inheritance graph
Collaboration diagram for OVR::DelegatedFile:
Collaboration graph

Public Member Functions

 DelegatedFile (File *pfile)
 
virtual const char * GetFilePath ()
 
virtual bool IsValid ()
 
virtual bool IsWritable ()
 
virtual int Tell ()
 
virtual SInt64 LTell ()
 
virtual int GetLength ()
 
virtual SInt64 LGetLength ()
 
virtual int GetErrorCode ()
 
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)
 
virtual bool Close ()
 
- 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 &)
 

Protected Member Functions

 DelegatedFile ()
 
 DelegatedFile (const DelegatedFile &source)
 

Protected Attributes

Ptr< FilepFile
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

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 *)
 

Detailed Description

Definition at line 275 of file OVR_File.h.

Constructor & Destructor Documentation

OVR::DelegatedFile::DelegatedFile ( )
inlineprotected

Definition at line 282 of file OVR_File.h.

OVR::DelegatedFile::DelegatedFile ( const DelegatedFile source)
inlineprotected

Definition at line 283 of file OVR_File.h.

OVR::DelegatedFile::DelegatedFile ( File pfile)
inline

Definition at line 286 of file OVR_File.h.

Member Function Documentation

virtual int OVR::DelegatedFile::BytesAvailable ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 312 of file OVR_File.h.

virtual bool OVR::DelegatedFile::Close ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile, and OVR::SysFile.

Definition at line 323 of file OVR_File.h.

virtual int OVR::DelegatedFile::CopyFromStream ( File pstream,
int  byteSize 
)
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 320 of file OVR_File.h.

virtual bool OVR::DelegatedFile::Flush ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 314 of file OVR_File.h.

virtual int OVR::DelegatedFile::GetErrorCode ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::SysFile.

Definition at line 304 of file OVR_File.h.

virtual const char* OVR::DelegatedFile::GetFilePath ( )
inlinevirtual

Implements OVR::File.

Definition at line 289 of file OVR_File.h.

virtual int OVR::DelegatedFile::GetLength ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 299 of file OVR_File.h.

virtual bool OVR::DelegatedFile::IsValid ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::SysFile.

Definition at line 292 of file OVR_File.h.

virtual bool OVR::DelegatedFile::IsWritable ( )
inlinevirtual

Implements OVR::File.

Definition at line 293 of file OVR_File.h.

virtual SInt64 OVR::DelegatedFile::LGetLength ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 300 of file OVR_File.h.

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

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 318 of file OVR_File.h.

virtual SInt64 OVR::DelegatedFile::LTell ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 297 of file OVR_File.h.

virtual int OVR::DelegatedFile::Read ( UByte pbuffer,
int  numBytes 
)
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 308 of file OVR_File.h.

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

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 317 of file OVR_File.h.

virtual int OVR::DelegatedFile::SkipBytes ( int  numBytes)
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 310 of file OVR_File.h.

virtual int OVR::DelegatedFile::Tell ( )
inlinevirtual

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 296 of file OVR_File.h.

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

Implements OVR::File.

Reimplemented in OVR::BufferedFile.

Definition at line 307 of file OVR_File.h.

Field Documentation

Ptr<File> OVR::DelegatedFile::pFile
protected

Definition at line 279 of file OVR_File.h.


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