]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/Test/ToyNode.hxx
Salome HOME
[EDF30875] : mistype leading to a non activation of squeeze mode
[modules/yacs.git] / src / engine / Test / ToyNode.hxx
index 3692f08e4943570d45a80b0cb12b46f0b3d11478..16f66dacbc1a7152969d3c3d8b5a57d4814314e7 100644 (file)
@@ -1,3 +1,22 @@
+// Copyright (C) 2006-2024  CEA, EDF
+//
+// 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
+//
+
 #ifndef __TOYNODE_HXX__
 #define __TOYNODE_HXX__
 
@@ -16,10 +35,11 @@ namespace YACS
     public:
       InputToyPort(const InputToyPort& other, Node *newHelder);
       InputToyPort(const std::string& name, Node *node);
-      void put(const void *data) throw(ConversionException);
+      void releaseData() override;
+      void put(const void *data);
       InputPort *clone(Node *newHelder) const;
       bool edIsManuallyInitialized() const;
-      void *get() const throw(Exception);
+      void *get() const ;
       void edRemoveManInit();
       void put(Any *data);
       ~InputToyPort();
@@ -36,7 +56,7 @@ namespace YACS
     public:
       OutputToyPort(const std::string& name, Node *node, TypeCode *type);
       OutputToyPort(const OutputToyPort& other, Node *newHelder);
-      void put(const void *data) throw(ConversionException);
+      void put(const void *data);
       OutputPort *clone(Node *newHelder) const;
       void put(Any *data);
       ~OutputToyPort();
@@ -57,7 +77,7 @@ namespace YACS
       OutputPort *edGetNbOfInputsOutputPort() { return &_nbOfInputsPort; }
       std::list<OutputPort *> getSetOfOutputPort() const;
       int getNumberOfOutputPorts()const;
-      OutputPort *getOutputPort(const std::string& name) const throw(Exception);
+      OutputPort *getOutputPort(const std::string& name) const ;
     protected:
       Node *simpleClone(ComposedNode *father, bool editionOnly) const;
     public:
@@ -106,10 +126,10 @@ namespace YACS
       InputPort *edGetInIntValue() const { return (InputPort *)&_inIntValue; }
       int getNumberOfInputPorts() const;
       std::list<InputPort *> getSetOfInputPort() const;
-      InputPort *getInputPort(const std::string& name) const throw(Exception);
+      InputPort *getInputPort(const std::string& name) const ;
       int getNumberOfOutputPorts() const;
       std::list<OutputPort *> getSetOfOutputPort() const;
-      OutputPort *getOutputPort(const std::string& name) const throw(Exception);
+      OutputPort *getOutputPort(const std::string& name) const ;
     protected:
       Node *simpleClone(ComposedNode *father, bool editionOnly) const;
     public:
@@ -132,10 +152,10 @@ namespace YACS
       InputPort *edGetInValue2() const { return (InputPort *)&_inValue2; }
       int getNumberOfInputPorts() const;
       std::list<InputPort *> getSetOfInputPort() const;
-      InputPort *getInputPort(const std::string& name) const throw(Exception);
+      InputPort *getInputPort(const std::string& name) const ;
       int getNumberOfOutputPorts() const;
       std::list<OutputPort *> getSetOfOutputPort() const;
-      OutputPort *getOutputPort(const std::string& name) const throw(Exception);
+      OutputPort *getOutputPort(const std::string& name) const ;
     protected:
       Node *simpleClone(ComposedNode *father, bool editionOnly) const;
     public:
@@ -159,10 +179,10 @@ namespace YACS
       InputPort *edGetInValue2() const { return (InputPort *)&_inValue2; }
       int getNumberOfInputPorts() const;
       std::list<InputPort *> getSetOfInputPort() const;
-      InputPort *getInputPort(const std::string& name) const throw(Exception);
+      InputPort *getInputPort(const std::string& name) const ;
       int getNumberOfOutputPorts() const;
       std::list<OutputPort *> getSetOfOutputPort() const;
-      OutputPort *getOutputPort(const std::string& name) const throw(Exception);
+      OutputPort *getOutputPort(const std::string& name) const ;
     protected:
       Node *simpleClone(ComposedNode *father, bool editionOnly) const;
     public:
@@ -177,11 +197,12 @@ namespace YACS
     {
       friend class LimitNode;
     public:
-      void put(const void *data) throw(ConversionException);
+      void put(const void *data);
       InputPort *clone(Node *newHelder) const;
       bool edIsManuallyInitialized() const;
-      void *get() const throw(Exception);
+      void *get() const ;
       void edRemoveManInit();
+      void releaseData() override;
       void put(Any *data);
       ~InputLimitPort();
       Any *getAny() { return _data; }
@@ -199,7 +220,7 @@ namespace YACS
     {
       friend class LimitNode;
     public:
-      void put(const void *data) throw(ConversionException);
+      void put(const void *data);
       OutputPort *clone(Node *newHelder) const;
       void put(Any *data);
       ~OutputLimitPort();
@@ -228,8 +249,8 @@ namespace YACS
       OutputPort *getCounterPort() { return &_counterPort; }
       std::list<InputPort *> getSetOfInputPort() const;
       std::list<OutputPort *> getSetOfOutputPort() const;
-      InputPort *getInputPort(const std::string& name) const throw(Exception);
-      OutputPort *getOutputPort(const std::string& name) const throw(Exception);
+      InputPort *getInputPort(const std::string& name) const ;
+      OutputPort *getOutputPort(const std::string& name) const ;
       LimitNode(const LimitNode& other, ComposedNode *father);
       LimitNode(const std::string& name);
     protected: