MFC
Class COleStreamFile
CObject
|
+--CFile
|
+--COleStreamFile
in AFXOLE.H
- Direct Known Subclasses:
- CMonikerFile
- class COleStreamFile
- extends CFile
COleStreamFile - implementation of CFile which uses an IStream
|
Method Summary |
virtual void |
Abort()
|
void |
Attach( LPSTREAM lpStream )
|
virtual void |
Close()
|
BOOL |
CreateMemoryStream( CFileException* pError = NULL )
|
BOOL |
CreateStream( LPSTORAGE lpStorage, LPCTSTR lpszStreamName, DWORD nOpenFlags = modeReadWrite| shareExclusive| modeCreate, CFileException* pError = NULL )
|
LPSTREAM |
Detach()
|
virtual CFile* |
Duplicate() const
|
virtual void |
Flush()
|
virtual DWORD |
GetLength() const
|
virtual DWORD |
GetPosition() const
|
BOOL |
GetStatus( CFileStatus& rStatus ) const
|
virtual const CString |
GetStorageName() const
|
IStream* |
GetStream() const
|
virtual void |
LockRange( DWORD dwPos, DWORD dwCount )
|
BOOL |
OpenStream( LPSTORAGE lpStorage, LPCTSTR lpszStreamName, DWORD nOpenFlags = modeReadWrite| shareExclusive, CFileException* pError = NULL )
|
virtual UINT |
Read( void* lpBuf, UINT nCount )
|
virtual LONG |
Seek( LONG lOff, UINT nFrom )
|
virtual void |
SetLength( DWORD dwNewLen )
|
virtual void |
UnlockRange( DWORD dwPos, DWORD dwCount )
|
virtual void |
Write( const void* lpBuf, UINT nCount )
|
| Methods inherited from class CFile |
GetRuntimeClass, HFILE, GetPosition, GetStatus, GetFileName, GetFileTitle, GetFilePath, SetFilePath, Open, Rename, Remove, GetStatus, SetStatus, SeekToEnd, SeekToBegin, ReadHuge, WriteHuge, Duplicate, Seek, SetLength, GetLength, Read, Write, LockRange, UnlockRange, Abort, Flush, Close, GetBufferPtr |
m_lpStream
public LPSTREAM m_lpStream;
m_strStorageName
protected CString m_strStorageName;
COleStreamFile
public COleStreamFile( LPSTREAM lpStream = NULL );
~COleStreamFile
public virtual ~COleStreamFile();
Abort
public virtual void Abort();
Attach
public void Attach( LPSTREAM lpStream );
Close
public virtual void Close();
CreateMemoryStream
public BOOL CreateMemoryStream( CFileException* pError = NULL );
CreateStream
public BOOL CreateStream( LPSTORAGE lpStorage, LPCTSTR lpszStreamName, DWORD nOpenFlags = modeReadWrite| shareExclusive| modeCreate, CFileException* pError = NULL );
Detach
public LPSTREAM Detach();
Duplicate
public virtual CFile* Duplicate() const;
Flush
public virtual void Flush();
GetLength
public virtual DWORD GetLength() const;
GetPosition
public virtual DWORD GetPosition() const;
GetStatus
public BOOL GetStatus( CFileStatus& rStatus ) const;
GetStorageName
public virtual const CString GetStorageName() const;
GetStream
public IStream* GetStream() const;
LockRange
public virtual void LockRange( DWORD dwPos, DWORD dwCount );
OpenStream
public BOOL OpenStream( LPSTORAGE lpStorage, LPCTSTR lpszStreamName, DWORD nOpenFlags = modeReadWrite| shareExclusive, CFileException* pError = NULL );
Read
public virtual UINT Read( void* lpBuf, UINT nCount );
Seek
public virtual LONG Seek( LONG lOff, UINT nFrom );
SetLength
public virtual void SetLength( DWORD dwNewLen );
UnlockRange
public virtual void UnlockRange( DWORD dwPos, DWORD dwCount );
Write
public virtual void Write( const void* lpBuf, UINT nCount );