InitPersistentObjectFromStorage
TheInitPersistentObjectFromStoragemethod initializes this re-created persistent object from its stored data.
void InitPersistentObjectFromStorage ( in ODStorageUnit storageUnit);
storageUnit- A reference to a storage unit of this persistent object.
DISCUSSION
Your part editor should never call this method directly; it is called automatically whenever a persistent object is re-created from stored data. Every existing OpenDoc subclass ofODPersistentObject(includingODPart) has anInitClassFromStoragemethod to initialize an object of that class from its stored data; that method calls the inheritedInitPersistentObjectFromStoragemethod and then reads any data that was previously written by theExternalizemethod when the object was stored. The object's factory method calls the object'sInitClassFromStoragemethod when re-creating the object from its stored data.For example, the
ODFrameclass has a privateInitFrameFromStoragemethod. When you call the draft'sAcquireFramemethod to re-create a frame, that factory method calls the re-created frame'sInitFrameFromStoragemethod.SEE ALSO
TheODPart::InitPartFromStoragemethod (page 529).
TheODPersistentObject::Externalizemethod (page 558).
TheODPersistentObject::InitPersistentObjectmethod (page 560).