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

#include <ocf/ocstorag.h>

Public Member Functions

 TOcStorage (LPCTSTR fileName, bool create, owl::uint32 mode=STGM_READWRITE|STGM_TRANSACTED)
 
 TOcStorage (ILockBytes *lkbyt, bool create, owl::uint32 mode=STGM_READWRITE|STGM_TRANSACTED)
 
 TOcStorage (TOcStorage &parent, LPCTSTR name, bool create, owl::uint32 mode=STGM_READWRITE)
 
 TOcStorage (IStorage *storage)
 
 ~TOcStorage ()
 
IStorageGetIStorage ()
 
HRESULT CopyTo (owl::uint32 ciidExclude, IID const *rgiidExclude, SNB snbExclude, TOcStorage &dest)
 
HRESULT MoveElementTo (LPCTSTR name, TOcStorage &dest, LPCTSTR newName, owl::uint32 grfFlags)
 
HRESULT Commit (owl::uint32 grfCommitFlags)
 
HRESULT Revert ()
 
HRESULT EnumElements (owl::uint32 reserved1, void *reserved2, owl::uint32 reserved3, IEnumSTATSTG **ppenm)
 
HRESULT DestroyElement (LPCTSTR name)
 
HRESULT RenameElement (LPCTSTR oldName, LPCTSTR newName)
 
HRESULT SetElementTimes (LPCTSTR name, FILETIME const *pctime, FILETIME const *patime, FILETIME const *pmtime)
 
HRESULT SetClass (const IID &clsid)
 
HRESULT SetStateBits (owl::uint32 grfStateBits, owl::uint32 grfMask)
 
HRESULT Stat (STATSTG *pstatstg, owl::uint32 grfStatFlag)
 
HRESULT SwitchToFile (LPCTSTR newPath)
 

Static Public Member Functions

static HRESULT IsStorageFile (LPCTSTR pwcsName)
 
static HRESULT IsStorageILockBytes (ILockBytes *plkbyt)
 
static HRESULT SetTimes (LPCTSTR lpszName, FILETIME const *pctime, FILETIME const *patime, FILETIME const *pmtime)
 

Protected Member Functions

HRESULT CreateStream (LPCTSTR name, owl::uint32 mode, owl::uint32 rsrvd1, owl::uint32 rsrvd2, IStream **stream)
 
HRESULT OpenStream (LPCTSTR name, void *rsrvd1, owl::uint32 grfMode, owl::uint32 rsrvd2, IStream **stream)
 
HRESULT CreateStorage (LPCTSTR name, owl::uint32 mode, owl::uint32 rsrvd1, owl::uint32 rsrvd2, IStorage **storage)
 
HRESULT OpenStorage (LPCTSTR name, IStorage *stgPriority, owl::uint32 mode, SNB snbExclude, owl::uint32 rsrvd, IStorage **storage)
 
owl::ulong AddRef ()
 
owl::ulong Release ()
 

Protected Attributes

IStorageStorageI
 
friend TOcStream
 

Detailed Description

Definition at line 73 of file ocstorag.h.

Constructor & Destructor Documentation

◆ TOcStorage() [1/4]

ocf::TOcStorage::TOcStorage ( LPCTSTR fileName,
bool create,
owl::uint32 mode = STGM_READWRITE|STGM_TRANSACTED )

◆ TOcStorage() [2/4]

ocf::TOcStorage::TOcStorage ( ILockBytes * lkbyt,
bool create,
owl::uint32 mode = STGM_READWRITE|STGM_TRANSACTED )

◆ TOcStorage() [3/4]

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

◆ TOcStorage() [4/4]

ocf::TOcStorage::TOcStorage ( IStorage * storage)

Definition at line 340 of file ocstorag.cpp.

References RefCountCheck, and StorageI.

◆ ~TOcStorage()

ocf::TOcStorage::~TOcStorage ( )

Definition at line 353 of file ocstorag.cpp.

References RefCountCheck, and StorageI.

Member Function Documentation

◆ AddRef()

ulong ocf::TOcStorage::AddRef ( )
protected

Definition at line 365 of file ocstorag.cpp.

References StorageI.

◆ Commit()

HRESULT ocf::TOcStorage::Commit ( owl::uint32 grfCommitFlags)

Definition at line 410 of file ocstorag.cpp.

References StorageI.

◆ CopyTo()

HRESULT ocf::TOcStorage::CopyTo ( owl::uint32 ciidExclude,
IID const * rgiidExclude,
SNB snbExclude,
TOcStorage & dest )

Definition at line 392 of file ocstorag.cpp.

References StorageI.

◆ CreateStorage()

HRESULT ocf::TOcStorage::CreateStorage ( LPCTSTR name,
owl::uint32 mode,
owl::uint32 rsrvd1,
owl::uint32 rsrvd2,
IStorage ** storage )
protected

Definition at line 535 of file ocstorag.cpp.

References OleStr, PRECONDITION, and StorageI.

◆ CreateStream()

HRESULT ocf::TOcStorage::CreateStream ( LPCTSTR name,
owl::uint32 mode,
owl::uint32 rsrvd1,
owl::uint32 rsrvd2,
IStream ** stream )
protected

Definition at line 513 of file ocstorag.cpp.

References OleStr, PRECONDITION, and StorageI.

◆ DestroyElement()

HRESULT ocf::TOcStorage::DestroyElement ( LPCTSTR name)

Definition at line 437 of file ocstorag.cpp.

References OleStr, PRECONDITION, and StorageI.

◆ EnumElements()

HRESULT ocf::TOcStorage::EnumElements ( owl::uint32 reserved1,
void * reserved2,
owl::uint32 reserved3,
IEnumSTATSTG ** ppenm )

Definition at line 428 of file ocstorag.cpp.

References StorageI.

◆ GetIStorage()

IStorage * ocf::TOcStorage::GetIStorage ( )

Definition at line 383 of file ocstorag.cpp.

References StorageI.

◆ IsStorageFile()

HRESULT ocf::TOcStorage::IsStorageFile ( LPCTSTR pwcsName)
static

Definition at line 557 of file ocstorag.cpp.

References OleStr, and PRECONDITION.

◆ IsStorageILockBytes()

HRESULT ocf::TOcStorage::IsStorageILockBytes ( ILockBytes * plkbyt)
static

Definition at line 568 of file ocstorag.cpp.

References PRECONDITION.

◆ MoveElementTo()

HRESULT ocf::TOcStorage::MoveElementTo ( LPCTSTR name,
TOcStorage & dest,
LPCTSTR newName,
owl::uint32 grfFlags )

Definition at line 401 of file ocstorag.cpp.

References OleStr, and StorageI.

◆ OpenStorage()

HRESULT ocf::TOcStorage::OpenStorage ( LPCTSTR name,
IStorage * stgPriority,
owl::uint32 mode,
SNB snbExclude,
owl::uint32 rsrvd,
IStorage ** storage )
protected

Definition at line 546 of file ocstorag.cpp.

References OleStr, PRECONDITION, and StorageI.

◆ OpenStream()

HRESULT ocf::TOcStorage::OpenStream ( LPCTSTR name,
void * rsrvd1,
owl::uint32 grfMode,
owl::uint32 rsrvd2,
IStream ** stream )
protected

Definition at line 524 of file ocstorag.cpp.

References OleStr, PRECONDITION, and StorageI.

◆ Release()

ulong ocf::TOcStorage::Release ( )
protected

Definition at line 374 of file ocstorag.cpp.

References StorageI.

◆ RenameElement()

HRESULT ocf::TOcStorage::RenameElement ( LPCTSTR oldName,
LPCTSTR newName )

Definition at line 448 of file ocstorag.cpp.

References OleStr, and StorageI.

◆ Revert()

HRESULT ocf::TOcStorage::Revert ( )

Definition at line 419 of file ocstorag.cpp.

References StorageI.

◆ SetClass()

HRESULT ocf::TOcStorage::SetClass ( const IID & clsid)

Definition at line 466 of file ocstorag.cpp.

References StorageI.

◆ SetElementTimes()

HRESULT ocf::TOcStorage::SetElementTimes ( LPCTSTR name,
FILETIME const * pctime,
FILETIME const * patime,
FILETIME const * pmtime )

Definition at line 457 of file ocstorag.cpp.

References OleStr, and StorageI.

◆ SetStateBits()

HRESULT ocf::TOcStorage::SetStateBits ( owl::uint32 grfStateBits,
owl::uint32 grfMask )

Definition at line 475 of file ocstorag.cpp.

References StorageI.

◆ SetTimes()

HRESULT ocf::TOcStorage::SetTimes ( LPCTSTR lpszName,
FILETIME const * pctime,
FILETIME const * patime,
FILETIME const * pmtime )
static

Definition at line 579 of file ocstorag.cpp.

References OleStr, and PRECONDITION.

◆ Stat()

HRESULT ocf::TOcStorage::Stat ( STATSTG * pstatstg,
owl::uint32 grfStatFlag )

Definition at line 484 of file ocstorag.cpp.

References PRECONDITION, and StorageI.

◆ SwitchToFile()

HRESULT ocf::TOcStorage::SwitchToFile ( LPCTSTR newPath)

Definition at line 495 of file ocstorag.cpp.

References HR_INVALIDARG, ocf::HRSucceeded(), IRootStorage, OleStr, and StorageI.

Member Data Documentation

◆ StorageI

IStorage* ocf::TOcStorage::StorageI
protected

Definition at line 138 of file ocstorag.h.

◆ TOcStream

friend ocf::TOcStorage::TOcStream
protected

Definition at line 140 of file ocstorag.h.


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