X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTestFunctions%2FTestFunctions.cxx;h=12297f713ec530ad05c16afdb96aa5e556ae428b;hb=refs%2Ftags%2FV8_1_0rc2;hp=06d9c449c6a2b53d203b7363c7fd4487340a82f8;hpb=4829b821c92e799b3987ab800a3c6f8db0c7081b;p=samples%2Fcomponent.git diff --git a/src/TestFunctions/TestFunctions.cxx b/src/TestFunctions/TestFunctions.cxx index 06d9c44..12297f7 100644 --- a/src/TestFunctions/TestFunctions.cxx +++ b/src/TestFunctions/TestFunctions.cxx @@ -1,32 +1,34 @@ -// SuperVisionTest TestFunctions : example of component that adds two numbers +// Copyright (C) 2007-2016 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 // -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// 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 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// 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 +// + +// SuperVisionTest TestFunctions : example of component that adds two numbers // File : TestFunctions.cxx // Module : SuperVisionTest - +// #include #include +#ifndef WIN32 #include +#endif #include #include CORBA_CLIENT_HEADER(AddComponent) @@ -48,8 +50,8 @@ int main(int argc, char **argv) { SALOME_NamingService _NS(orb) ; SALOME_LifeCycleCORBA _LCC(&_NS) ; - Engines::Component_var AddComponent = _LCC.FindOrLoad_Component( "FactoryServer" , - "AddComponent"); + Engines::EngineComponent_var AddComponent = _LCC.FindOrLoad_Component( "FactoryServer" , + "AddComponent"); SuperVisionTest::AddComponent_var AddInterface ; AddInterface = SuperVisionTest::AddComponent::_narrow( AddComponent ); @@ -100,4 +102,3 @@ int main(int argc, char **argv) { return 0; } -