OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <ocf/ocstorag.h>
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 | |
IStorage * | StorageI |
friend | TOcStream |
Definition at line 73 of file ocstorag.h.
ocf::TOcStorage::TOcStorage | ( | LPCTSTR | fileName, |
bool | create, | ||
owl::uint32 | mode = STGM_READWRITE|STGM_TRANSACTED ) |
Definition at line 269 of file ocstorag.cpp.
References ocf::TXObjComp::Check(), OleStr, RefCountCheck, StorageI, and ocf::TXObjComp::xRootStorageOpenError.
ocf::TOcStorage::TOcStorage | ( | ILockBytes * | lkbyt, |
bool | create, | ||
owl::uint32 | mode = STGM_READWRITE|STGM_TRANSACTED ) |
Definition at line 297 of file ocstorag.cpp.
References ocf::TXObjComp::Check(), PRECONDITION, RefCountCheck, StorageI, and ocf::TXObjComp::xStorageILockError.
ocf::TOcStorage::TOcStorage | ( | TOcStorage & | parent, |
LPCTSTR | name, | ||
bool | create, | ||
owl::uint32 | mode = STGM_READWRITE ) |
Definition at line 324 of file ocstorag.cpp.
References ocf::TXObjComp::Check(), CreateStorage(), OpenStorage(), RefCountCheck, StorageI, and ocf::TXObjComp::xStorageOpenError.
ocf::TOcStorage::TOcStorage | ( | IStorage * | storage | ) |
Definition at line 340 of file ocstorag.cpp.
References RefCountCheck, and StorageI.
ocf::TOcStorage::~TOcStorage | ( | ) |
Definition at line 353 of file ocstorag.cpp.
References RefCountCheck, and StorageI.
|
protected |
Definition at line 365 of file ocstorag.cpp.
References StorageI.
HRESULT ocf::TOcStorage::Commit | ( | owl::uint32 | grfCommitFlags | ) |
Definition at line 410 of file ocstorag.cpp.
References StorageI.
HRESULT ocf::TOcStorage::CopyTo | ( | owl::uint32 | ciidExclude, |
IID const * | rgiidExclude, | ||
SNB | snbExclude, | ||
TOcStorage & | dest ) |
Definition at line 392 of file ocstorag.cpp.
References StorageI.
|
protected |
Definition at line 535 of file ocstorag.cpp.
References OleStr, PRECONDITION, and StorageI.
|
protected |
Definition at line 513 of file ocstorag.cpp.
References OleStr, PRECONDITION, and StorageI.
Definition at line 437 of file ocstorag.cpp.
References OleStr, PRECONDITION, and StorageI.
HRESULT ocf::TOcStorage::EnumElements | ( | owl::uint32 | reserved1, |
void * | reserved2, | ||
owl::uint32 | reserved3, | ||
IEnumSTATSTG ** | ppenm ) |
Definition at line 428 of file ocstorag.cpp.
References StorageI.
IStorage * ocf::TOcStorage::GetIStorage | ( | ) |
Definition at line 383 of file ocstorag.cpp.
References StorageI.
Definition at line 557 of file ocstorag.cpp.
References OleStr, and PRECONDITION.
|
static |
Definition at line 568 of file ocstorag.cpp.
References PRECONDITION.
HRESULT ocf::TOcStorage::MoveElementTo | ( | LPCTSTR | name, |
TOcStorage & | dest, | ||
LPCTSTR | newName, | ||
owl::uint32 | grfFlags ) |
Definition at line 401 of file ocstorag.cpp.
|
protected |
Definition at line 546 of file ocstorag.cpp.
References OleStr, PRECONDITION, and StorageI.
|
protected |
Definition at line 524 of file ocstorag.cpp.
References OleStr, PRECONDITION, and StorageI.
|
protected |
Definition at line 374 of file ocstorag.cpp.
References StorageI.
Definition at line 448 of file ocstorag.cpp.
HRESULT ocf::TOcStorage::Revert | ( | ) |
Definition at line 419 of file ocstorag.cpp.
References StorageI.
Definition at line 466 of file ocstorag.cpp.
References StorageI.
HRESULT ocf::TOcStorage::SetElementTimes | ( | LPCTSTR | name, |
FILETIME const * | pctime, | ||
FILETIME const * | patime, | ||
FILETIME const * | pmtime ) |
Definition at line 457 of file ocstorag.cpp.
HRESULT ocf::TOcStorage::SetStateBits | ( | owl::uint32 | grfStateBits, |
owl::uint32 | grfMask ) |
Definition at line 475 of file ocstorag.cpp.
References StorageI.
|
static |
Definition at line 579 of file ocstorag.cpp.
References OleStr, and PRECONDITION.
HRESULT ocf::TOcStorage::Stat | ( | STATSTG * | pstatstg, |
owl::uint32 | grfStatFlag ) |
Definition at line 484 of file ocstorag.cpp.
References PRECONDITION, and StorageI.
Definition at line 495 of file ocstorag.cpp.
References HR_INVALIDARG, ocf::HRSucceeded(), IRootStorage, OleStr, and StorageI.
|
protected |
Definition at line 138 of file ocstorag.h.
|
protected |
Definition at line 140 of file ocstorag.h.