]> Creatis software - gdcm.git/blobdiff - src/gdcmTagKey.h
* Remove missed FASTTAGKEY (due to the integration of the
[gdcm.git] / src / gdcmTagKey.h
index 01b35d2b0276d9bfb8e3c53a54dcefa0a31085d1..a498b72a763805b1899b2ba34107f2c0124d1672 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmTagKey.h,v $
   Language:  C++
-  Date:      $Date: 2005/10/19 13:17:05 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2005/10/20 09:23:24 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,6 +36,13 @@ public :
 
    friend std::ostream& operator<<(std::ostream& _os, const TagKey &_val);
 
+   inline std::string str() const
+   {
+      char res[10];
+      sprintf(res,"%04x|%04x",tag[0],tag[1]);
+      return std::string(res);
+   }
+
    inline void SetGroup(const uint16_t &val) { tag[0] = val; }
    inline const uint16_t &GetGroup(void) { return tag[0]; }