]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0020605: EDF 1190 SMESH: Display performance. 80 seconds for 52000 cells.
authoreap <eap@opencascade.com>
Fri, 11 Dec 2009 10:42:26 +0000 (10:42 +0000)
committereap <eap@opencascade.com>
Fri, 11 Dec 2009 10:42:26 +0000 (10:42 +0000)
+  char* getHostname();

src/Session/Session_Session_i.cxx
src/Session/Session_Session_i.hxx

index 21c0d2e7805a379b19387f4099a32b4c6e7ae17c..ec065d692e9d54eba8f75d76af6167fba1133026 100755 (executable)
@@ -36,6 +36,8 @@
 #include "SUIT_Desktop.h"
 #include "SUIT_Study.h"
 
+#include "Basics_Utils.hxx"
+
 #include <QMutex>
 #include <QWaitCondition>
 
@@ -214,6 +216,12 @@ CORBA::Long SALOME_Session_i::getPID() {
 #endif
 }
 
+char* SALOME_Session_i::getHostname()
+{
+  string aHostName = Kernel_Utils::GetHostname();
+  return CORBA::string_dup( aHostName.data() );
+}
+
 bool SALOME_Session_i::restoreVisualState(CORBA::Long theSavePoint)
 {
   class TEvent: public SALOME_Event {
index 1fdc144d19cc52e760cc6d9d794cfb546e26b828..1b24d5cef73f86ffda7fa9e0972a50c764326be0 100755 (executable)
@@ -69,6 +69,7 @@ public:
 
   void ping(){};
   CORBA::Long getPID();
+  char* getHostname();
 
   //! Restors a visual state of the study at theSavePoint
   bool restoreVisualState(CORBA::Long theSavePoint);