GME  13
Classes | Defines | Typedefs | Functions
MetaUtilities.h File Reference

Go to the source code of this file.

Classes

class  CCoreObjectPtr
struct  objid_lessthan
struct  objid_morethan
struct  pathitem_type
struct  jointpath_type
struct  BSTR_hashfunc
struct  BSTR_equalkey
struct  metaid_hashfunc
struct  CComBstrObj_lightequal

Defines

#define PATH_TRACE   1 ? void(0) : NOOP_TRACE

Typedefs

typedef std::vector
< CCoreObjectPtr
coreobjects_type
typedef coreobjects_type::iterator coreobjects_iterator
typedef struct pathitem_type pathitem_type
typedef std::vector
< pathitem_type
pathitems_type
typedef struct jointpath_type jointpath_type
typedef std::vector
< jointpath_type
jointpaths_type

Functions

ICoreObject ** PutOut (CCoreObjectPtr &coreobj)
template<class ITFTYPE , class COLLITF >
HRESULT ComGetCollectionValue (IUnknown *me, attrid_type attrid, COLLITF **p)
template<class ITFTYPE , class COLLITF >
HRESULT ComGetSortedCollValue (IUnknown *me, attrid_type attrid, COLLITF **p)
template<class ITFTYPE >
HRESULT ComGetCollValueByName (BSTR name, IUnknown *me, attrid_type attrid, attrid_type nameid, ITFTYPE **p)
template<class ITFTYPE , class COLLITF >
HRESULT ComGetLinkCollectionValue (IUnknown *me, attrid_type collid, attrid_type ptrid, COLLITF **p)
template<class ITFTYPE >
HRESULT ComGetLinkCollValueByName (BSTR name, IUnknown *me, attrid_type collid, attrid_type ptrid, ITFTYPE **p)
template<class ITFTYPE , class COLLITF >
HRESULT ComGetSortedLinkCollValue (IUnknown *me, attrid_type collid, attrid_type ptrid, COLLITF **p)
template<class ITFTYPE >
HRESULT ComGetPointerValue (IUnknown *me, attrid_type attrid, ITFTYPE **p)
HRESULT ComGetAttrValue (IUnknown *me, attrid_type attrid, BSTR *p)
HRESULT ComGetAttrValue (IUnknown *me, attrid_type attrid, VARIANT *p)
HRESULT ComGetAttrValue (IUnknown *me, attrid_type attrid, long *p)
HRESULT ComGetDisplayedName (IUnknown *me, attrid_type dispattrid, attrid_type nameattrid, BSTR *p)
HRESULT ComGetObjType (IUnknown *me, objtype_enum *p)
template<class ITFTYPE >
HRESULT ComCreateMetaObj (IUnknown *me, metaid_type metaid, attrid_type pointer, ITFTYPE **p)
template<class ITFTYPE >
HRESULT ComDefineBase (CMgaMetaBase *me, metaid_type metaid, attrid_type pointer, ITFTYPE **p)
template<class ITFTYPE >
HRESULT ComAddLink (CMgaMetaBase *me, metaid_type metaid, attrid_type here, attrid_type there, ITFTYPE *p)
template<class ITFTYPE >
HRESULT ComRemoveLink (CMgaMetaBase *me, metaid_type metaid, attrid_type here, attrid_type there, ITFTYPE *p)
HRESULT ComPutAttrValue (IUnknown *self, attrid_type attrid, BSTR p)
HRESULT ComPutAttrValue (IUnknown *self, attrid_type attrid, long p)
HRESULT ComPutAttrValue (IUnknown *self, attrid_type attrid, VARIANT p)
void ChangeAttrValueType (CComVariant &v, attval_enum attval)
HRESULT ComDeleteObject (IUnknown *self)
void TraverseObject (CMgaMetaProject *metaproject, CCoreObjectPtr &me)
void TraverseCollection (CMgaMetaProject *metaproject, CCoreObjectPtr &me, attrid_type attrid)
CComBSTR truncateName (IUnknown *p_bs, CComBSTR pIn)
void NOOP_TRACE (LPCSTR,...)

Define Documentation

#define PATH_TRACE   1 ? void(0) : NOOP_TRACE

Definition at line 563 of file MetaUtilities.h.


Typedef Documentation

typedef coreobjects_type::iterator coreobjects_iterator

Definition at line 19 of file MetaUtilities.h.

typedef std::vector<CCoreObjectPtr> coreobjects_type

Definition at line 17 of file MetaUtilities.h.

typedef std::vector<jointpath_type> jointpaths_type

Definition at line 467 of file MetaUtilities.h.

typedef struct pathitem_type pathitem_type
typedef std::vector<pathitem_type> pathitems_type

Definition at line 459 of file MetaUtilities.h.


Function Documentation

void ChangeAttrValueType ( CComVariant &  v,
attval_enum  attval 
)

Definition at line 322 of file MetaUtilities.cpp.

template<class ITFTYPE >
HRESULT ComAddLink ( CMgaMetaBase me,
metaid_type  metaid,
attrid_type  here,
attrid_type  there,
ITFTYPE *  p 
)

Definition at line 397 of file MetaUtilities.h.

template<class ITFTYPE >
HRESULT ComCreateMetaObj ( IUnknown *  me,
metaid_type  metaid,
attrid_type  pointer,
ITFTYPE **  p 
)

Definition at line 350 of file MetaUtilities.h.

template<class ITFTYPE >
HRESULT ComDefineBase ( CMgaMetaBase me,
metaid_type  metaid,
attrid_type  pointer,
ITFTYPE **  p 
)

Definition at line 374 of file MetaUtilities.h.

HRESULT ComDeleteObject ( IUnknown *  self)

Definition at line 359 of file MetaUtilities.cpp.

HRESULT ComGetAttrValue ( IUnknown *  me,
attrid_type  attrid,
BSTR *  p 
)

Definition at line 184 of file MetaUtilities.cpp.

HRESULT ComGetAttrValue ( IUnknown *  me,
attrid_type  attrid,
VARIANT *  p 
)

Definition at line 210 of file MetaUtilities.cpp.

HRESULT ComGetAttrValue ( IUnknown *  me,
attrid_type  attrid,
long *  p 
)

Definition at line 197 of file MetaUtilities.cpp.

template<class ITFTYPE , class COLLITF >
HRESULT ComGetCollectionValue ( IUnknown *  me,
attrid_type  attrid,
COLLITF **  p 
)

Definition at line 104 of file MetaUtilities.h.

template<class ITFTYPE >
HRESULT ComGetCollValueByName ( BSTR  name,
IUnknown *  me,
attrid_type  attrid,
attrid_type  nameid,
ITFTYPE **  p 
)

Definition at line 174 of file MetaUtilities.h.

HRESULT ComGetDisplayedName ( IUnknown *  me,
attrid_type  dispattrid,
attrid_type  nameattrid,
BSTR *  p 
)

Definition at line 223 of file MetaUtilities.cpp.

template<class ITFTYPE , class COLLITF >
HRESULT ComGetLinkCollectionValue ( IUnknown *  me,
attrid_type  collid,
attrid_type  ptrid,
COLLITF **  p 
)

Definition at line 208 of file MetaUtilities.h.

template<class ITFTYPE >
HRESULT ComGetLinkCollValueByName ( BSTR  name,
IUnknown *  me,
attrid_type  collid,
attrid_type  ptrid,
ITFTYPE **  p 
)

Definition at line 245 of file MetaUtilities.h.

HRESULT ComGetObjType ( IUnknown *  me,
objtype_enum p 
)

Definition at line 252 of file MetaUtilities.cpp.

template<class ITFTYPE >
HRESULT ComGetPointerValue ( IUnknown *  me,
attrid_type  attrid,
ITFTYPE **  p 
)

Definition at line 322 of file MetaUtilities.h.

template<class ITFTYPE , class COLLITF >
HRESULT ComGetSortedCollValue ( IUnknown *  me,
attrid_type  attrid,
COLLITF **  p 
)

Definition at line 138 of file MetaUtilities.h.

template<class ITFTYPE , class COLLITF >
HRESULT ComGetSortedLinkCollValue ( IUnknown *  me,
attrid_type  collid,
attrid_type  ptrid,
COLLITF **  p 
)

Definition at line 282 of file MetaUtilities.h.

HRESULT ComPutAttrValue ( IUnknown *  self,
attrid_type  attrid,
BSTR  p 
)

Definition at line 273 of file MetaUtilities.cpp.

HRESULT ComPutAttrValue ( IUnknown *  self,
attrid_type  attrid,
long  p 
)

Definition at line 284 of file MetaUtilities.cpp.

HRESULT ComPutAttrValue ( IUnknown *  self,
attrid_type  attrid,
VARIANT  p 
)

Definition at line 295 of file MetaUtilities.cpp.

template<class ITFTYPE >
HRESULT ComRemoveLink ( CMgaMetaBase me,
metaid_type  metaid,
attrid_type  here,
attrid_type  there,
ITFTYPE *  p 
)

Definition at line 423 of file MetaUtilities.h.

void NOOP_TRACE ( LPCSTR  ,
  ... 
) [inline]

Definition at line 560 of file MetaUtilities.h.

ICoreObject** PutOut ( CCoreObjectPtr coreobj) [inline]

Definition at line 61 of file MetaUtilities.h.

void TraverseCollection ( CMgaMetaProject metaproject,
CCoreObjectPtr me,
attrid_type  attrid 
)

Definition at line 190 of file Meta.cpp.

void TraverseObject ( CMgaMetaProject metaproject,
CCoreObjectPtr me 
)

Definition at line 114 of file Meta.cpp.

CComBSTR truncateName ( IUnknown *  p_bs,
CComBSTR  pIn 
)

Definition at line 370 of file MetaUtilities.cpp.