From: nri Date: Thu, 6 May 2004 16:32:49 +0000 (+0000) Subject: NRI : Fixed bug SUPERV5830. X-Git-Tag: Ecole_Ete_a4~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d45c192a7c2134673b00d441343b8cc64cf00e3;p=modules%2Fkernel.git NRI : Fixed bug SUPERV5830. --- diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx index 084c4c12f..4cf8e579a 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.cxx @@ -462,6 +462,9 @@ void SALOME_ModuleCatalog_AcomponentImpl::duplicate (SALOME_ModuleCatalog::Service & S_out, const SALOME_ModuleCatalog::Service &S_in) { + // type of node + S_out.TypeOfNode = S_in.TypeOfNode; + // duplicate service name S_out.ServiceName = CORBA::string_dup(S_in.ServiceName); diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx index de670dd8f..5af547b2e 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx @@ -237,6 +237,10 @@ bool SALOME_ModuleCatalog_Handler::endElement(const QString&, return true; } + // tag test_component_impltype + if((qName.compare(QString(test_component_impltype))==0)) + _aModule.implementationType = atoi(content.c_str()) ; + // tag test_component_icon if((qName.compare(test_component_icon)==0)) { _aModule.icon = content ; @@ -265,6 +269,10 @@ bool SALOME_ModuleCatalog_Handler::endElement(const QString&, return true; } + //tag test_typeofnode + if((qName.compare(QString(test_typeofnode))==0)) + _aService.typeOfNode = atoi(content.c_str()) ; + // Parameter in // tag test_inDataStreamParameter_type @@ -450,6 +458,7 @@ bool SALOME_ModuleCatalog_Handler::endElement(const QString&, // Empty temporary structures _aService.name = ""; + _aService.typeOfNode = 1; _aService.inParameters.resize(0); _aService.outParameters.resize(0); _aService.inDataStreamParameters.resize(0); diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx index 0e6ae2ef7..7ba1b29f9 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx @@ -646,6 +646,8 @@ void SALOME_ModuleCatalogImpl::duplicate // duplicate service by default S_corba.Servicebydefault = S_parser.byDefault; + S_corba.TypeOfNode = S_parser.typeOfNode; + unsigned int _length; // duplicate in Parameters