CPersistStream Class Reference

#include <pstream.h>

List of all members.

Public Member Functions

STDMETHODIMP IsDirty ()
STDMETHODIMP Load (LPSTREAM pStm)
STDMETHODIMP Save (LPSTREAM pStm, BOOL fClearDirty)
STDMETHODIMP GetSizeMax (ULARGE_INTEGER *pcbSize)
 CPersistStream (IUnknown *punk, HRESULT *phr)
 ~CPersistStream ()
HRESULT SetDirty (BOOL fDirty)
STDMETHODIMP GetClassID (CLSID *pClsid) PURE
virtual DWORD GetSoftwareVersion (void)
virtual int SizeMax ()
virtual HRESULT WriteToStream (IStream *pStream)
virtual HRESULT ReadFromStream (IStream *pStream)

Protected Attributes

DWORD mPS_dwFileVersion
BOOL mPS_fDirty


Detailed Description

Definition at line 9 of file pstream.h.


Constructor & Destructor Documentation

CPersistStream::CPersistStream ( IUnknown punk,
HRESULT *  phr 
)

Definition at line 12 of file pstream.cpp.

References GetSoftwareVersion(), and mPS_dwFileVersion.

CPersistStream::~CPersistStream (  ) 

Definition at line 18 of file pstream.cpp.


Member Function Documentation

STDMETHODIMP CPersistStream::IsDirty (  )  [inline]

Definition at line 18 of file pstream.h.

References mPS_fDirty, S_FALSE, and S_OK.

STDMETHODIMP CPersistStream::Load ( LPSTREAM  pStm  ) 

Definition at line 55 of file pstream.cpp.

References FAILED, hr, HRESULT, mPS_dwFileVersion, and ReadFromStream().

STDMETHODIMP CPersistStream::Save ( LPSTREAM  pStm,
BOOL  fClearDirty 
)

Definition at line 67 of file pstream.cpp.

References FAILED, GetSoftwareVersion(), hr, HRESULT, mPS_fDirty, WriteInt(), and WriteToStream().

STDMETHODIMP CPersistStream::GetSizeMax ( ULARGE_INTEGER pcbSize  )  [inline]

Definition at line 22 of file pstream.h.

References _ULARGE_INTEGER::QuadPart, and SizeMax().

HRESULT CPersistStream::SetDirty ( BOOL  fDirty  )  [inline]

Definition at line 30 of file pstream.h.

References mPS_fDirty.

STDMETHODIMP CPersistStream::GetClassID ( CLSID pClsid  ) 

virtual DWORD CPersistStream::GetSoftwareVersion ( void   )  [inline, virtual]

Definition at line 35 of file pstream.h.

Referenced by CPersistStream(), and Save().

virtual int CPersistStream::SizeMax (  )  [inline, virtual]

Definition at line 36 of file pstream.h.

Referenced by GetSizeMax().

HRESULT CPersistStream::WriteToStream ( IStream *  pStream  )  [virtual]

Definition at line 39 of file pstream.cpp.

Referenced by Save().

HRESULT CPersistStream::ReadFromStream ( IStream *  pStream  )  [virtual]

Definition at line 47 of file pstream.cpp.

Referenced by Load().


Member Data Documentation

Definition at line 13 of file pstream.h.

Referenced by CPersistStream(), and Load().

BOOL CPersistStream::mPS_fDirty [protected]

Definition at line 14 of file pstream.h.

Referenced by IsDirty(), Save(), and SetDirty().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:50 2008 by  doxygen 1.5.6