[Mobies-commit] [commit] r3690 - in UDM/trunk: include src/UdmGme
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Fri Apr 29 16:02:28 CDT 2011
Author: ksmyth
Date: Fri Apr 29 16:02:28 2011
New Revision: 3690
Log:
Udm2Gme by popular request
Modified:
UDM/trunk/include/UdmGme.h
UDM/trunk/src/UdmGme/UdmGme.cpp
Modified: UDM/trunk/include/UdmGme.h
==============================================================================
--- UDM/trunk/include/UdmGme.h Fri Apr 29 15:59:36 2011 (r3689)
+++ UDM/trunk/include/UdmGme.h Fri Apr 29 16:02:28 2011 (r3690)
@@ -150,6 +150,7 @@
bool hasOpened;
};
+ UDM_DLL LPUNKNOWN Udm2Gme(const Udm::Object& o);
// Id conversion routines
UDM_DLL string UdmId2GmeId(Udm::Object::uniqueId_type udmId);
Modified: UDM/trunk/src/UdmGme/UdmGme.cpp
==============================================================================
--- UDM/trunk/src/UdmGme/UdmGme.cpp Fri Apr 29 15:59:36 2011 (r3689)
+++ UDM/trunk/src/UdmGme/UdmGme.cpp Fri Apr 29 16:02:28 2011 (r3690)
@@ -3775,6 +3775,22 @@
}
+ UDM_DLL LPUNKNOWN Udm2Gme(const Udm::Object& o)
+ {
+ GmeObject* gmeObject = dynamic_cast<GmeObject*>(o.__impl());
+ if (gmeObject == NULL)
+ {
+ return NULL;
+ }
+ if (gmeObject->self) {
+ gmeObject->self.AddRef();
+ return gmeObject->self;
+ } else {
+ gmeObject->folderself.AddRef();
+ return gmeObject->folderself;
+ }
+ }
+
UDM_DLL Object GmeDataNetwork::ObjectById(Object::uniqueId_type id)
{
More information about the Mobies-commit
mailing list