ICP  1
Public Member Functions | Private Attributes | List of all members
MemoryStream Class Reference
Inheritance diagram for MemoryStream:
Inheritance graph

Public Member Functions

int toString (std::string &s)
 
 MemoryStream ()
 
void reset ()
 
 ~MemoryStream ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID iid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef (void)
 
virtual ULONG STDMETHODCALLTYPE Release (void)
 
virtual HRESULT STDMETHODCALLTYPE Read (void *pv, ULONG cb, ULONG *pcbRead)
 
virtual HRESULT STDMETHODCALLTYPE Write (void const *pv, ULONG cb, ULONG *pcbWritten)
 
virtual HRESULT STDMETHODCALLTYPE SetSize (ULARGE_INTEGER)
 
virtual HRESULT STDMETHODCALLTYPE CopyTo (IStream *, ULARGE_INTEGER, ULARGE_INTEGER *, ULARGE_INTEGER *)
 
virtual HRESULT STDMETHODCALLTYPE Commit (DWORD)
 
virtual HRESULT STDMETHODCALLTYPE Revert (void)
 
virtual HRESULT STDMETHODCALLTYPE LockRegion (ULARGE_INTEGER, ULARGE_INTEGER, DWORD)
 
virtual HRESULT STDMETHODCALLTYPE UnlockRegion (ULARGE_INTEGER, ULARGE_INTEGER, DWORD)
 
virtual HRESULT STDMETHODCALLTYPE Clone (IStream **)
 
virtual HRESULT STDMETHODCALLTYPE Seek (LARGE_INTEGER liDistanceToMove, DWORD dwOrigin, ULARGE_INTEGER *lpNewFilePointer)
 
virtual HRESULT STDMETHODCALLTYPE Stat (STATSTG *pStatstg, DWORD grfStatFlag)
 

Private Attributes

char * m_buffer
 
int m_pos
 
int m_nbuffer
 
LONG m_refcount
 

Detailed Description

Definition at line 6 of file labview_xml.cpp.

Constructor & Destructor Documentation

MemoryStream::MemoryStream ( )
inline

Definition at line 24 of file labview_xml.cpp.

References m_buffer, m_nbuffer, m_refcount, and reset().

MemoryStream::~MemoryStream ( )
inline

Definition at line 38 of file labview_xml.cpp.

References m_buffer, and m_pos.

Member Function Documentation

virtual ULONG STDMETHODCALLTYPE MemoryStream::AddRef ( void  )
inlinevirtual

Definition at line 58 of file labview_xml.cpp.

References m_refcount.

Referenced by QueryInterface().

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Clone ( IStream **  )
inlinevirtual

Definition at line 132 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Commit ( DWORD  )
inlinevirtual

Definition at line 112 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::CopyTo ( IStream *  ,
ULARGE_INTEGER  ,
ULARGE_INTEGER *  ,
ULARGE_INTEGER *   
)
inlinevirtual

Definition at line 106 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::LockRegion ( ULARGE_INTEGER  ,
ULARGE_INTEGER  ,
DWORD   
)
inlinevirtual

Definition at line 122 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::QueryInterface ( REFIID  iid,
void **  ppvObject 
)
inlinevirtual

Definition at line 45 of file labview_xml.cpp.

References AddRef().

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Read ( void *  pv,
ULONG  cb,
ULONG *  pcbRead 
)
inlinevirtual

Definition at line 73 of file labview_xml.cpp.

References m_buffer, m_nbuffer, and m_pos.

virtual ULONG STDMETHODCALLTYPE MemoryStream::Release ( void  )
inlinevirtual

Definition at line 63 of file labview_xml.cpp.

References m_refcount.

void MemoryStream::reset ( )
inline

Definition at line 32 of file labview_xml.cpp.

References m_buffer, and m_pos.

Referenced by MemoryStream().

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Revert ( void  )
inlinevirtual

Definition at line 117 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Seek ( LARGE_INTEGER  liDistanceToMove,
DWORD  dwOrigin,
ULARGE_INTEGER *  lpNewFilePointer 
)
inlinevirtual

Definition at line 137 of file labview_xml.cpp.

References m_nbuffer, and m_pos.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::SetSize ( ULARGE_INTEGER  )
inlinevirtual

Definition at line 101 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Stat ( STATSTG *  pStatstg,
DWORD  grfStatFlag 
)
inlinevirtual

Definition at line 168 of file labview_xml.cpp.

int MemoryStream::toString ( std::string &  s)
inline

Definition at line 16 of file labview_xml.cpp.

References m_buffer, m_nbuffer, and m_pos.

Referenced by LabviewXML::saveToString().

virtual HRESULT STDMETHODCALLTYPE MemoryStream::UnlockRegion ( ULARGE_INTEGER  ,
ULARGE_INTEGER  ,
DWORD   
)
inlinevirtual

Definition at line 127 of file labview_xml.cpp.

virtual HRESULT STDMETHODCALLTYPE MemoryStream::Write ( void const *  pv,
ULONG  cb,
ULONG *  pcbWritten 
)
inlinevirtual

Definition at line 86 of file labview_xml.cpp.

References m_buffer, m_nbuffer, and m_pos.

Member Data Documentation

char* MemoryStream::m_buffer
private

Definition at line 9 of file labview_xml.cpp.

Referenced by MemoryStream(), Read(), reset(), toString(), Write(), and ~MemoryStream().

int MemoryStream::m_nbuffer
private

Definition at line 11 of file labview_xml.cpp.

Referenced by MemoryStream(), Read(), Seek(), toString(), and Write().

int MemoryStream::m_pos
private

Definition at line 10 of file labview_xml.cpp.

Referenced by Read(), reset(), Seek(), toString(), Write(), and ~MemoryStream().

LONG MemoryStream::m_refcount
private

Definition at line 12 of file labview_xml.cpp.

Referenced by AddRef(), MemoryStream(), and Release().


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