diff options
Diffstat (limited to 'src/messageId.hpp')
-rw-r--r-- | src/messageId.hpp | 49 |
1 files changed, 40 insertions, 9 deletions
diff --git a/src/messageId.hpp b/src/messageId.hpp index e280dfaf..85b9fd2f 100644 --- a/src/messageId.hpp +++ b/src/messageId.hpp @@ -43,24 +43,55 @@ public: public: - const string& left() const { return (m_left); } - string& left() { return (m_left); } + /** Return the left part of the message identifier. + * + * @return left part of message identifier + */ + const string& getLeft() const; + + /** Set the left part of the message identifier. + * + * @param left left part of message identifier + */ + void setLeft(const string& left); + + /** Return the right part of the message identifier. + * + * @return right part of message identifier + */ + const string& getRight() const; + + /** Set the right part of the message identifier. + * + * @param right right part of message identifier + */ + void setRight(const string& right); - const string& right() const { return (m_right); } - string& right() { return (m_right); } -public: - - messageId& operator=(const messageId& source); messageId& operator=(const string& id); const bool operator==(const messageId& mid) const; + const bool operator!=(const messageId& mid) const; + /** Generate a random message identifier. + * + * @return randomly created message identifier + */ static messageId generateId(); - const string id() const; + /** Return the message identifier constructed by using + * the right part and the left part, separated by + * a '@' character. + * + * @return full message identifier + */ + const string getId() const; + + messageId* clone() const; + void copyFrom(const component& other); + messageId& operator=(const messageId& other); -protected: +private: string m_left; string m_right; |