X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fyacsloader%2FTest%2FOptimizerAlgSyncExample.cxx;h=9a93eca2789503e61747d66ab8989d9affd17d40;hb=22868d035fb80bab64e0231d8dfffdf7afc240c3;hp=6161dbf9095c8f5639e6db2478843458351731f8;hpb=5e3d4c34b008ce0726db84073c523ef58441a3c5;p=modules%2Fyacs.git diff --git a/src/yacsloader/Test/OptimizerAlgSyncExample.cxx b/src/yacsloader/Test/OptimizerAlgSyncExample.cxx index 6161dbf90..9a93eca27 100644 --- a/src/yacsloader/Test/OptimizerAlgSyncExample.cxx +++ b/src/yacsloader/Test/OptimizerAlgSyncExample.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2014 CEA/DEN, EDF R&D +// Copyright (C) 2006-2023 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 @@ -48,7 +48,7 @@ class OptimizerAlgSyncExample : public YACS::ENGINE::OptimizerAlgSync virtual YACS::ENGINE::TypeCode *getTCForAlgoInit() const; //! returns typecode of type expected as algo result. OwnerShip of returned pointer is held by this. virtual YACS::ENGINE::TypeCode *getTCForAlgoResult() const; - virtual void initialize(const YACS::ENGINE::Any *input) throw (YACS::Exception); + virtual void initialize(const YACS::ENGINE::Any *input); virtual void start(); //! Update _pool attribute before performing anything. virtual void takeDecision();//! _pool->getCurrentId gives the \b id at the origin of this call. //! Perform the job of analysing to know what new jobs to do (_pool->pushInSample) @@ -100,7 +100,6 @@ YACS::ENGINE::TypeCode * OptimizerAlgSyncExample::getTCForAlgoResult() const * future to initialize an algorithm with custom data. */ void OptimizerAlgSyncExample::initialize(const YACS::ENGINE::Any *input) - throw (YACS::Exception) { std::cout << "Algo initialize, input = " << input->getIntValue() << std::endl; } @@ -160,4 +159,4 @@ YACS::ENGINE::Any * OptimizerAlgSyncExample::getAlgoResult() YACS::ENGINE::OptimizerAlgBase * createOptimizerAlgSyncExample(YACS::ENGINE::Pool *pool) { return new OptimizerAlgSyncExample(pool); -} \ No newline at end of file +}