X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.h;h=22c67cf0d5f2e239b890ca8345fceaa849347741;hb=879f56a62d0772c95e92d0657882eb1886b4153d;hp=6eed4cb1857f04b1ed912e213f3624f3c798152f;hpb=e40fc77cef3155aab87305ce2f8f14d1acbf158f;p=gdcm.git diff --git a/src/gdcmSeqEntry.h b/src/gdcmSeqEntry.h index 6eed4cb1..22c67cf0 100644 --- a/src/gdcmSeqEntry.h +++ b/src/gdcmSeqEntry.h @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmSeqEntry.h,v $ Language: C++ - Date: $Date: 2004/07/02 13:55:28 $ - Version: $Revision: 1.14 $ + Date: $Date: 2004/10/07 21:05:40 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or - http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -19,10 +19,9 @@ #ifndef GDCMSQDOCENTRY_H #define GDCMSQDOCENTRY_H -#include - #include "gdcmSQItem.h" #include "gdcmDocEntry.h" +#include //----------------------------------------------------------------------------- typedef std::list ListSQItem; @@ -31,7 +30,8 @@ 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(); virtual void Print(std::ostream &os = std::cout); @@ -49,8 +49,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: @@ -64,6 +67,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; }; //-----------------------------------------------------------------------------