]> Creatis software - gdcm.git/blobdiff - src/gdcmDocEntrySet.h
* Preparation of writing a gdcmHeader iterator: generalisation of gdcmTagKey
[gdcm.git] / src / gdcmDocEntrySet.h
index 26fd1269a2f10101cb739999c41df4ff795aa95d..982e02862d21f1983e7e7d974d4e9a936d668037 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntrySet.h,v $
   Language:  C++
-  Date:      $Date: 2004/08/26 15:29:52 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2004/09/13 12:10:53 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -22,6 +22,7 @@
 #include "gdcmException.h"
 #include "gdcmDocEntry.h"
  
+typedef std::string gdcmBaseTagKey;
 //-----------------------------------------------------------------------------
 
 class GDCM_EXPORT gdcmDocEntrySet
@@ -48,6 +49,9 @@ public:
    /// SeQuence
    void SetDepthLevel(int depth) { SQDepthLevel = depth; }
 
+   void           SetBaseTagKey( gdcmBaseTagKey key ) { BaseTagKey = key; }
+   gdcmBaseTagKey GetBaseTagKey( ) { return BaseTagKey; }
+
    virtual gdcmDocEntry* GetDocEntryByNumber(uint16_t group,
                                              uint16_t element) = 0;
    gdcmDocEntry *GetDocEntryByName(std::string const & name);
@@ -78,6 +82,10 @@ protected:
 
    /// Gives the depth level of the element set inside SeQuences   
    int SQDepthLevel;
+
+   /// \brief A TagKey of a gdcmDocEntry nested in a sequence is prepended
+   ///        with this BaseTagKey.
+   gdcmBaseTagKey BaseTagKey;
 private:
 };