diff options
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Address.h')
-rw-r--r-- | runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Address.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Address.h b/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Address.h index 792ad6dfe..1a9702c0d 100644 --- a/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Address.h +++ b/runtime/org.eclipse.etrice.runtime.cpp/src/common/messaging/Address.h @@ -14,8 +14,11 @@ class Address { public:
Address(int nodeID,int threadID, int objectID)
: m_nodeID(nodeID), m_threadID(threadID), m_objectID(objectID) {};
+ Address(const Address & right)
+ : m_nodeID(right.m_nodeID), m_threadID(right.m_threadID), m_objectID(right.m_objectID){};
~Address();
+ bool isValid() const { return (m_nodeID != 0) && (m_threadID != 0) && (m_objectID != 0);};
int m_nodeID;
int m_threadID;
int m_objectID;
|