GME  13
Defines | Functions
MgaGeneric.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 COMMON_DEF   CREATE_ATTRIBUTE(ATTRID_LOCK, "ObjLock", "Object Lock", VALTYPE_LOCK);
#define GUID_ATTRS_DEFS
#define STATUS_ATTR_DEF   CREATE_ATTRIBUTE(ATTRID_FILESTATUS, "fstate", "Multiuser File Status", VALTYPE_LONG);
#define FCO_DEF
#define ATTR_DEF

Functions

void CreateCoreMetaProject (CComPtr< ICoreMetaProject > &project, bool v2)

Define Documentation

#define ATTR_DEF
Value:
COMMON_DEF\
                CREATE_ATTRIBUTE(ATTRID_META, "Meta", "Meta Identifier",VALTYPE_METAREF);\
                CREATE_POINTER(ATTRID_ATTRPARENT,"Owner", "Owner FCO");
#define CLSID_PUSH (   clsid)    { CComVariant id; CopyTo(clsid, id); COMTHROW( object->AddClassID(id) ); }
#define COMMON_DEF   CREATE_ATTRIBUTE(ATTRID_LOCK, "ObjLock", "Object Lock", VALTYPE_LOCK);
#define CREATE_ATTRIBUTE (   metaid,
  token,
  name,
  valtype 
)
Value:
ASSERT(metaid < ATTRID_REF_MIN);\
        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:
ASSERT(metaid == ATTRID_FATHER || metaid >= ATTRID_REF_MIN);\
        COMTHROW( object->AddAttribute((metaid), \
                PutInBstr(token), PutInBstr(name), VALTYPE_POINTER, NULL) );
#define FCO_DEF
Value:
COMMON_DEF\
                CREATE_ATTRIBUTE(ATTRID_NAME, "Name", "FCO Name",       VALTYPE_STRING);\
                CREATE_ATTRIBUTE(ATTRID_RELID, "RelID", "RelID",        VALTYPE_LONG);\
                CREATE_ATTRIBUTE(ATTRID_META, "Meta", "Meta Identifier",VALTYPE_METAREF);\
                CREATE_ATTRIBUTE(ATTRID_ROLEMETA, "RoleMeta", "Role Meta Identifier",VALTYPE_METAREF);\
                CREATE_POINTER(ATTRID_FCOPARENT, "Parent", "Parent Object");\
                CREATE_COLLECTION(ATTRID_CONSTROWNER, "Constraints", "Constraints");\
                CREATE_ATTRIBUTE(ATTRID_REGNODE, "RegNodes", "Registry Nodes", VALTYPE_DICT); \
                CREATE_COLLECTION(ATTRID_REFERENCE, "References", "Referenced by");\
                CREATE_COLLECTION(ATTRID_XREF,          "XReferences", "Cross refs");\
                CREATE_COLLECTION(ATTRID_ATTRPARENT,"Attributes", "Attributes");\
                CREATE_POINTER(ATTRID_DERIVED, "BaseType", "BaseType");\
                CREATE_COLLECTION(ATTRID_DERIVED, "SubTypes", "SubTypes/Instances"); \
                CREATE_ATTRIBUTE(ATTRID_PERMISSIONS, "Permissions", "Permissions", VALTYPE_LONG);
#define GUID_ATTRS_DEFS
Value:
{ CREATE_ATTRIBUTE(ATTRID_GUID1, "GUID1", "FCO GUID1",  VALTYPE_LONG);\
                CREATE_ATTRIBUTE(ATTRID_GUID2, "GUID2", "FCO GUID2",    VALTYPE_LONG);\
                CREATE_ATTRIBUTE(ATTRID_GUID3, "GUID3", "FCO GUID3",    VALTYPE_LONG);\
                CREATE_ATTRIBUTE(ATTRID_GUID4, "GUID4", "FCO GUID4",    VALTYPE_LONG);}
#define STATUS_ATTR_DEF   CREATE_ATTRIBUTE(ATTRID_FILESTATUS, "fstate", "Multiuser File Status", VALTYPE_LONG);

Function Documentation

void CreateCoreMetaProject ( CComPtr< ICoreMetaProject > &  project,
bool  v2 
)

Definition at line 3 of file MgaGeneric.cpp.