SALOME_ModuleCatalog_AcomponentImpl::SALOME_ModuleCatalog_AcomponentImpl
(SALOME_ModuleCatalog::ComponentDef &C) : _Component(C)
{
- BEGIN_OF("SALOME_ModuleCatalog_AcomponentImpl");
-
- END_OF("SALOME_ModuleCatalog_AcomponentImpl");
}
//----------------------------------------------------------------------
//----------------------------------------------------------------------
SALOME_ModuleCatalog_AcomponentImpl::~SALOME_ModuleCatalog_AcomponentImpl()
{
- BEGIN_OF("~SALOME_ModuleCatalog_AcomponentImpl");
-
- END_OF("~SALOME_ModuleCatalog_AcomponentImpl");
}
//----------------------------------------------------------------------
SALOME_ModuleCatalog::ListOfInterfaces*
SALOME_ModuleCatalog_AcomponentImpl::GetInterfaceList()
{
- BEGIN_OF("GetInterfaceList");
-
SALOME_ModuleCatalog::ListOfInterfaces_var _list
= new SALOME_ModuleCatalog::ListOfInterfaces;
for (unsigned int ind = 0; ind < _length_interfaces; ind++)
{
_list[ind] = CORBA::string_dup(_Component.interfaces[ind].interfacename);
- MESSAGE("The component " << _Component.name
- << " contains " << _list[ind] << " as interface");
}
-
- END_OF("GetInterfaceList");
return _list._retn();
}
SALOME_ModuleCatalog::DefinitionInterface*
SALOME_ModuleCatalog_AcomponentImpl::GetInterface(const char* interfacename)
{
- BEGIN_OF("GetInterface");
- SCRUTE(interfacename);
-
SALOME_ModuleCatalog::DefinitionInterface *_interface =
new SALOME_ModuleCatalog::DefinitionInterface;
duplicate(*_interface, I);
}
}
-
- SCRUTE(_find);
if (!_find)
{
// The interface was not found, the exception should be thrown
MESSAGE(message);
throw SALOME_ModuleCatalog::NotFound(message.c_str());
}
-
- END_OF("GetInterface");
-
return _interface;
}
SALOME_ModuleCatalog::ListOfServices*
SALOME_ModuleCatalog_AcomponentImpl::GetServiceList(const char* interfacename)
{
- BEGIN_OF("GetServiceList");
- SCRUTE(interfacename);
-
SALOME_ModuleCatalog::ListOfServices_var _list
= new SALOME_ModuleCatalog::ListOfServices;
MESSAGE(message);
throw SALOME_ModuleCatalog::NotFound(message.c_str());
}
-
- END_OF("GetServiceList");
return _list._retn();
}
SALOME_ModuleCatalog_AcomponentImpl::GetService(const char* interfacename,
const char* servicename)
{
- BEGIN_OF("GetService");
- SCRUTE(interfacename);
- SCRUTE(servicename);
-
Unexpect aCatch( MC_NotFound );
SALOME_ModuleCatalog::Service *service = new SALOME_ModuleCatalog::Service;
}
}
-
- SCRUTE(_find);
if (!_find)
{
// The interface was not found, the exception should be thrown
MESSAGE(message);
throw SALOME_ModuleCatalog::NotFound(message.c_str());
}
-
- END_OF("GetService");
return service;
}
SALOME_ModuleCatalog::Service*
SALOME_ModuleCatalog_AcomponentImpl::GetDefaultService(const char* interfacename)
{
- BEGIN_OF("GetDefaultService");
- SCRUTE(interfacename);
-
Unexpect aCatch( MC_NotFound );
SALOME_ModuleCatalog::Service *_service = new SALOME_ModuleCatalog::Service;
MESSAGE(message);
throw SALOME_ModuleCatalog::NotFound(message.c_str());
}
-
- END_OF("GetDefaultService");
return _service;
}
// duplicate out DataStreamParameters
_length = S_in.ServiceoutDataStreamParameter.length();
- SCRUTE(_length);
S_out.ServiceoutDataStreamParameter.length(_length);
for (unsigned int ind2 = 0; ind2 < _length ; ind2 ++)
// duplicate service list
unsigned int _length = I_in.interfaceservicelist.length();
- SCRUTE(_length);
I_out.interfaceservicelist.length(_length);
for (unsigned int ind1 = 0; ind1 < _length ; ind1 ++)
_find = true;
}
if(!_find){
- MESSAGE("A new component " << myPrivate->_general_module_list[ind].name
- << " has to be to added in the list");
_list_components->length((CORBA::ULong)indice+1);
// The component is not already defined => has to be taken
_list_components[(CORBA::ULong)indice]=(myPrivate->_general_module_list[ind].name).c_str();
- SCRUTE(_list_components[(CORBA::ULong)indice]) ;
indice++;
}else{
P_corba.Parametertype = CORBA::string_dup(P_parser.type.c_str());
// duplicate parameter dependency
-
- SCRUTE(P_parser.dependency);
+
P_corba.Parameterdependency = SALOME_ModuleCatalog::DATASTREAM_UNDEFINED;
for (it_dep = DataStreamDepConvert.begin();
it_dep != DataStreamDepConvert.end();
P_corba.Parameterdependency = it_dep->second;
break;
}
-
- SCRUTE(P_corba.Parameterdependency);
}
//----------------------------------------------------------------------