Salome HOME
[EDF30399] : Expose replay-dir parameter to define directory holding scenarii in...
[modules/yacs.git] / src / engine / Test / ToyNode.hxx
index aac661d72021e2860030ad9602dccdf730eca09a..16f66dacbc1a7152969d3c3d8b5a57d4814314e7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2016  CEA/DEN, EDF R&D
+// 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
@@ -35,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();
@@ -55,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();
@@ -76,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:
@@ -125,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:
@@ -151,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:
@@ -178,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:
@@ -196,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; }
@@ -218,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();
@@ -247,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: