Salome HOME
sources v1.2
[modules/yacs.git] / src / Registry / SALOME_Registry_Server.cxx
index b917ec29f1ccf53ba5133995b5b1e0b3d2ce7170..6cba1c7d8c2374c90d80cc302a21ca43862864e3 100644 (file)
@@ -1,13 +1,32 @@
-using namespace std;
-//=============================================================================
-// File      : SALOME_Registry_Server.cxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Registry_Server.cxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
+using namespace std;
 # include <stdlib.h>
 # include <iostream.h>
 # include <fstream.h>
@@ -26,6 +45,11 @@ extern "C"
 # include "SALOME_NamingService.hxx"
 # include "RegistryService.hxx"
 
+//#define CHECKTIME
+#ifdef CHECKTIME
+#include <Utils_Timer.hxx>
+#endif
+
 int main( int argc , char **argv )
 {
        BEGIN_OF( argv[0] )
@@ -98,6 +122,13 @@ int main( int argc , char **argv )
 
                        // Lancement de l'ORB
                        MESSAGE("Lancement de l'ORB") ;
+#ifdef CHECKTIME
+                       Utils_Timer timer;
+                       timer.Start();
+                       timer.Stop();
+                       MESSAGE("SALOME_Registry_Server.cxx - orb->run()");
+                       timer.ShowAbsolute();
+#endif
                        orb->run() ;
                }
                catch( const CORBA::Exception &ex )