IPersistStreamInitImpl

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


IPersistStreamInitImpl Class Members

IPersist Methods
GetClassIDRetrieves the object's CLSID.
IPersistStreamInit Methods
GetSizeMaxRetrieves the size of the stream needed to save the object's data. The ATL implementation returns E_NOTIMPL.
InitNewInitializes a newly created object.
IsDirtyChecks whether the object's data has changed since it was last saved.
LoadLoads the object's properties from the specified stream.
SaveSaves the object's properties to the specified stream.

IPersistStreamInitImpl Overview


Methods


IPersistStreamInitImpl::GetClassID

HRESULT GetClassID( CLSID *pClassID );

See IPersist::GetClassID in the Win32 SDK.

Remarks

Retrieves the object’s CLSID.

IPersistStreamInitImpl Overview | Class Members


IPersistStreamInitImpl::GetSizeMax

HRESULT GetSizeMax( ULARGE_INTEGER FAR* pcbSize );

See IPersistStreamInit::GetSizeMax in the Win32 SDK.

Remarks

Returns E_NOTIMPL.

IPersistStreamInitImpl Overview | Class Members


IPersistStreamInitImpl::InitNew

HRESULT InitNew( );

See IPersistStreamInit::InitNew in the Win32 SDK.

Remarks

Initializes a newly created object.

IPersistStreamInitImpl Overview | Class Members

See Also IPersistStreamInitImpl::Load


IPersistStreamInitImpl::IsDirty

HRESULT IsDirty( );

See IPersistStreamInit::IsDirty in the Win32 SDK.

Remarks

Checks whether the object’s data has changed since it was last saved.

IPersistStreamInitImpl Overview | Class Members


IPersistStreamInitImpl::Load

HRESULT Load( LPSTREAM pStm );

See IPersistStreamInit::Load in the Win32 SDK.

Remarks

Loads the object’s properties from the specified stream. ATL uses the object’s property map to retrieve this information.

IPersistStreamInitImpl Overview | Class Members

See Also BEGIN_PROPERTY_MAP, IPersistStreamInitImpl::Save, IStream in the Win32 SDK


IPersistStreamInitImpl::Save

HRESULT Save( LPSTREAM pStm, BOOL fClearDirty );

See IPersistStreamInit::Save in the Win32 SDK.

Remarks

Saves the object’s properties to the specified stream. ATL uses the object’s property map to store this information.

IPersistStreamInitImpl Overview | Class Members

See Also BEGIN_PROPERTY_MAP, IPersistStreamInitImpl::Load, IStream in the Win32 SDK