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

#include <owl/file.h>

Inheritance diagram for owl::TStreamHandle:
owl::TFileHandle

Public Member Functions

virtual uint GetOpenMode ()
 
virtual const tstring GetName ()
 
virtual uint32 LastError ()
 
virtual bool IsOpen ()
 
TStreamHandleClone () const
 
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

 TStreamHandle (TStreamFile *parent, const tstring &filename, uint32 mode)
 
virtual ~TStreamHandle ()
 
- Protected Member Functions inherited from owl::TFileHandle
 TFileHandle ()
 
virtual ~TFileHandle ()
 

Protected Attributes

TStreamFileParent
 
uint OpenMode
 
tstring FileName
 

Friends

class TStreamFile
 

Detailed Description

Definition at line 647 of file file.h.

Constructor & Destructor Documentation

◆ TStreamHandle()

owl::TStreamHandle::TStreamHandle ( TStreamFile * parent,
const tstring & filename,
uint32 mode )
protected

Definition at line 1954 of file file.cpp.

References _USES_CONVERSION, _W2A, and Parent.

◆ ~TStreamHandle()

virtual owl::TStreamHandle::~TStreamHandle ( )
inlineprotectedvirtual

Definition at line 651 of file file.h.

Member Function Documentation

◆ Clone()

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

Implements owl::TFileHandle.

Definition at line 1978 of file file.cpp.

References owl::TXNotSupportedCall::Raise().

◆ Close()

bool owl::TStreamHandle::Close ( )
virtual

Implements owl::TFileHandle.

Definition at line 1984 of file file.cpp.

References Parent.

◆ Flush()

bool owl::TStreamHandle::Flush ( )
virtual

Implements owl::TFileHandle.

Definition at line 2075 of file file.cpp.

References OpenMode, Parent, and owl::TFile::WriteOnly.

◆ GetName()

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

Implements owl::TFileHandle.

Definition at line 655 of file file.h.

◆ GetOpenMode()

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

Implements owl::TFileHandle.

Definition at line 654 of file file.h.

◆ GetStatus()

bool owl::TStreamHandle::GetStatus ( TFileStatus & status) const
virtual

Implements owl::TFileHandle.

Definition at line 2105 of file file.cpp.

References owl::TXNotSupportedCall::Raise().

◆ IsOpen()

bool owl::TStreamHandle::IsOpen ( )
virtual

Implements owl::TFileHandle.

Definition at line 1972 of file file.cpp.

References Parent.

◆ LastError()

uint32 owl::TStreamHandle::LastError ( )
virtual

Implements owl::TFileHandle.

Definition at line 1967 of file file.cpp.

References Parent.

◆ Length() [1/3]

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

◆ Length() [2/3]

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

Implements owl::TFileHandle.

Definition at line 2026 of file file.cpp.

References owl::TXNotSupportedCall::Raise().

◆ Length() [3/3]

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

Implements owl::TFileHandle.

Definition at line 2008 of file file.cpp.

References Length().

◆ Length64()

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

Implements owl::TFileHandle.

Definition at line 2021 of file file.cpp.

References Length().

◆ LockRange() [1/2]

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

Implements owl::TFileHandle.

Definition at line 2082 of file file.cpp.

References owl::TXNotSupportedCall::Raise().

◆ LockRange() [2/2]

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

Implements owl::TFileHandle.

Definition at line 2095 of file file.cpp.

References LockRange().

◆ Position()

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

Implements owl::TFileHandle.

Definition at line 2034 of file file.cpp.

References OpenMode, Parent, TFILE_ERROR, and owl::TFile::WriteOnly.

◆ Position64()

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

Implements owl::TFileHandle.

Definition at line 2013 of file file.cpp.

References Position(), TFILE64_ERROR, and TFILE_ERROR.

◆ Read()

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

Implements owl::TFileHandle.

Definition at line 1991 of file file.cpp.

References Parent.

◆ Seek() [1/2]

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

Implements owl::TFileHandle.

Definition at line 2060 of file file.cpp.

References Seek().

◆ Seek() [2/2]

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

Implements owl::TFileHandle.

Definition at line 2065 of file file.cpp.

References OpenMode, Parent, Position(), and owl::TFile::WriteOnly.

◆ UnlockRange() [1/2]

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

Implements owl::TFileHandle.

Definition at line 2088 of file file.cpp.

References owl::TXNotSupportedCall::Raise().

◆ UnlockRange() [2/2]

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

Implements owl::TFileHandle.

Definition at line 2100 of file file.cpp.

References UnlockRange().

◆ Write()

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

Implements owl::TFileHandle.

Definition at line 2002 of file file.cpp.

References Parent.

Friends And Related Symbol Documentation

◆ TStreamFile

Definition at line 648 of file file.h.

Member Data Documentation

◆ FileName

tstring owl::TStreamHandle::FileName
protected

Definition at line 683 of file file.h.

◆ OpenMode

uint owl::TStreamHandle::OpenMode
protected

Definition at line 682 of file file.h.

◆ Parent

TStreamFile* owl::TStreamHandle::Parent
protected

Definition at line 681 of file file.h.


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