From a876eba8716a4152e7f850c7838dfb51ca62da71 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 13 Jul 2016 11:30:28 +0200 Subject: [PATCH] outputports now hold qoi attribute --- src/evalyfx/YACSEvalPort.cxx | 2 +- src/evalyfx/YACSEvalPort.hxx | 3 +++ src/evalyfx_swig/evalyfx.i | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/evalyfx/YACSEvalPort.cxx b/src/evalyfx/YACSEvalPort.cxx index 0a02e049e..9dce3ae6b 100644 --- a/src/evalyfx/YACSEvalPort.cxx +++ b/src/evalyfx/YACSEvalPort.cxx @@ -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); } diff --git a/src/evalyfx/YACSEvalPort.hxx b/src/evalyfx/YACSEvalPort.hxx index a9f778065..39f8c71ed 100644 --- a/src/evalyfx/YACSEvalPort.hxx +++ b/src/evalyfx/YACSEvalPort.hxx @@ -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 diff --git a/src/evalyfx_swig/evalyfx.i b/src/evalyfx_swig/evalyfx.i index 3297d0bc5..1527d9932 100644 --- a/src/evalyfx_swig/evalyfx.i +++ b/src/evalyfx_swig/evalyfx.i @@ -297,6 +297,8 @@ class YACSEvalOutputPort : public YACSEvalPort { public: std::string getName() const; + bool setQOfInterestStatus(bool newStatus); + bool isQOfInterest() const; private: YACSEvalOutputPort(); }; -- 2.30.2