- inline void SetGroup(const uint16_t &val) { tag[0] = val; }
- inline const uint16_t &GetGroup(void) { return tag[0]; }
-
- inline void SetElement(const uint16_t &val) { tag[1] = val; }
- inline const uint16_t &GetElement(void) { return tag[1]; }
-
- inline TagKey &operator=(const TagKey &_val)
+ std::string str() const
+ {
+ char res[10];
+ sprintf(res,"%04x|%04x",tag[0],tag[1]);
+ return std::string(res);
+ }
+ ///\brief sets the Group Number for the TagKey
+ void SetGroup(uint16_t group) { tag[0] = group; }
+ uint16_t GetGroup() const { return tag[0]; }
+
+ ///\brief sets the Element Number for the TagKey
+ void SetElement(uint16_t elem) { tag[1] = elem; }
+ uint16_t GetElement() const { return tag[1]; }
+
+ ///\brief sets the Group Number and Element Number for the TagKey
+ void SetGroupElem(uint16_t group, uint16_t elem)
+ { tag[0] = group;tag[1] = elem; }
+
+ TagKey &operator=(const TagKey &_val)