Mobile API Reference  MicroStrategy 2019
CComVariant Class Reference

#include <Msi_ccomvariant.h>

Inheritance diagram for CComVariant:
tagVARIANT

Public Member Functions

 CComVariant ()
 
 ~CComVariant ()
 
 CComVariant (const VARIANT &varSrc)
 
 CComVariant (const CComVariant &varSrc)
 
 CComVariant (BSTR bstrSrc)
 
 CComVariant (LPCOLESTR lpszSrc)
 
 CComVariant (LPCSTR lpszSrc)
 
 CComVariant (bool bSrc)
 
 CComVariant (int nSrc)
 
 CComVariant (BYTE nSrc)
 
 CComVariant (short nSrc)
 
 CComVariant (long nSrc, VARTYPE vtSrc=VT_I4)
 
 CComVariant (float fltSrc)
 
 CComVariant (double dblSrc)
 
 CComVariant (CY cySrc)
 
 CComVariant (IDispatch *pSrc)
 
 CComVariant (IUnknown *pSrc)
 
 CComVariant (const SAFEARRAY *pSrc)
 
CComVariantoperator= (const CComVariant &varSrc)
 
CComVariantoperator= (const VARIANT &varSrc)
 
CComVariantoperator= (BSTR bstrSrc)
 
CComVariantoperator= (LPCOLESTR lpszSrc)
 
CComVariantoperator= (LPCSTR lpszSrc)
 
CComVariantoperator= (bool bSrc)
 
CComVariantoperator= (int nSrc)
 
CComVariantoperator= (BYTE nSrc)
 
CComVariantoperator= (short nSrc)
 
CComVariantoperator= (long nSrc)
 
CComVariantoperator= (float fltSrc)
 
CComVariantoperator= (double dblSrc)
 
CComVariantoperator= (CY cySrc)
 
CComVariantoperator= (IDispatch *pSrc)
 
CComVariantoperator= (IUnknown *pSrc)
 
bool operator== (const VARIANT &varSrc) const
 
bool operator!= (const VARIANT &varSrc) const
 
bool operator< (const VARIANT &varSrc) const
 
bool operator> (const VARIANT &varSrc) const
 
HRESULT Clear ()
 
HRESULT Copy (const VARIANT *pSrc)
 
HRESULT Attach (VARIANT *pSrc)
 
HRESULT Detach (VARIANT *pDest)
 
HRESULT ChangeType (VARTYPE vtNew, const VARIANT *pSrc=NULL)
 
HRESULT WriteToStream (IStream *pStream)
 
HRESULT ReadFromStream (IStream *pStream)
 
HRESULT InternalClear ()
 
void InternalCopy (const VARIANT *pSrc)
 
std::string ToString ()
 

Additional Inherited Members

- Public Attributes inherited from tagVARIANT
VARTYPE vt
 
WORD wReserved1
 
WORD wReserved2
 
WORD wReserved3
 
union {
   BYTE   bVal
 
   SHORT   iVal
 
   LONG   lVal
 
   LONGLONG   llVal
 
   FLOAT   fltVal
 
   DOUBLE   dblVal
 
   VARIANT_BOOL   boolVal
 
   SCODE   scode
 
   CY   cyVal
 
   DATE   date
 
   BSTR   bstrVal
 
   DECIMAL FAR *   pdecVal
 
   IUnknown FAR *   punkVal
 
   IDispatch FAR *   pdispVal
 
   SAFEARRAY FAR *   parray
 
   BYTE FAR *   pbVal
 
   SHORT FAR *   piVal
 
   LONG FAR *   plVal
 
   FLOAT FAR *   pfltVal
 
   DOUBLE FAR *   pdblVal
 
   VARIANT_BOOL FAR *   pboolVal
 
   SCODE FAR *   pscode
 
   CY FAR *   pcyVal
 
   DATE FAR *   pdate
 
   BSTR FAR *   pbstrVal
 
   IUnknown FAR *FAR *   ppunkVal
 
   IDispatch FAR *FAR *   ppdispVal
 
   SAFEARRAY FAR *FAR *   pparray
 
   VARIANT FAR *   pvarVal
 
   PVOID   byref
 
   CHAR   cVal
 
   USHORT   uiVal
 
   ULONG   ulVal
 
   INT   intVal
 
   UINT   uintVal
 
   CHAR FAR *   pcVal
 
   USHORT FAR *   puiVal
 
   ULONG FAR *   pulVal
 
   INT FAR *   pintVal
 
   UINT FAR *   puintVal
 
}; 
 

Constructor & Destructor Documentation

◆ CComVariant() [1/17]

CComVariant::CComVariant ( )
inline

◆ ~CComVariant()

CComVariant::~CComVariant ( )
inline

◆ CComVariant() [2/17]

CComVariant::CComVariant ( const VARIANT varSrc)
inline

◆ CComVariant() [3/17]

CComVariant::CComVariant ( const CComVariant varSrc)
inline

◆ CComVariant() [4/17]

CComVariant::CComVariant ( BSTR  bstrSrc)
inline

◆ CComVariant() [5/17]

CComVariant::CComVariant ( LPCOLESTR  lpszSrc)
inline

◆ CComVariant() [6/17]

CComVariant::CComVariant ( LPCSTR  lpszSrc)
inline

◆ CComVariant() [7/17]

CComVariant::CComVariant ( bool  bSrc)
inline

◆ CComVariant() [8/17]

CComVariant::CComVariant ( int  nSrc)
inline

◆ CComVariant() [9/17]

CComVariant::CComVariant ( BYTE  nSrc)
inline

◆ CComVariant() [10/17]

CComVariant::CComVariant ( short  nSrc)
inline

◆ CComVariant() [11/17]

CComVariant::CComVariant ( long  nSrc,
VARTYPE  vtSrc = VT_I4 
)
inline

◆ CComVariant() [12/17]

CComVariant::CComVariant ( float  fltSrc)
inline

◆ CComVariant() [13/17]

CComVariant::CComVariant ( double  dblSrc)
inline

◆ CComVariant() [14/17]

CComVariant::CComVariant ( CY  cySrc)
inline

◆ CComVariant() [15/17]

CComVariant::CComVariant ( IDispatch pSrc)
inline

◆ CComVariant() [16/17]

CComVariant::CComVariant ( IUnknown pSrc)
inline

◆ CComVariant() [17/17]

CComVariant::CComVariant ( const SAFEARRAY pSrc)
inline

Member Function Documentation

◆ Attach()

HRESULT CComVariant::Attach ( VARIANT pSrc)
inline

◆ ChangeType()

HRESULT CComVariant::ChangeType ( VARTYPE  vtNew,
const VARIANT pSrc = NULL 
)
inline

◆ Clear()

HRESULT CComVariant::Clear ( )
inline

◆ Copy()

HRESULT CComVariant::Copy ( const VARIANT pSrc)
inline

◆ Detach()

HRESULT CComVariant::Detach ( VARIANT pDest)
inline

◆ InternalClear()

HRESULT CComVariant::InternalClear ( )
inline

◆ InternalCopy()

void CComVariant::InternalCopy ( const VARIANT pSrc)
inline

◆ operator!=()

bool CComVariant::operator!= ( const VARIANT varSrc) const
inline

◆ operator<()

bool CComVariant::operator< ( const VARIANT varSrc) const
inline

◆ operator=() [1/15]

CComVariant& CComVariant::operator= ( const CComVariant varSrc)
inline

◆ operator=() [2/15]

CComVariant& CComVariant::operator= ( const VARIANT varSrc)
inline

◆ operator=() [3/15]

CComVariant& CComVariant::operator= ( BSTR  bstrSrc)
inline

◆ operator=() [4/15]

CComVariant& CComVariant::operator= ( LPCOLESTR  lpszSrc)
inline

◆ operator=() [5/15]

CComVariant& CComVariant::operator= ( LPCSTR  lpszSrc)
inline

◆ operator=() [6/15]

CComVariant& CComVariant::operator= ( bool  bSrc)
inline

◆ operator=() [7/15]

CComVariant& CComVariant::operator= ( int  nSrc)
inline

◆ operator=() [8/15]

CComVariant& CComVariant::operator= ( BYTE  nSrc)
inline

◆ operator=() [9/15]

CComVariant& CComVariant::operator= ( short  nSrc)
inline

◆ operator=() [10/15]

CComVariant& CComVariant::operator= ( long  nSrc)
inline

◆ operator=() [11/15]

CComVariant& CComVariant::operator= ( float  fltSrc)
inline

◆ operator=() [12/15]

CComVariant& CComVariant::operator= ( double  dblSrc)
inline

◆ operator=() [13/15]

CComVariant& CComVariant::operator= ( CY  cySrc)
inline

◆ operator=() [14/15]

CComVariant& CComVariant::operator= ( IDispatch pSrc)
inline

◆ operator=() [15/15]

CComVariant& CComVariant::operator= ( IUnknown pSrc)
inline

◆ operator==()

bool CComVariant::operator== ( const VARIANT varSrc) const
inline

◆ operator>()

bool CComVariant::operator> ( const VARIANT varSrc) const
inline

◆ ReadFromStream()

HRESULT CComVariant::ReadFromStream ( IStream pStream)

◆ ToString()

std::string CComVariant::ToString ( )
inline

◆ WriteToStream()

HRESULT CComVariant::WriteToStream ( IStream pStream)