GME  13
Defines | Functions
CoreMetaDefines.cpp File Reference

Go to the source code of this file.

Defines

#define CREATE_OBJECT(metaid, token, name)
#define CREATE_POINTER(metaid, token, name)
#define CREATE_COLLECTION(metaid, token, name)
#define CREATE_ATTRIBUTE(metaid, token, name, valtype)
#define CLSID_PUSH(clsid)   { CComVariant id; CopyTo(clsid, id); COMTHROW( object->AddClassID(id) ); }
#define DECLARE_COMMON()   CREATE_ATTRIBUTE(ATTRID_LOCK, "ObjLock", "Object Lock", VALTYPE_LOCK);
#define DECLARE_BASE()
#define DECLARE_FOLDER()
#define DECLARE_FCO()
#define DECLARE_POINTERSPEC()

Functions

void CreateCoreMetaProject (CComPtr< ICoreMetaProject > &project)

Define Documentation

#define CLSID_PUSH (   clsid)    { CComVariant id; CopyTo(clsid, id); COMTHROW( object->AddClassID(id) ); }
#define CREATE_ATTRIBUTE (   metaid,
  token,
  name,
  valtype 
)
Value:
COMTHROW( object->AddAttribute((metaid), \
                PutInBstr(token), PutInBstr(name), valtype, NULL) );
#define CREATE_COLLECTION (   metaid,
  token,
  name 
)
Value:
COMTHROW( object->AddAttribute((metaid) + ATTRID_COLLECTION, \
                PutInBstr(token), PutInBstr(name), VALTYPE_COLLECTION, NULL) );
#define CREATE_OBJECT (   metaid,
  token,
  name 
)
Value:
object.Release(); \
        COMTHROW( project->AddObject(metaid, \
                PutInBstr(token), PutInBstr(name), PutOut(object)) );
#define CREATE_POINTER (   metaid,
  token,
  name 
)
Value:
COMTHROW( object->AddAttribute((metaid), \
                PutInBstr(token), PutInBstr(name), VALTYPE_POINTER, NULL) );
#define DECLARE_BASE ( )
Value:
DECLARE_COMMON(); \
        CREATE_ATTRIBUTE(ATTRID_NAME, "Name", "Name", VALTYPE_STRING); \
        CREATE_ATTRIBUTE(ATTRID_METAREF, "MetaRef", "Meta ID",VALTYPE_METAREF); \
        CREATE_ATTRIBUTE(ATTRID_DISPNAME, "DispName", "Displayed Name", VALTYPE_STRING); \
        CREATE_COLLECTION(ATTRID_REGNODES_COLL, "RegNodes", "Registry Nodes"); \
        CREATE_COLLECTION(ATTRID_CONSTRAINT_PTR, "Constraints", "Constraints");
#define DECLARE_COMMON ( )    CREATE_ATTRIBUTE(ATTRID_LOCK, "ObjLock", "Object Lock", VALTYPE_LOCK);
#define DECLARE_FCO ( )
Value:
DECLARE_BASE() \
        CREATE_POINTER(ATTRID_DEFFCO_PTR, "ObjectParent", "Defined In"); \
        CREATE_COLLECTION(ATTRID_DEFATTR_PTR, "DefinedAttributes", "Defined Attributes"); \
        CREATE_COLLECTION(ATTRID_KIND_PTR, "UsedInRoles", "Used In Roles"); \
        CREATE_COLLECTION(ATTRID_ROOTOBJLINK_OBJECT_PTR, "FolderLinks", "Used In Folders"); \
        CREATE_COLLECTION(ATTRID_ATTRLINK_USEDIN_PTR, "Attributes", "Attributes");\
/*      CREATE_ATTRIBUTE(ATTRID_ALIASENABLED, "AliasEnab", "Aliases Enabled", VALTYPE_LONG) */ ;
#define DECLARE_FOLDER ( )
Value:
DECLARE_BASE(); \
        CREATE_POINTER(ATTRID_DEFFOLDER_PTR, "FolderParent", "Defined In"); \
        CREATE_COLLECTION(ATTRID_DEFFOLDER_PTR, "DefinedFolders", "Defined Folders"); \
        CREATE_COLLECTION(ATTRID_DEFFCO_PTR, "DefinedFCOs", "Defined FCOs"); \
        CREATE_COLLECTION(ATTRID_DEFATTR_PTR, "DefinedAttributes", "Defined Attributes"); \
        CREATE_COLLECTION(ATTRID_FOLDERLINK_PARENT_PTR, "LegalFolders", "Legal Child Folders"); \
        CREATE_COLLECTION(ATTRID_FOLDERLINK_CHILD_PTR, "LegalParents", "Used In Folders"); \
        CREATE_COLLECTION(ATTRID_ROOTOBJLINK_FOLDER_PTR, "ObjectLinks", "Legal Root Objects");
#define DECLARE_POINTERSPEC ( )
Value:
CREATE_ATTRIBUTE(ATTRID_PTRSPECNAME, "SpecName", "Pointer Spec Name", VALTYPE_STRING); \
        CREATE_COLLECTION(ATTRID_PTRITEMS_COLL, "Items", "Pointer Items");

Function Documentation

void CreateCoreMetaProject ( CComPtr< ICoreMetaProject > &  project)

Definition at line 4 of file CoreMetaDefines.cpp.