template< class T >
class IPersistStreamInitImpl
Parameters
T Your class, derived from IPersistStreamInitImpl.
The IPersistStreamInit interface derives from IPersist and allows a client to request that your object load and save its persistent data to a single stream. Class IPersistStreamInitImpl provides a default implementation of this interface and implements IUnknown by sending information to the dump device in debug builds.
Related Articles ATL Tutorial, Creating an ATL Project
#include <atlctl.h>
See Also IPersistStreamInit and "Storages and Streams" in the Win32 SDK
IPersist Methods | |
GetClassID | Retrieves the object's CLSID. |
IPersistStreamInit Methods | |
GetSizeMax | Retrieves the size of the stream needed to save the object's data. The ATL implementation returns E_NOTIMPL. |
InitNew | Initializes a newly created object. |
IsDirty | Checks whether the object's data has changed since it was last saved. |
Load | Loads the object's properties from the specified stream. |
Save | Saves the object's properties to the specified stream. |
IPersistStreamInitImpl Overview
HRESULT GetClassID( CLSID *pClassID );
See IPersist::GetClassID in the Win32 SDK.
Remarks
Retrieves the objects CLSID.
IPersistStreamInitImpl Overview | Class Members
HRESULT GetSizeMax( ULARGE_INTEGER FAR* pcbSize );
See IPersistStreamInit::GetSizeMax in the Win32 SDK.
Remarks
Returns E_NOTIMPL.
IPersistStreamInitImpl Overview | Class Members
HRESULT InitNew( );
See IPersistStreamInit::InitNew in the Win32 SDK.
Remarks
Initializes a newly created object.
IPersistStreamInitImpl Overview | Class Members
See Also IPersistStreamInitImpl::Load
HRESULT IsDirty( );
See IPersistStreamInit::IsDirty in the Win32 SDK.
Remarks
Checks whether the objects data has changed since it was last saved.
IPersistStreamInitImpl Overview | Class Members
HRESULT Load( LPSTREAM pStm );
See IPersistStreamInit::Load in the Win32 SDK.
Remarks
Loads the objects properties from the specified stream. ATL uses the objects property map to retrieve this information.
IPersistStreamInitImpl Overview | Class Members
See Also BEGIN_PROPERTY_MAP, IPersistStreamInitImpl::Save, IStream in the Win32 SDK
HRESULT Save( LPSTREAM pStm, BOOL fClearDirty );
See IPersistStreamInit::Save in the Win32 SDK.
Remarks
Saves the objects properties to the specified stream. ATL uses the objects property map to store this information.
IPersistStreamInitImpl Overview | Class Members
See Also BEGIN_PROPERTY_MAP, IPersistStreamInitImpl::Load, IStream in the Win32 SDK