X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.h;h=07da49a543140d0305a6bb95dc6f4542b742d9ee;hb=5bf4ff55cc9887da061970902eb1effe24ede1b7;hp=6eed4cb1857f04b1ed912e213f3624f3c798152f;hpb=e40fc77cef3155aab87305ce2f8f14d1acbf158f;p=gdcm.git diff --git a/src/gdcmSeqEntry.h b/src/gdcmSeqEntry.h index 6eed4cb1..07da49a5 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/09/27 08:39:07 $ + Version: $Revision: 1.18 $ 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 @@ -31,7 +31,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 +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: @@ -64,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; }; //-----------------------------------------------------------------------------