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

#include <ocf/ocstorag.h>

Public Member Functions

 TOcStream (TOcStorage &storage, LPCTSTR name, bool create, owl::uint32 mode=STGM_READWRITE)
 
 TOcStream (TOcStream &stream)
 
 TOcStream (IStream *stream)
 
 ~TOcStream ()
 
IStreamGetIStream ()
 
HRESULT Read (void *pv, owl::ulong cb, owl::ulong *read=0)
 
HRESULT Write (void const *pv, owl::ulong cb, owl::ulong *written=0)
 
HRESULT Seek (owl::int64 move, owl::uint32 origin=STREAM_SEEK_SET, owl::uint64 *newPosition=0)
 
HRESULT SetSize (owl::uint64 newSize)
 
HRESULT CopyTo (TOcStream &stream, owl::uint64 cb, owl::uint64 *read=0, owl::uint64 *written=0)
 
HRESULT Commit (owl::uint32 commitFlags)
 
HRESULT Revert ()
 
HRESULT LockRegion (owl::uint64 offset, owl::uint64 cb, owl::uint32 lockType)
 
HRESULT UnlockRegion (owl::uint64 offset, owl::uint64 cb, owl::uint32 lockType)
 
HRESULT Stat (STATSTG *statstg, owl::uint32 statFlag)
 

Protected Member Functions

HRESULT Clone (IStream **ppstm)
 

Protected Attributes

IStreamStreamI
 

Detailed Description

Definition at line 41 of file ocstorag.h.

Constructor & Destructor Documentation

◆ TOcStream() [1/3]

ocf::TOcStream::TOcStream ( TOcStorage & storage,
LPCTSTR name,
bool create,
owl::uint32 mode = STGM_READWRITE )

Definition at line 101 of file ocstorag.cpp.

References ocf::TXObjComp::Check(), StreamI, and ocf::TXObjComp::xStreamOpenError.

◆ TOcStream() [2/3]

ocf::TOcStream::TOcStream ( TOcStream & stream)

Definition at line 118 of file ocstorag.cpp.

References StreamI.

◆ TOcStream() [3/3]

ocf::TOcStream::TOcStream ( IStream * stream)

Definition at line 127 of file ocstorag.cpp.

◆ ~TOcStream()

ocf::TOcStream::~TOcStream ( )

Definition at line 136 of file ocstorag.cpp.

References StreamI.

Member Function Documentation

◆ Clone()

HRESULT ocf::TOcStream::Clone ( IStream ** ppstm)
protected

Definition at line 256 of file ocstorag.cpp.

References PRECONDITION, and StreamI.

◆ Commit()

HRESULT ocf::TOcStream::Commit ( owl::uint32 commitFlags)

Definition at line 209 of file ocstorag.cpp.

References StreamI.

◆ CopyTo()

HRESULT ocf::TOcStream::CopyTo ( TOcStream & stream,
owl::uint64 cb,
owl::uint64 * read = 0,
owl::uint64 * written = 0 )

Definition at line 197 of file ocstorag.cpp.

References PRECONDITION, and StreamI.

◆ GetIStream()

IStream * ocf::TOcStream::GetIStream ( )

Definition at line 146 of file ocstorag.cpp.

References StreamI.

◆ LockRegion()

HRESULT ocf::TOcStream::LockRegion ( owl::uint64 offset,
owl::uint64 cb,
owl::uint32 lockType )

Definition at line 227 of file ocstorag.cpp.

References StreamI.

◆ Read()

HRESULT ocf::TOcStream::Read ( void * pv,
owl::ulong cb,
owl::ulong * read = 0 )

Definition at line 155 of file ocstorag.cpp.

References PRECONDITION, and StreamI.

◆ Revert()

HRESULT ocf::TOcStream::Revert ( )

Definition at line 218 of file ocstorag.cpp.

References StreamI.

◆ Seek()

HRESULT ocf::TOcStream::Seek ( owl::int64 move,
owl::uint32 origin = STREAM_SEEK_SET,
owl::uint64 * newPosition = 0 )

Definition at line 177 of file ocstorag.cpp.

References PRECONDITION, and StreamI.

◆ SetSize()

HRESULT ocf::TOcStream::SetSize ( owl::uint64 newSize)

Definition at line 188 of file ocstorag.cpp.

References StreamI.

◆ Stat()

HRESULT ocf::TOcStream::Stat ( STATSTG * statstg,
owl::uint32 statFlag )

Definition at line 245 of file ocstorag.cpp.

References PRECONDITION, and StreamI.

◆ UnlockRegion()

HRESULT ocf::TOcStream::UnlockRegion ( owl::uint64 offset,
owl::uint64 cb,
owl::uint32 lockType )

Definition at line 236 of file ocstorag.cpp.

References StreamI.

◆ Write()

HRESULT ocf::TOcStream::Write ( void const * pv,
owl::ulong cb,
owl::ulong * written = 0 )

Definition at line 166 of file ocstorag.cpp.

References PRECONDITION, and StreamI.

Member Data Documentation

◆ StreamI

IStream* ocf::TOcStream::StreamI
protected

Definition at line 67 of file ocstorag.h.


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