X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FCppNode.cxx;h=f21e164303ca108d3901e723b9cd7c2cc0fe55fe;hb=3bd065d98e6be54641662dae58e489e7b97b5400;hp=74648dd815436a9e1e8c4e9a57641bce3c35ceed;hpb=f4c10bf1781a76534bb1fa293aef541aef56148b;p=modules%2Fyacs.git diff --git a/src/runtime/CppNode.cxx b/src/runtime/CppNode.cxx index 74648dd81..f21e16430 100644 --- a/src/runtime/CppNode.cxx +++ b/src/runtime/CppNode.cxx @@ -1,27 +1,29 @@ -// Copyright (C) 2006-2008 CEA/DEN, EDF R&D +// 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. +// 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. +// 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 +// 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + #include "CppNode.hxx" #include "InputPort.hxx" #include "OutputPort.hxx" #include "CppPorts.hxx" #include "CppContainer.hxx" #include "CppComponent.hxx" +#include "TypeCode.hxx" #include #include @@ -100,14 +102,14 @@ void CppNode::execute() } if (_component) - { - CppComponent * _componentC = dynamic_cast(_component); - if (!_componentC) - throw YACS::Exception("CppNode::execute : bad type of component"); - _componentC->run(_method.c_str(), nIn, nOut, In, Out); + { + CppComponent * _componentC = dynamic_cast(_component); + if (!_componentC) + throw YACS::Exception("CppNode::execute : bad type of component"); + _componentC->run(_method.c_str(), nIn, nOut, In, Out); } else if (_run) - _run(nIn, nOut, In, Out); + _run(nIn, nOut, In, Out); //output parameters std::list::iterator iter2;