Salome HOME
outputports now hold qoi attribute
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 13 Jul 2016 09:30:28 +0000 (11:30 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 13 Jul 2016 09:30:28 +0000 (11:30 +0200)
src/evalyfx/YACSEvalPort.cxx
src/evalyfx/YACSEvalPort.hxx
src/evalyfx_swig/evalyfx.i

index 0a02e049ed02235cf40ff8ca0aed6f5262fd2991..9dce3ae6bf09767f9dd4b6e982dcfc1d358d900c 100644 (file)
@@ -338,7 +338,7 @@ void YACSEvalInputPort::checkForNonConstMethod() const
     throw YACS::Exception("YACSEvalInputPort::checkForNonConstMethod : trying to modify a locked input ! To release it call unlockAll on YACSEvalYFX instance owning this !");
 }
 
-YACSEvalOutputPort::YACSEvalOutputPort(YACS::ENGINE::OutputPort *ptr):_ptr(ptr)
+YACSEvalOutputPort::YACSEvalOutputPort(YACS::ENGINE::OutputPort *ptr):_ptr(ptr),_isQOfInt(false)
 {
   GetTypeOfData(_ptr);
 }
index a9f7780654c33ab1b534069b6e8434157aa6767a..39f8c71edbef9cc7cb8b6fcfe45ba43cd196847b 100644 (file)
@@ -132,11 +132,14 @@ public:
   YACSEVALYFX_EXPORT YACSEvalOutputPort(YACS::ENGINE::OutputPort *ptr);
   YACSEVALYFX_EXPORT std::string getName() const;
   YACSEVALYFX_EXPORT std::string getTypeOfData() const;
+  YACSEVALYFX_EXPORT bool setQOfInterestStatus(bool newStatus) { _isQOfInt=newStatus; }
+  YACSEVALYFX_EXPORT bool isQOfInterest() const { return _isQOfInt; }
   //
   YACSEVALYFX_EXPORT YACS::ENGINE::OutputPort *getUndergroundPtr() const { return _ptr; }
   //
 private:
   YACS::ENGINE::OutputPort * _ptr;
+  bool _isQOfInt;
 };
 
 #endif
index 3297d0bc524b7bc1580246ab1b55ec2a5b36c85d..1527d9932b10d455ff4fc431da362f0466fdaff7 100644 (file)
@@ -297,6 +297,8 @@ class YACSEvalOutputPort : public YACSEvalPort
 {
 public:
   std::string getName() const;
+  bool setQOfInterestStatus(bool newStatus);
+  bool isQOfInterest() const;
 private:
   YACSEvalOutputPort();
 };