GME
13
|
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 ATTR_DEF |
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 | |||
) |
ASSERT(metaid < ATTRID_REF_MIN);\ COMTHROW( object->AddAttribute((metaid), \ PutInBstr(token), PutInBstr(name), valtype, NULL) );
#define CREATE_COLLECTION | ( | metaid, | |
token, | |||
name | |||
) |
COMTHROW( object->AddAttribute((metaid) + ATTRID_COLLECTION, \ PutInBstr(token), PutInBstr(name), VALTYPE_COLLECTION, NULL) );
#define CREATE_OBJECT | ( | metaid, | |
token, | |||
name | |||
) |
#define CREATE_POINTER | ( | metaid, | |
token, | |||
name | |||
) |
ASSERT(metaid == ATTRID_FATHER || metaid >= ATTRID_REF_MIN);\ COMTHROW( object->AddAttribute((metaid), \ PutInBstr(token), PutInBstr(name), VALTYPE_POINTER, NULL) );
#define FCO_DEF |
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 |
{ 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); |
void CreateCoreMetaProject | ( | CComPtr< ICoreMetaProject > & | project, |
bool | v2 | ||
) |
Definition at line 3 of file MgaGeneric.cpp.