OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TDiskFileHandle Class Reference

#include <owl/file.h>

Inheritance diagram for owl::TDiskFileHandle:
owl::TFileHandle

Public Member Functions

 TDiskFileHandle (const tstring &fileName, uint32 mode)
 
TDiskFileHandleClone () const
 
virtual uint GetOpenMode ()
 
virtual const tstring GetName ()
 
virtual uint32 LastError ()
 
virtual bool IsOpen ()
 
virtual bool Close ()
 
virtual uint32 Read (void *buffer, uint32 numBytes)
 
virtual bool Write (const void *buffer, uint32 numBytes)
 
virtual bool Length (uint64 newLen)
 
virtual uint64 Position64 () const
 
virtual uint64 Length64 () const
 
virtual bool Length (uint32 newLen)
 
virtual uint32 Position () const
 
virtual uint32 Length () const
 
virtual uint64 Seek (int64 offset, TFile::TSeekDir origin=TFile::beg)
 
virtual uint32 Seek (long offset, TFile::TSeekDir origin=TFile::beg)
 
virtual bool Flush ()
 
virtual bool LockRange (uint32 position, uint32 count)
 
virtual bool UnlockRange (uint32 position, uint32 count)
 
virtual bool LockRange (uint64 position, uint64 count)
 
virtual bool UnlockRange (uint64 position, uint64 count)
 
virtual bool GetStatus (TFileStatus &status) const
 

Protected Member Functions

 TDiskFileHandle (HANDLE handle, const tstring &fileName, uint mode)
 
- Protected Member Functions inherited from owl::TFileHandle
 TFileHandle ()
 
virtual ~TFileHandle ()
 

Protected Attributes

HANDLE Handle
 
uint OpenMode
 
tstring FileName
 

Friends

class TFileName
 

Detailed Description

Definition at line 322 of file file.h.

Constructor & Destructor Documentation

◆ TDiskFileHandle() [1/2]

owl::TDiskFileHandle::TDiskFileHandle ( const tstring & fileName,
uint32 mode )

Definition at line 122 of file file.cpp.

References FileName, Handle, and OpenMode.

◆ TDiskFileHandle() [2/2]

owl::TDiskFileHandle::TDiskFileHandle ( HANDLE handle,
const tstring & fileName,
uint mode )
protected

Definition at line 138 of file file.cpp.

Member Function Documentation

◆ Clone()

TDiskFileHandle * owl::TDiskFileHandle::Clone ( ) const
virtual

Implements owl::TFileHandle.

Definition at line 147 of file file.cpp.

References TDiskFileHandle(), FileName, Handle, and OpenMode.

◆ Close()

bool owl::TDiskFileHandle::Close ( )
virtual

Implements owl::TFileHandle.

Definition at line 166 of file file.cpp.

References Handle.

◆ Flush()

bool owl::TDiskFileHandle::Flush ( )
virtual

Implements owl::TFileHandle.

Definition at line 271 of file file.cpp.

References Handle.

◆ GetName()

virtual const tstring owl::TDiskFileHandle::GetName ( )
inlinevirtual

Implements owl::TFileHandle.

Definition at line 330 of file file.h.

◆ GetOpenMode()

virtual uint owl::TDiskFileHandle::GetOpenMode ( )
inlinevirtual

Implements owl::TFileHandle.

Definition at line 329 of file file.h.

◆ GetStatus()

◆ IsOpen()

virtual bool owl::TDiskFileHandle::IsOpen ( )
inlinevirtual

Implements owl::TFileHandle.

Definition at line 332 of file file.h.

◆ LastError()

uint32 owl::TDiskFileHandle::LastError ( )
virtual

Implements owl::TFileHandle.

Definition at line 159 of file file.cpp.

◆ Length() [1/3]

uint32 owl::TDiskFileHandle::Length ( ) const
virtual

Implements owl::TFileHandle.

Definition at line 244 of file file.cpp.

References Handle, and TFILE_ERROR.

◆ Length() [2/3]

bool owl::TDiskFileHandle::Length ( uint32 newLen)
virtual

Implements owl::TFileHandle.

Definition at line 223 of file file.cpp.

References owl::TFile::beg, Handle, Seek(), and TFILE_ERROR.

◆ Length() [3/3]

bool owl::TDiskFileHandle::Length ( uint64 newLen)
virtual

Implements owl::TFileHandle.

Definition at line 195 of file file.cpp.

References owl::TFile::beg, Handle, Seek(), and TFILE64_ERROR.

◆ Length64()

uint64 owl::TDiskFileHandle::Length64 ( ) const
virtual

Implements owl::TFileHandle.

Definition at line 214 of file file.cpp.

References Handle.

◆ LockRange() [1/2]

bool owl::TDiskFileHandle::LockRange ( uint32 position,
uint32 count )
virtual

Implements owl::TFileHandle.

Definition at line 279 of file file.cpp.

References Handle.

◆ LockRange() [2/2]

bool owl::TDiskFileHandle::LockRange ( uint64 position,
uint64 count )
virtual

Implements owl::TFileHandle.

Definition at line 293 of file file.cpp.

References Handle.

◆ Position()

uint32 owl::TDiskFileHandle::Position ( ) const
virtual

Implements owl::TFileHandle.

Definition at line 234 of file file.cpp.

References owl::TFile::cur, Handle, and TFILE_ERROR.

◆ Position64()

uint64 owl::TDiskFileHandle::Position64 ( ) const
virtual

Implements owl::TFileHandle.

Definition at line 206 of file file.cpp.

References owl::TFile::cur, and Handle.

◆ Read()

uint32 owl::TDiskFileHandle::Read ( void * buffer,
uint32 numBytes )
virtual

Implements owl::TFileHandle.

Definition at line 175 of file file.cpp.

References Handle, and TFILE_ERROR.

◆ Seek() [1/2]

uint64 owl::TDiskFileHandle::Seek ( int64 offset,
TFile::TSeekDir origin = TFile::beg )
virtual

Implements owl::TFileHandle.

Definition at line 253 of file file.cpp.

References Handle.

◆ Seek() [2/2]

uint32 owl::TDiskFileHandle::Seek ( long offset,
TFile::TSeekDir origin = TFile::beg )
virtual

Implements owl::TFileHandle.

Definition at line 261 of file file.cpp.

References Handle, and TFILE_ERROR.

◆ UnlockRange() [1/2]

bool owl::TDiskFileHandle::UnlockRange ( uint32 position,
uint32 count )
virtual

Implements owl::TFileHandle.

Definition at line 285 of file file.cpp.

References Handle.

◆ UnlockRange() [2/2]

bool owl::TDiskFileHandle::UnlockRange ( uint64 position,
uint64 count )
virtual

Implements owl::TFileHandle.

Definition at line 300 of file file.cpp.

References Handle.

◆ Write()

bool owl::TDiskFileHandle::Write ( const void * buffer,
uint32 numBytes )
virtual

Implements owl::TFileHandle.

Definition at line 185 of file file.cpp.

References Handle.

Friends And Related Symbol Documentation

◆ TFileName

Definition at line 323 of file file.h.

Member Data Documentation

◆ FileName

tstring owl::TDiskFileHandle::FileName
protected

Definition at line 356 of file file.h.

◆ Handle

HANDLE owl::TDiskFileHandle::Handle
protected

Definition at line 354 of file file.h.

◆ OpenMode

uint owl::TDiskFileHandle::OpenMode
protected

Definition at line 355 of file file.h.


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