[commit] r1504 - trunk/GME/Mga
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Sep 7 09:10:43 CDT 2011
Author: ksmyth
Date: Wed Sep 7 09:10:39 2011
New Revision: 1504
Log:
Implementation of get_MetaRef for impending breaking COM change
Modified:
trunk/GME/Mga/ (props changed)
trunk/GME/Mga/MgaFCO.cpp
trunk/GME/Mga/MgaFCO.h
Modified: trunk/GME/Mga/MgaFCO.cpp
==============================================================================
--- trunk/GME/Mga/MgaFCO.cpp Wed Sep 7 09:09:40 2011 (r1503)
+++ trunk/GME/Mga/MgaFCO.cpp Wed Sep 7 09:10:39 2011 (r1504)
@@ -230,6 +230,15 @@
} COMCATCH(;)
}
+HRESULT FCO::get_MetaRef(metaref_type *pVal) {
+ COMTRY {
+ CheckDeletedRead();
+ CHECK_OUTPTRPAR(pVal);
+ mgaproject->SetNmspaceInMeta();
+ *pVal = self[ATTRID_META];
+ } COMCATCH(;)
+}
+
// ----------------------------------------
// Parent and grandparent access
// ----------------------------------------
Modified: trunk/GME/Mga/MgaFCO.h
==============================================================================
--- trunk/GME/Mga/MgaFCO.h Wed Sep 7 09:09:40 2011 (r1503)
+++ trunk/GME/Mga/MgaFCO.h Wed Sep 7 09:10:39 2011 (r1504)
@@ -104,6 +104,7 @@
STDMETHOD(get_ParentModel)( IMgaModel **pVal) { return inFCO->get_ParentModel(pVal); }
STDMETHOD(get_ParentFolder)( IMgaFolder **pVal) { return inFCO->get_ParentFolder(pVal); }
STDMETHOD(get_MetaBase)( IMgaMetaBase **pVal) { return inFCO->get_MetaBase(pVal); }
+ STDMETHOD(get_MetaRef)( metaref_type *pVal) { return inFCO->get_MetaRef(pVal); }
STDMETHOD(get_ObjType)( objtype_enum *pVal) { return inFCO->get_ObjType(pVal); }
STDMETHOD(GetAbsMetaPath)(BSTR *abspath) { return inFCO->GetAbsMetaPath(abspath); }
STDMETHOD(GetRelMetaPath)(IMgaFCO *begfco, BSTR *relpath, IMgaFCOs *refs)
@@ -384,6 +385,7 @@
HRESULT get_ParentModel(IMgaModel **pVal);
HRESULT get_ParentFolder(IMgaFolder **pVal);
HRESULT get_MetaBase(IMgaMetaBase **pVal);
+ HRESULT get_MetaRef(metaref_type *pVal);
HRESULT get_Name(BSTR *pVal);
void initialname(); // add inital name to object
HRESULT put_Name(BSTR newVal);
More information about the gme-commit
mailing list