GME
13
|
00001 // MgaModel.h : Declaration of the CMgaModel 00002 00003 #ifndef __MGAMODEL_H_ 00004 #define __MGAMODEL_H_ 00005 00006 #include "resource.h" // main symbols 00007 #include "MgaFCO.h" 00008 #include "MgaFolder.h" 00009 00010 00012 // CMgaModel 00013 class ATL_NO_VTABLE CMgaModel : 00014 public CComCoClass<CMgaModel, &__uuidof(MgaModel)>, 00015 public IMgaContainerImpl< IMgaFCOImpl< 00016 CComObjectRootEx<CComSingleThreadModel>, 00017 IDispatchImpl<IMgaModel, &__uuidof(IMgaModel), &__uuidof(__MGALib)> > >, 00018 public ISupportErrorInfoImpl<&__uuidof(IMgaModel)> 00019 { 00020 public: 00021 CMgaModel() 00022 { 00023 } 00024 00025 00026 DECLARE_PROTECT_FINAL_CONSTRUCT() 00027 00028 BEGIN_COM_MAP(CMgaModel) 00029 COM_INTERFACE_ENTRY(IMgaModel) 00030 COM_INTERFACE_ENTRY(IDispatch) 00031 COM_INTERFACE_ENTRY_IID(__uuidof(IMgaFCO),IMgaModel) 00032 COM_INTERFACE_ENTRY_IID(__uuidof(IMgaObject),IMgaModel) 00033 COM_INTERFACE_ENTRY_IID(IID_ISupportErrorInfo, IMyErrorInfoBase) 00034 // COM_INTERFACE_ENTRY_IID(IID_IMgaContainer,IMgaModel) 00035 END_COM_MAP() 00036 00037 // IMgaModel 00038 public: 00039 STDMETHOD(DeriveChildObject)(IMgaFCO *base, IMgaMetaRole *role, VARIANT_BOOL inst, IMgaFCO **newobj) { 00040 return inFCO->DeriveFCO(base, role, inst, newobj); } 00041 STDMETHOD(CreateChildObject)(IMgaMetaRole *role, IMgaFCO **newobj) { 00042 return inFCO->CreateChildObject(role, newobj); } 00043 STDMETHOD(get_ChildDerivedFrom)(IMgaFCO *baseobj, IMgaFCO **pVal) { 00044 return inFCO->get_ChildDerivedFrom(baseobj, pVal); } 00045 STDMETHOD(GetChildDerivedFromDisp)(IMgaFCO *baseobj, IMgaFCO **pVal) { 00046 return inFCO->get_ChildDerivedFrom(baseobj, pVal); } 00047 STDMETHOD(CreateReference)( IMgaMetaRole *meta, IMgaFCO *target, IMgaFCO **newobj) { 00048 return inFCO->CreateReference( meta, target, newobj); } 00049 STDMETHOD(get_AspectParts)(IMgaMetaAspect * asp, unsigned int filter, IMgaParts **pVal) { 00050 return inFCO->get_AspectParts(asp, filter, pVal); } 00051 STDMETHOD(GetAspectPartsDisp)(IMgaMetaAspect * asp, unsigned int filter, IMgaParts **pVal) { 00052 return inFCO->get_AspectParts(asp, filter, pVal); } 00053 STDMETHOD(CopyFCOs)(IMgaFCOs *list, IMgaMetaRoles *rlist, IMgaFCOs **objs) { 00054 return inFCO->CopyFCOs(list, rlist, objs); } 00055 STDMETHOD(MoveFCOs)(IMgaFCOs *list, IMgaMetaRoles *rlist, IMgaFCOs **objs) { 00056 return inFCO->MoveFCOs(list, rlist, objs); } 00057 STDMETHOD(CopyFCODisp)(IMgaFCO *obj, IMgaMetaRole *role, IMgaFCO **nobj) { 00058 return inFCO->CopyFCODisp( obj, role, nobj); } 00059 STDMETHOD(MoveFCODisp)(IMgaFCO *obj, IMgaMetaRole *role, IMgaFCO **nobj) { 00060 return inFCO->MoveFCODisp( obj, role, nobj); } 00061 STDMETHOD(CreateSimpleConn)( IMgaMetaRole *meta, IMgaFCO *src, IMgaFCO *dst, IMgaFCOs *srcrefs, IMgaFCOs *dstrefs, IMgaFCO **newobj) { 00062 return inFCO->CreateSimpleConn(meta, src, dst, srcrefs, dstrefs, newobj); } 00063 STDMETHOD(CreateSimpleConnDisp)( IMgaMetaRole *meta, IMgaFCO *src, IMgaFCO *dst, IMgaFCO *srcref, IMgaFCO *dstref, IMgaFCO **newobj) { 00064 return inFCO->CreateSimpleConnDisp(meta, src, dst, srcref, dstref, newobj); } 00065 STDMETHOD(CreateSimplerConnDisp)( IMgaMetaRole *meta, IMgaFCO *src, IMgaFCO *dst, IMgaFCO **newobj) { return CreateSimpleConnDisp(meta, src, dst, 0, 0, newobj); } 00066 STDMETHOD(AddInternalConnections)(IMgaFCOs *inobjs, IMgaFCOs **objs) { 00067 return inFCO->AddInternalConnections(inobjs, objs);} 00068 STDMETHOD(get_ChildRelIDCounter)(long *pVal) { 00069 return inFCO->get_ChildRelIDCounter(pVal); } 00070 STDMETHOD(put_ChildRelIDCounter)(long pVal) { 00071 return inFCO->put_ChildRelIDCounter(pVal); } 00072 STDMETHOD(GetSourceControlInfo)( long *p_scInfo) { 00073 return inFCO->GetSourceControlInfo( p_scInfo);} 00074 }; 00075 #endif //__MGAMODEL_H_