Salome HOME
0021530: EDF 2176 SMESH: Projection 1D-2D with compounds
[modules/smesh.git] / src / StdMeshers_I / StdMeshers_ObjRefUlils.cxx
index 3667a852a122cfe8a8be3450bf6f888453be625f..bca540fc8627d1dec07f891b335f641c33a61269 100644 (file)
 
 using namespace std;
 
+//=======================================================================
+//function : GeomObjectToEntry
+//purpose  : Return study entry of GEOM Object
+//=======================================================================
+
+std::string StdMeshers_ObjRefUlils::GeomObjectToEntry(GEOM::GEOM_Object_ptr&  theGeomObject)
+{
+  if ( CORBA::is_nil( theGeomObject ))
+    return "NULL_OBJECT";
+
+  CORBA::String_var entry = theGeomObject->GetStudyEntry();
+  return entry.in();
+}
+
 //=======================================================================
 //function : EntryOrShapeToGeomObject
 //purpose  :  Return GEOM Object by its sytudy entry or TopoDS_Shape