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
}
/*!
- * \brief Return GEOM Object by its sytudy entry or TopoDS_Shape
+ * \brief Return study entry of GEOM Object
+ */
+ static std::string GeomObjectToEntry(GEOM::GEOM_Object_ptr& theGeomObject);
+
+ /*!
+ * \brief Return GEOM Object by its study entry or TopoDS_Shape
*/
static GEOM::GEOM_Object_ptr EntryOrShapeToGeomObject (const std::string& theEntry,
const TopoDS_Shape& theShape);
+
/*!
* \brief Store the shape in the stream
* \param theShape - shape to store