Salome HOME
Useful access method to available resources
[modules/yacs.git] / src / engine / Test / PluginOptEvTest1.cxx
index 70094da3bdcd93e177df14876d3616735aac39ab..dbae1d82131d8d9eca9d517175f37eb7f4572d4a 100644 (file)
@@ -1,3 +1,22 @@
+// Copyright (C) 2006-2016  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 "PluginOptEvTest1.hxx"
 #include "TypeCode.hxx"
 #include "Pool.hxx"
@@ -28,6 +47,16 @@ TypeCode *PluginOptEvTest1::getTCForOut() const
   return _tcOut;
 }
 
+TypeCode *PluginOptEvTest1::getTCForAlgoResult() const
+{
+  return _tcIn;
+}
+
+Any * PluginOptEvTest1::getAlgoResult()
+{
+  return AtomAny::New(45.6);
+}
+
 void PluginOptEvTest1::parseFileToInit(const std::string& fileName)
 {
 }
@@ -70,7 +99,7 @@ void PluginOptEvTest1::takeDecision()
   _idTest++;
 }
 
-void PluginOptEvTest1::initialize(const Any *input) throw (Exception)
+void PluginOptEvTest1::initialize(const Any *input) throw(YACS::Exception)
 {
 }