Salome HOME
Change dot image format from jpg to png.
[modules/kernel.git] / src / LifeCycleCORBA / TestContainerManager.cxx
index 8ffa2587281a8ca5989e7454eb3305557e3524ec..ba4f4ae403ca63f6d570407a334f58b47142aa63 100644 (file)
@@ -1,24 +1,22 @@
-//  Copyright (C) 2007-2008  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
+// 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 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.
 //
-//  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
 //
-//  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //  SALOME TestContainer : test of container creation and its life cycle
 //  File   : TestContainer.cxx
 //  Author : Paul RASCLE, EDF - MARC TAJCHMAN, CEA
@@ -47,7 +45,7 @@ int main (int argc, char * argv[])
   std::map<std::string, int> cycle;
   std::map<std::string, int> first;
   Engines::Container_ptr cont;
-  Engines::Component_ptr compo;
+  Engines::EngineComponent_ptr compo;
   bool error = false;
   bool bestImplemented;
   int status;
@@ -127,9 +125,9 @@ int main (int argc, char * argv[])
     if(!CORBA::is_nil(cont)){
       std::string basename = Kernel_Utils::GetBaseName(cont->name());
       if(basename.compare(0,4,"cycl")==0)
-       cycle[cont->getHostName()]++;
+        cycle[cont->getHostName()]++;
       if(basename.compare(0,5,"first")==0)
-       first[cont->getHostName()]++;
+        first[cont->getHostName()]++;
     }
   }
   _ContManager->ShutdownContainers();
@@ -147,8 +145,8 @@ int main (int argc, char * argv[])
       if(cycle[(*iter).first]/nbproc>cmax) cmax=cycle[(*iter).first]/nbproc;
       if(first[(*iter).first]/nbproc<fmin) fmin=first[(*iter).first]/nbproc;
       if(first[(*iter).first]/nbproc>fmax){
-       fmax=first[(*iter).first]/nbproc;
-       nbpmax = nbproc;
+        fmax=first[(*iter).first]/nbproc;
+        nbpmax = nbproc;
       }
     }
   }