GME  13
Classes | Functions
CommonSmart.h File Reference

Go to the source code of this file.

Classes

class  CComObjPtr< T >
class  CComBstrObj
class  CComSafeArray
class  PutInVariant
class  PutInBstr
class  CComPartObject< BASE >

Functions

template<class T >
T ** PutOut (CComObjPtr< T > &p)
template<class T >
T ** PutInOut (CComObjPtr< T > &p)
template<class T , class Q >
void MoveTo (CComObjPtr< T > &p, Q **q)
template<class T , class Q >
void MoveTo (CComObjPtr< T > &p, CComObjPtr< Q > &q)
template<class T , class Q >
void CopyTo (T *p, Q **q)
template<class T , class Q >
void CopyTo (const CComObjPtr< T > &p, Q **q)
template<class T >
HRESULT QueryInterface (IUnknown *p, T **q)
template<class T >
HRESULT QueryInterface (IUnknown *p, CComObjPtr< T > &q)
template<class T >
void CreateComObject (CComObjPtr< T > &p)
template<class T >
void CreateComPartObject (LPUNKNOWN pUnkOuter, CComObjPtr< T > &p)
template<class T >
void CreateComObject (CComPtr< T > &p)
BSTR * PutOut (CComBstrObj &s)
BSTR * PutInOut (CComBstrObj &s)
void CopyTo (BSTR p, BSTR *q)
void CopyTo (const CComBstrObj &b, BSTR *q)
void CopyTo (BSTR p, CComBstrObj &b)
void MoveTo (BSTR *p, BSTR *q)
void MoveTo (CComBstrObj &b, BSTR *q)
void MoveTo (BSTR *p, CComBstrObj &b)
void CopyTo (const char *p, int len, BSTR *b, UINT codepage=CP_ACP)
int GetCharLength (const OLECHAR *p, int olelen, UINT codepage=CP_ACP)
void CopyTo (const OLECHAR *p, int olelen, char *s, int charlen, UINT codepage=CP_ACP)
void CopyTo (const OLECHAR *p, GUID &guid)
void CopyTo (const GUID &guid, BSTR *p)
void CopyTo (const char *p, int len, CComBstrObj &b)
int GetCharLength (BSTR p)
void CopyTo (BSTR p, char *s, int charlen, UINT codepage=CP_ACP)
void CopyTo (const GUID &guid, CComBstrObj &b)
void CopyTo (const CComBSTR &b, BSTR *q)
void CopyTo (BSTR p, CComBSTR &b)
void MoveTo (CComBSTR &b, BSTR *q)
void MoveTo (BSTR *p, CComBSTR &b)
SAFEARRAY ** PutOut (CComSafeArray &a)
SAFEARRAY ** PutInOut (CComSafeArray &a)
void CopyTo (const CComBstrObj *start, const CComBstrObj *end, SAFEARRAY **p)
void CopyTo (const unsigned char *start, const unsigned char *end, SAFEARRAY **p)
void CopyTo (const long *start, const long *end, SAFEARRAY **p)
void CopyTo (const GUID *start, const GUID *end, SAFEARRAY **p)
void MoveTo (CComBstrObj *start, CComBstrObj *end, SAFEARRAY **p)
long GetArrayLength (SAFEARRAY *p)
void GetArrayStart (SAFEARRAY *p, CComBstrObj *&start)
void GetArrayStart (SAFEARRAY *p, unsigned char *&start)
void GetArrayStart (SAFEARRAY *p, long *&start)
void GetArrayStart (SAFEARRAY *p, GUID *&start)
void CopyTo (SAFEARRAY *p, CComBstrObj *start, CComBstrObj *end)
void CopyTo (SAFEARRAY *p, unsigned char *start, unsigned char *end)
void CopyTo (SAFEARRAY *p, long *start, long *end)
void CopyTo (SAFEARRAY *p, GUID *start, GUID *end)
void MoveTo (SAFEARRAY *p, CComBstrObj *start, CComBstrObj *end)
VARIANT * PutOut (CComVariant &v)
VARIANT * PutInOut (CComVariant &v)
void CopyTo (unsigned char a, VARIANT *v)
void CopyTo (short a, VARIANT *v)
void CopyTo (long a, VARIANT *v)
void CopyTo (double a, VARIANT *v)
void CopyTo (BSTR a, VARIANT *v)
void CopyTo (IDispatch *p, VARIANT *v)
template<class T >
void CopyTo (const CComObjPtr< T > &p, VARIANT *v)
void CopyTo (const VARIANT &v, unsigned char &a)
void CopyTo (const VARIANT &v, short &a)
void CopyTo (const VARIANT &v, long &a)
void CopyTo (const VARIANT &v, double &a)
void CopyTo (const VARIANT &v, BSTR *a)
void MoveTo (BSTR b, VARIANT *v)
void MoveTo (const VARIANT &v, BSTR *b)
void MoveTo (IDispatch **p, VARIANT *v)
template<class T >
void MoveTo (const CComObjPtr< T > &p, VARIANT *v)
void MoveTo (VARIANT *p, VARIANT *q)
void CopyTo (const char *p, int len, VARIANT *v)
int GetCharLength (VARIANT &v)
void CopyTo (const VARIANT &v, char *s, int charlen)
void CopyTo (const CComBstrObj *start, const CComBstrObj *end, VARIANT *v)
void CopyTo (const unsigned char *start, const unsigned char *end, VARIANT *v)
void CopyTo (const long *start, const long *end, VARIANT *v)
void MoveTo (CComBstrObj *start, CComBstrObj *end, VARIANT *v)
long GetArrayLength (const VARIANT &v)
void GetArrayStart (const VARIANT &v, CComBstrObj *&start)
void GetArrayStart (const VARIANT &v, unsigned char *&start)
void GetArrayStart (const VARIANT &v, long *&start)
void CopyTo (const VARIANT &v, CComBstrObj *start, CComBstrObj *end)
void CopyTo (const VARIANT &v, unsigned char *start, unsigned char *end)
void CopyTo (const VARIANT &v, long *start, long *end)
void MoveTo (VARIANT *v, CComBstrObj *start, CComBstrObj *end)
void CopyTo (const VARIANT &v, GUID &guid)
void CopyTo (const unsigned char *start, int len, VARIANT *p)
void CopyTo (const long *start, int len, VARIANT *p)
void CopyTo (const GUID &guid, VARIANT *v)
void CopyTo (const OBJECTID &objid, VARIANT *v)
void CopyTo (const VARIANT &v, CComBstrObj &b)
template<class T >
void CopyTo (T t, CComVariant &v)
template<class T , class S >
void CopyTo (T t, S s, CComVariant &v)
bool IsEqualObject (IUnknown *p, IUnknown *q)

Function Documentation

template<class T , class Q >
void CopyTo ( T *  p,
Q **  q 
)

Definition at line 106 of file CommonSmart.h.

template<class T , class Q >
void CopyTo ( const CComObjPtr< T > &  p,
Q **  q 
)

Definition at line 110 of file CommonSmart.h.

void CopyTo ( BSTR  p,
BSTR *  q 
) [inline]

Definition at line 203 of file CommonSmart.h.

void CopyTo ( const CComBstrObj b,
BSTR *  q 
) [inline]

Definition at line 214 of file CommonSmart.h.

void CopyTo ( BSTR  p,
CComBstrObj b 
) [inline]

Definition at line 215 of file CommonSmart.h.

void CopyTo ( const char *  p,
int  len,
BSTR *  b,
UINT  codepage = CP_ACP 
)

Definition at line 20 of file CommonSmart.cpp.

void CopyTo ( const OLECHAR *  p,
int  olelen,
char *  s,
int  charlen,
UINT  codepage = CP_ACP 
)

Definition at line 69 of file CommonSmart.cpp.

void CopyTo ( const OLECHAR *  p,
GUID &  guid 
)

Definition at line 86 of file CommonSmart.cpp.

void CopyTo ( const GUID &  guid,
BSTR *  p 
)

Definition at line 94 of file CommonSmart.cpp.

void CopyTo ( const char *  p,
int  len,
CComBstrObj b 
) [inline]

Definition at line 243 of file CommonSmart.h.

void CopyTo ( BSTR  p,
char *  s,
int  charlen,
UINT  codepage = CP_ACP 
) [inline]

Definition at line 245 of file CommonSmart.h.

void CopyTo ( const GUID &  guid,
CComBstrObj b 
) [inline]

Definition at line 246 of file CommonSmart.h.

void CopyTo ( const CComBSTR &  b,
BSTR *  q 
) [inline]

Definition at line 250 of file CommonSmart.h.

void CopyTo ( BSTR  p,
CComBSTR &  b 
) [inline]

Definition at line 251 of file CommonSmart.h.

void CopyTo ( const CComBstrObj start,
const CComBstrObj end,
SAFEARRAY **  p 
)

Definition at line 114 of file CommonSmart.cpp.

void CopyTo ( const unsigned char *  start,
const unsigned char *  end,
SAFEARRAY **  p 
)

Definition at line 184 of file CommonSmart.cpp.

void CopyTo ( const long *  start,
const long *  end,
SAFEARRAY **  p 
)

Definition at line 220 of file CommonSmart.cpp.

void CopyTo ( const GUID *  start,
const GUID *  end,
SAFEARRAY **  p 
)

Definition at line 255 of file CommonSmart.cpp.

void CopyTo ( SAFEARRAY *  p,
CComBstrObj start,
CComBstrObj end 
)

Definition at line 347 of file CommonSmart.cpp.

void CopyTo ( SAFEARRAY *  p,
unsigned char *  start,
unsigned char *  end 
)

Definition at line 413 of file CommonSmart.cpp.

void CopyTo ( SAFEARRAY *  p,
long *  start,
long *  end 
)

Definition at line 431 of file CommonSmart.cpp.

void CopyTo ( SAFEARRAY *  p,
GUID *  start,
GUID *  end 
)

Definition at line 449 of file CommonSmart.cpp.

void CopyTo ( unsigned char  a,
VARIANT *  v 
)

Definition at line 469 of file CommonSmart.cpp.

void CopyTo ( short  a,
VARIANT *  v 
)

Definition at line 483 of file CommonSmart.cpp.

void CopyTo ( long  a,
VARIANT *  v 
)

Definition at line 497 of file CommonSmart.cpp.

void CopyTo ( double  a,
VARIANT *  v 
)

Definition at line 511 of file CommonSmart.cpp.

void CopyTo ( BSTR  a,
VARIANT *  v 
)

Definition at line 525 of file CommonSmart.cpp.

void CopyTo ( IDispatch *  p,
VARIANT *  v 
)

Definition at line 541 of file CommonSmart.cpp.

template<class T >
void CopyTo ( const CComObjPtr< T > &  p,
VARIANT *  v 
)

Definition at line 319 of file CommonSmart.h.

void CopyTo ( const VARIANT &  v,
unsigned char &  a 
)

Definition at line 566 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
short &  a 
)

Definition at line 581 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
long &  a 
)

Definition at line 596 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
double &  a 
)

Definition at line 611 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
BSTR *  a 
)

Definition at line 626 of file CommonSmart.cpp.

void CopyTo ( const char *  p,
int  len,
VARIANT *  v 
)

Definition at line 653 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
char *  s,
int  charlen 
)

Definition at line 682 of file CommonSmart.cpp.

void CopyTo ( const CComBstrObj start,
const CComBstrObj end,
VARIANT *  v 
)

Definition at line 728 of file CommonSmart.cpp.

void CopyTo ( const unsigned char *  start,
const unsigned char *  end,
VARIANT *  v 
)

Definition at line 752 of file CommonSmart.cpp.

void CopyTo ( const long *  start,
const long *  end,
VARIANT *  v 
)

Definition at line 764 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
CComBstrObj start,
CComBstrObj end 
)

Definition at line 776 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
unsigned char *  start,
unsigned char *  end 
)

Definition at line 804 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
long *  start,
long *  end 
)

Definition at line 817 of file CommonSmart.cpp.

void CopyTo ( const VARIANT &  v,
GUID &  guid 
)

Definition at line 830 of file CommonSmart.cpp.

void CopyTo ( const unsigned char *  start,
int  len,
VARIANT *  p 
) [inline]

Definition at line 379 of file CommonSmart.h.

void CopyTo ( const long *  start,
int  len,
VARIANT *  p 
) [inline]

Definition at line 380 of file CommonSmart.h.

void CopyTo ( const GUID &  guid,
VARIANT *  v 
) [inline]

Definition at line 382 of file CommonSmart.h.

void CopyTo ( const OBJECTID &  objid,
VARIANT *  v 
) [inline]

Definition at line 383 of file CommonSmart.h.

void CopyTo ( const VARIANT &  v,
CComBstrObj b 
) [inline]

Definition at line 385 of file CommonSmart.h.

template<class T >
void CopyTo ( t,
CComVariant &  v 
)

Definition at line 388 of file CommonSmart.h.

template<class T , class S >
void CopyTo ( t,
S  s,
CComVariant &  v 
)

Definition at line 391 of file CommonSmart.h.

template<class T >
void CreateComObject ( CComObjPtr< T > &  p) [inline]

Definition at line 125 of file CommonSmart.h.

template<class T >
void CreateComObject ( CComPtr< T > &  p) [inline]

Definition at line 149 of file CommonSmart.h.

template<class T >
void CreateComPartObject ( LPUNKNOWN  pUnkOuter,
CComObjPtr< T > &  p 
) [inline]

Definition at line 136 of file CommonSmart.h.

long GetArrayLength ( SAFEARRAY *  p)

Definition at line 296 of file CommonSmart.cpp.

long GetArrayLength ( const VARIANT &  v)

Definition at line 694 of file CommonSmart.cpp.

void GetArrayStart ( SAFEARRAY *  p,
CComBstrObj *&  start 
)

Definition at line 307 of file CommonSmart.cpp.

void GetArrayStart ( SAFEARRAY *  p,
unsigned char *&  start 
)

Definition at line 327 of file CommonSmart.cpp.

void GetArrayStart ( SAFEARRAY *  p,
long *&  start 
)

Definition at line 317 of file CommonSmart.cpp.

void GetArrayStart ( SAFEARRAY *  p,
GUID *&  start 
)

Definition at line 337 of file CommonSmart.cpp.

void GetArrayStart ( const VARIANT &  v,
CComBstrObj *&  start 
)

Definition at line 704 of file CommonSmart.cpp.

void GetArrayStart ( const VARIANT &  v,
unsigned char *&  start 
)

Definition at line 712 of file CommonSmart.cpp.

void GetArrayStart ( const VARIANT &  v,
long *&  start 
)

Definition at line 720 of file CommonSmart.cpp.

int GetCharLength ( const OLECHAR *  p,
int  olelen,
UINT  codepage = CP_ACP 
)

Definition at line 53 of file CommonSmart.cpp.

int GetCharLength ( BSTR  p) [inline]

Definition at line 244 of file CommonSmart.h.

int GetCharLength ( VARIANT &  v)

Definition at line 665 of file CommonSmart.cpp.

bool IsEqualObject ( IUnknown *  p,
IUnknown *  q 
)

Definition at line 840 of file CommonSmart.cpp.

template<class T , class Q >
void MoveTo ( CComObjPtr< T > &  p,
Q **  q 
)

Definition at line 97 of file CommonSmart.h.

template<class T , class Q >
void MoveTo ( CComObjPtr< T > &  p,
CComObjPtr< Q > &  q 
)

Definition at line 101 of file CommonSmart.h.

void MoveTo ( BSTR *  p,
BSTR *  q 
) [inline]

Definition at line 217 of file CommonSmart.h.

void MoveTo ( CComBstrObj b,
BSTR *  q 
) [inline]

Definition at line 226 of file CommonSmart.h.

void MoveTo ( BSTR *  p,
CComBstrObj b 
) [inline]

Definition at line 227 of file CommonSmart.h.

void MoveTo ( CComBSTR &  b,
BSTR *  q 
) [inline]

Definition at line 253 of file CommonSmart.h.

void MoveTo ( BSTR *  p,
CComBSTR &  b 
) [inline]

Definition at line 254 of file CommonSmart.h.

void MoveTo ( CComBstrObj start,
CComBstrObj end,
SAFEARRAY **  p 
)

Definition at line 149 of file CommonSmart.cpp.

void MoveTo ( SAFEARRAY *  p,
CComBstrObj start,
CComBstrObj end 
)

Definition at line 380 of file CommonSmart.cpp.

void MoveTo ( BSTR  b,
VARIANT *  v 
)
void MoveTo ( const VARIANT &  v,
BSTR *  b 
)
void MoveTo ( IDispatch **  p,
VARIANT *  v 
)

Definition at line 553 of file CommonSmart.cpp.

template<class T >
void MoveTo ( const CComObjPtr< T > &  p,
VARIANT *  v 
)

Definition at line 333 of file CommonSmart.h.

void MoveTo ( VARIANT *  p,
VARIANT *  q 
) [inline]

Definition at line 335 of file CommonSmart.h.

void MoveTo ( CComBstrObj start,
CComBstrObj end,
VARIANT *  v 
)

Definition at line 740 of file CommonSmart.cpp.

void MoveTo ( VARIANT *  v,
CComBstrObj start,
CComBstrObj end 
)

Definition at line 789 of file CommonSmart.cpp.

template<class T >
T** PutInOut ( CComObjPtr< T > &  p)

Definition at line 92 of file CommonSmart.h.

BSTR* PutInOut ( CComBstrObj s) [inline]

Definition at line 198 of file CommonSmart.h.

SAFEARRAY** PutInOut ( CComSafeArray a) [inline]

Definition at line 270 of file CommonSmart.h.

VARIANT* PutInOut ( CComVariant &  v) [inline]

Definition at line 302 of file CommonSmart.h.

template<class T >
T** PutOut ( CComObjPtr< T > &  p)

Definition at line 89 of file CommonSmart.h.

BSTR* PutOut ( CComBstrObj s) [inline]

Definition at line 197 of file CommonSmart.h.

SAFEARRAY** PutOut ( CComSafeArray a) [inline]

Definition at line 269 of file CommonSmart.h.

VARIANT* PutOut ( CComVariant &  v) [inline]

Definition at line 301 of file CommonSmart.h.

template<class T >
HRESULT QueryInterface ( IUnknown *  p,
T **  q 
) [inline]

Definition at line 116 of file CommonSmart.h.

template<class T >
HRESULT QueryInterface ( IUnknown *  p,
CComObjPtr< T > &  q 
) [inline]

Definition at line 120 of file CommonSmart.h.