-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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