Skip to content
Snippets Groups Projects
Commit 865caee8 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Merge branch 'dev/condHandle' into 'master'

DataHandle: add flag to identify Conditions

See merge request !293
parents 51aa3b13 f4457d6e
No related branches found
No related tags found
1 merge request!293DataHandle: add flag to identify Conditions
Pipeline #
...@@ -36,7 +36,12 @@ public: ...@@ -36,7 +36,12 @@ public:
DataHandle(const DataObjID& k, Mode a=Reader, DataHandle(const DataObjID& k, Mode a=Reader,
IDataHandleHolder* owner=nullptr): IDataHandleHolder* owner=nullptr):
m_key(k), m_owner(owner), m_mode(a){}; m_key(k), m_owner(owner), m_mode(a) {};
DataHandle(const DataObjID& k, const bool& isCond, Mode a=Reader,
IDataHandleHolder* owner=nullptr):
m_key(k), m_owner(owner), m_mode(a), m_isCond(isCond) {};
virtual ~DataHandle() = default; virtual ~DataHandle() = default;
...@@ -57,6 +62,9 @@ public: ...@@ -57,6 +62,9 @@ public:
virtual std::string pythonRepr() const; virtual std::string pythonRepr() const;
virtual bool init() { return true; } virtual bool init() { return true; }
// is this a ConditionHandle?
virtual bool isCondition() const { return m_isCond; }
protected: protected:
/** /**
...@@ -70,6 +78,7 @@ protected: ...@@ -70,6 +78,7 @@ protected:
private: private:
Mode m_mode = Reader; Mode m_mode = Reader;
bool m_isCond = false;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment