X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleCatalog%2FSALOME_ModuleCatalog_Acomponent_impl.cxx;h=fecc12beeac9453682d31dacf47fcdf3bf8b4f98;hb=a98a09635ad776cf8eb98664e0933760eb9edbe4;hp=95e6d9a34c7bad61219a333dc0d12fbd1c0a64fd;hpb=0fac7040be417aab7228a4e23904b4cf22a8dda4;p=modules%2Fkernel.git diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx index 95e6d9a34..fecc12bee 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx @@ -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