X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmTagKey.h;h=2d32f44359ac69c41166b06d91415d1c45372d70;hb=e9a711266d34e33b482edbe241b2e40db7d9915a;hp=e6bd2857cf5d6187f9a94338dd01932843b9706c;hpb=c1eeaee978210a66d85393af6451d6621a3f6de1;p=gdcm.git diff --git a/src/gdcmTagKey.h b/src/gdcmTagKey.h index e6bd2857..2d32f443 100644 --- a/src/gdcmTagKey.h +++ b/src/gdcmTagKey.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmTagKey.h,v $ Language: C++ - Date: $Date: 2005/11/04 15:26:53 $ - Version: $Revision: 1.8 $ + Date: $Date: 2005/11/08 09:35:44 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -45,10 +45,10 @@ public : } void SetGroup(uint16_t group) { tag[0] = group; } - uint16_t GetGroup() { return tag[0]; } const + uint16_t GetGroup() const { return tag[0]; } void SetElement(uint16_t elem) { tag[1] = elem; } - uint16_t GetElement() { return tag[1]; } const + uint16_t GetElement() const { return tag[1]; } TagKey &operator=(const TagKey &_val) { @@ -58,10 +58,10 @@ public : } TagKey(const TagKey &_val) - { + { tag[0] = _val[0]; tag[1] = _val[1]; - } + } const uint16_t &operator[](const unsigned int &_id) const {