]> Creatis software - gdcm.git/blobdiff - src/gdcmSeqEntry.h
STYLE: No DOS file, please
[gdcm.git] / src / gdcmSeqEntry.h
index 61c7d8b6b1ac4b6f16157f5d008be357efb267ee..29381b401d1f033a60bba83867e55338b3b0f4f2 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSeqEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/08/26 15:29:53 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2004/09/16 19:21:57 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -31,7 +31,7 @@ typedef std::list<gdcmSQItem *> ListSQItem;
 class GDCM_EXPORT gdcmSeqEntry : public gdcmDocEntry 
 {
 public:
-   gdcmSeqEntry(gdcmDictEntry* e, int depth);
+   gdcmSeqEntry( gdcmDictEntry* );
    gdcmSeqEntry(gdcmDocEntry* d,  int depth);
    virtual ~gdcmSeqEntry();
    
@@ -50,8 +50,11 @@ public:
    void AddEntry(gdcmSQItem *it, int itemNumber);
    gdcmSQItem *GetSQItemByOrdinalNumber(int itemNumber);
 
-   void SetDepthLevel(int depth);
-         
+   /// Gets the depth level
+   int GetDepthLevel() { return SQDepthLevel; }
+                                                                                
+   /// Sets the depth level of a Sequence Entry embedded in a SeQuence
+   void SetDepthLevel(int depth) { SQDepthLevel = depth; }
 protected:
 
 private:
@@ -65,6 +68,12 @@ private:
    
    /// sequence terminator item 
    gdcmDocEntry *seq_term;
+
+   /// \brief Defines the depth level of this \ref gdcmSeqEntry inside
+   ///        the (optionaly) nested sequences. \ref SQDepthLevel
+   ///        and its \ref gdcmSQItem::SQDepthLevel counterpart
+   ///        are only defined on printing purposes (see \ref Print).
+   int SQDepthLevel;
 };
 
 //-----------------------------------------------------------------------------