X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.h;h=29381b401d1f033a60bba83867e55338b3b0f4f2;hb=89763e8094465640a31f98815a3448e1e7d6ff3f;hp=61c7d8b6b1ac4b6f16157f5d008be357efb267ee;hpb=3fd520b58c8d1939994de2c63cc038c3e7ac9522;p=gdcm.git diff --git a/src/gdcmSeqEntry.h b/src/gdcmSeqEntry.h index 61c7d8b6..29381b40 100644 --- a/src/gdcmSeqEntry.h +++ b/src/gdcmSeqEntry.h @@ -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 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; }; //-----------------------------------------------------------------------------