#include <OVR_File.h>
Public Member Functions | |
BufferedFile (File *pfile) | |
virtual int | BytesAvailable () |
virtual bool | Close () |
virtual int | CopyFromStream (File *pstream, int byteSize) |
virtual bool | Flush () |
virtual int | GetLength () |
virtual SInt64 | LGetLength () |
virtual SInt64 | LSeek (SInt64 offset, int origin=Seek_Set) |
virtual SInt64 | LTell () |
virtual int | Read (UByte *pbufer, int numBytes) |
virtual int | Seek (int offset, int origin=Seek_Set) |
virtual int | SkipBytes (int numBytes) |
virtual int | Tell () |
virtual int | Write (const UByte *pbufer, int numBytes) |
~BufferedFile () | |
Protected Types | |
enum | BufferModeType { NoBuffer, ReadBuffer, WriteBuffer } |
Protected Member Functions | |
BufferedFile () | |
BufferedFile (const BufferedFile &source) | |
void | FlushBuffer () |
void | LoadBuffer () |
bool | SetBufferMode (BufferModeType mode) |
Protected Attributes | |
BufferModeType | BufferMode |
unsigned | DataSize |
UInt64 | FilePos |
UByte * | pBuffer |
unsigned | Pos |
Definition at line 323 of file OVR_File.h.
enum OVR::BufferedFile::BufferModeType [protected] |
Definition at line 326 of file OVR_File.h.
OVR::BufferedFile::BufferedFile | ( | ) | [protected] |
Definition at line 36 of file OVR_File.cpp.
OVR::BufferedFile::BufferedFile | ( | const BufferedFile & | source | ) | [inline, protected] |
Definition at line 354 of file OVR_File.h.
OVR::BufferedFile::BufferedFile | ( | File * | pfile | ) |
Definition at line 46 of file OVR_File.cpp.
Definition at line 57 of file OVR_File.cpp.
int OVR::BufferedFile::BytesAvailable | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 361 of file OVR_File.cpp.
bool OVR::BufferedFile::Close | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 540 of file OVR_File.cpp.
int OVR::BufferedFile::CopyFromStream | ( | File * | pstream, |
int | byteSize | ||
) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 513 of file OVR_File.cpp.
bool OVR::BufferedFile::Flush | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 381 of file OVR_File.cpp.
void OVR::BufferedFile::FlushBuffer | ( | ) | [protected] |
Definition at line 107 of file OVR_File.cpp.
int OVR::BufferedFile::GetLength | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 184 of file OVR_File.cpp.
SInt64 OVR::BufferedFile::LGetLength | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 196 of file OVR_File.cpp.
void OVR::BufferedFile::LoadBuffer | ( | ) | [protected] |
Definition at line 131 of file OVR_File.cpp.
SInt64 OVR::BufferedFile::LSeek | ( | SInt64 | offset, |
int | origin = Seek_Set |
||
) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 453 of file OVR_File.cpp.
SInt64 OVR::BufferedFile::LTell | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 169 of file OVR_File.cpp.
int OVR::BufferedFile::Read | ( | UByte * | pbufer, |
int | numBytes | ||
) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 260 of file OVR_File.cpp.
int OVR::BufferedFile::Seek | ( | int | offset, |
int | origin = Seek_Set |
||
) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 388 of file OVR_File.cpp.
bool OVR::BufferedFile::SetBufferMode | ( | BufferModeType | mode | ) | [protected] |
Definition at line 86 of file OVR_File.cpp.
int OVR::BufferedFile::SkipBytes | ( | int | numBytes | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 333 of file OVR_File.cpp.
int OVR::BufferedFile::Tell | ( | ) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 153 of file OVR_File.cpp.
int OVR::BufferedFile::Write | ( | const UByte * | pbufer, |
int | numBytes | ||
) | [virtual] |
Reimplemented from OVR::DelegatedFile.
Definition at line 231 of file OVR_File.cpp.
BufferModeType OVR::BufferedFile::BufferMode [protected] |
Definition at line 335 of file OVR_File.h.
unsigned OVR::BufferedFile::DataSize [protected] |
Definition at line 339 of file OVR_File.h.
UInt64 OVR::BufferedFile::FilePos [protected] |
Definition at line 341 of file OVR_File.h.
UByte* OVR::BufferedFile::pBuffer [protected] |
Definition at line 334 of file OVR_File.h.
unsigned OVR::BufferedFile::Pos [protected] |
Definition at line 337 of file OVR_File.h.