X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fyacsorb%2FyacsSrv.cxx;h=cb8f5853da7c0e280aa5ffff28455179781ebd83;hb=e41dd6512d61d8270dec5ad62f4a0b6703ff112d;hp=c77de47f7875efa9bda3085bea2ec19637e33873;hpb=a84e60a749da66dffb73297fa5082b70b9d62f7d;p=modules%2Fyacs.git diff --git a/src/yacsorb/yacsSrv.cxx b/src/yacsorb/yacsSrv.cxx index c77de47f7..cb8f5853d 100644 --- a/src/yacsorb/yacsSrv.cxx +++ b/src/yacsorb/yacsSrv.cxx @@ -1,3 +1,23 @@ +// Copyright (C) 2006-2022 CEA/DEN, EDF R&D +// +// 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, or (at your option) any later version. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +#include #include #include "RuntimeSALOME.hxx" #include "Proc.hxx" @@ -102,14 +122,14 @@ char * Proc_i::getXMLState(CORBA::Long numid) void Proc_i::getIds(YACS_ORB::longArray_out numids,YACS_ORB::stringArray_out names) { - std::set nodes=_proc->getAllRecursiveNodes(); + std::list nodes=_proc->getAllRecursiveNodes(); int len=nodes.size(); names=new YACS_ORB::stringArray; numids=new YACS_ORB::longArray; names->length(len); numids->length(len); int i=0; - for(set::const_iterator iter=nodes.begin();iter!=nodes.end();iter++,i++) + for(list::const_iterator iter=nodes.begin();iter!=nodes.end();iter++,i++) { (*names)[i]=CORBA::string_dup((*iter)->getQualifiedName().c_str()); (*numids)[i]=(*iter)->getNumId();