Salome HOME
Fix bug in test on 24 cores CPU test
[modules/kernel.git] / src / ModuleCatalog / SALOME_ModuleCatalog_Acomponent_impl.cxx
index 95e6d9a34c7bad61219a333dc0d12fbd1c0a64fd..fecc12beeac9453682d31dacf47fcdf3bf8b4f98 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  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
@@ -29,7 +29,7 @@
 #include "SALOME_ModuleCatalog_Acomponent_impl.hxx"
 
 #include "Utils_ExceptHandlers.hxx"
-UNEXPECT_CATCH(MC_NotFound, SALOME_ModuleCatalog::NotFound);
+UNEXPECT_CATCH(MC_NotFound, SALOME_ModuleCatalog::NotFound)
 
 #include "utilities.h"
 
@@ -42,10 +42,9 @@ static int MYDEBUG = 0;
 //----------------------------------------------------------------------
 // Function : SALOME_ModuleCatalog_AcomponentImpl
 // Purpose  : Constructor
-//            Affect the component name, type,icone,  a bool to define 
-//            if it's multistudy or not.
+//            Affect the component name, type,icon
 //            Affect too the constraint and the interfaces of the component
-//            and the pathes prefixes for all computers
+//            and the path prefixes for all computers
 //----------------------------------------------------------------------  
 SALOME_ModuleCatalog_AcomponentImpl::SALOME_ModuleCatalog_AcomponentImpl
 (SALOME_ModuleCatalog::ComponentDef &C) : _Component(C)
@@ -103,7 +102,6 @@ SALOME_ModuleCatalog_AcomponentImpl::GetInterfaceList()
 //----------------------------------------------------------------------
 SALOME_ModuleCatalog::DefinitionInterface*
 SALOME_ModuleCatalog_AcomponentImpl::GetInterface(const char* interfacename)
-                                     throw(SALOME_ModuleCatalog::NotFound)
 {
   if(MYDEBUG) BEGIN_OF("GetInterface");
   if(MYDEBUG) SCRUTE(interfacename);
@@ -154,7 +152,6 @@ SALOME_ModuleCatalog_AcomponentImpl::GetInterface(const char* interfacename)
 //----------------------------------------------------------------------
 SALOME_ModuleCatalog::ListOfServices* 
 SALOME_ModuleCatalog_AcomponentImpl::GetServiceList(const char* interfacename)
-                                     throw(SALOME_ModuleCatalog::NotFound)
 {
   if(MYDEBUG) BEGIN_OF("GetServiceList");
   if(MYDEBUG) SCRUTE(interfacename);
@@ -210,7 +207,6 @@ SALOME_ModuleCatalog_AcomponentImpl::GetServiceList(const char* interfacename)
 SALOME_ModuleCatalog::Service* 
 SALOME_ModuleCatalog_AcomponentImpl::GetService(const char* interfacename, 
                                                 const char* servicename) 
-                                     throw(SALOME_ModuleCatalog::NotFound)
 {
   if(MYDEBUG) BEGIN_OF("GetService");
   if(MYDEBUG) SCRUTE(interfacename);
@@ -277,7 +273,6 @@ SALOME_ModuleCatalog_AcomponentImpl::GetService(const char* interfacename,
 //----------------------------------------------------------------------
 SALOME_ModuleCatalog::Service* 
 SALOME_ModuleCatalog_AcomponentImpl::GetDefaultService(const char* interfacename) 
-                                     throw(SALOME_ModuleCatalog::NotFound)
 {
   if(MYDEBUG) BEGIN_OF("GetDefaultService");
   if(MYDEBUG) SCRUTE(interfacename);
@@ -294,7 +289,7 @@ SALOME_ModuleCatalog_AcomponentImpl::GetDefaultService(const char* interfacename
       if (strcmp(interfacename, _Component.interfaces[ind].interfacename) == 0)
         {
           // wanted interface
-          // looking for the defautl service of the wanted interface
+          // looking for the default service of the wanted interface
           for (unsigned int ind1 = 0; ind1 <  _Component.interfaces[ind].interfaceservicelist.length() ; ind1++)
             {
               if (_Component.interfaces[ind].interfaceservicelist[ind1].Servicebydefault)
@@ -331,7 +326,6 @@ SALOME_ModuleCatalog_AcomponentImpl::GetDefaultService(const char* interfacename
 //----------------------------------------------------------------------
 char* 
 SALOME_ModuleCatalog_AcomponentImpl::GetPathPrefix(const char* machinename) 
-                                     throw(SALOME_ModuleCatalog::NotFound)
 {
   if(MYDEBUG) BEGIN_OF("GetPathPrefix");
   if(MYDEBUG) SCRUTE(machinename);
@@ -399,16 +393,6 @@ char* SALOME_ModuleCatalog_AcomponentImpl::componentusername()
   return CORBA::string_dup(_Component.username);
 }
 
-//----------------------------------------------------------------------
-// Function : multistudy
-// Purpose  : define if a component can be multistudy or not
-//----------------------------------------------------------------------
-CORBA::Boolean SALOME_ModuleCatalog_AcomponentImpl::multistudy()
-{
-  return _Component.multistudy ;
-}
-
-
 //----------------------------------------------------------------------
 // Function : implementation type
 // Purpose  : return the implementation type :  C++ (dyn lib), Python (module) or executable