Main Table of Contents


Table of Contents

class PtOLEStorage
PtOLEStorage: class summary
PtOLEStorage::PtOLEStorage()
PtOLEStorage::PtOLEStorage()
PtOLEStorage::~PtOLEStorage()

class PtOLEStorage


Intro
PtOLEStorage: class summary
PtOLEStorage::PtOLEStorage()
PtOLEStorage::PtOLEStorage()
PtOLEStorage::~PtOLEStorage()

PtOLEStorage is used as a storage by POET's ILockBytes implementation. It is derived from PtStorage, and it is optimized for transactioning and fast incremental saves. In general, the only thing that you will ever do with a PtOLEStorage is to create it and give it to a PtLockBytes:

// Create a PtOLEStorage and assign it to the database
PtOLEStorage *myDoc = new PtOLEStorage();
myDoc->Assign (myBase);
// Create a PtLockBytes for the PtOLEStorage to use
m_pLockBytes = new PtILockBytes(myDoc);
myDoc->Forget();
// Create the doc file using the PtLockBytes
hr=StgCreateDocfileOnILockBytes(m_pLockBytes, dwMode|STGM_CREATE, 0,&pIStorage);

When you use a PtOLEStorage, you should not call PtStorage functions, and PtOLEStorage does not provide a IStorage interface.


PtOLEStorage: class summary


Intro

Files to include Class declaration Base class
ptolestg.hxx ptolestg.hxx PtStorage

Member functions:

constructor PtOLEStorage();
destructor virtual ~PtOLEStorage();

PtOLEStorage::PtOLEStorage()


Intro

Declaration:

PtOLEStorage::PtOLEStorage()

Description:

Constructor.


PtOLEStorage::PtOLEStorage()


Intro

Declaration:

PtOLEStorage::PtOLEStorage(PtBase*, PtObjId *, PtPtr2SurrTuple*&)

Description:

Class factory constructor. This is used internally by POET.


PtOLEStorage::~PtOLEStorage()


Intro

Declaration:

virtual PtOLEStorage::~PtOLEStorage()

Description:

Destructor.

Copyright (c) 1996 POET Software, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without the express permission of POET Software, Inc. is prohibited.