]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESH_I/SMESH_topo.cxx
Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESH_I / SMESH_topo.cxx
diff --git a/src/SMESH_I/SMESH_topo.cxx b/src/SMESH_I/SMESH_topo.cxx
new file mode 100644 (file)
index 0000000..eeda633
--- /dev/null
@@ -0,0 +1,40 @@
+using namespace std;
+//=============================================================================
+// File      : SMESH_topo.cxx
+// Created   : lun mai 13 15:17:25 CEST 2002
+// Author    : Paul RASCLE, EDF
+// Project   : SALOME
+// Copyright : EDF 2002
+// $Header$
+//=============================================================================
+using namespace std;
+
+#include "SMESH_topo.hxx"
+#include "utilities.h"
+
+SMESH_topo::SMESH_topo()
+{
+  MESSAGE("SMESH_topo()");
+}
+
+SMESH_topo::~SMESH_topo()
+{
+  MESSAGE("~SMESH_topo()");
+}
+
+//=============================================================================
+/*!
+ *  Static method, gives a unique local id for a given CORBA reference of
+ *  a shape, within the SALOME session (multi studies). 
+ *  Internal geom id or stringified CORBA reference could be used here.
+ *  GEOM Id is more efficient (shorter string).
+ */
+//=============================================================================
+
+string SMESH_topo::GetShapeLocalId(GEOM::GEOM_Shape_ptr aShape)
+{
+  string str = aShape->ShapeId(); //geomId
+  MESSAGE(str);
+  return str;
+}
+