1 /*=========================================================================
4 Module: $RCSfile: gdcmSeqEntry.h,v $
6 Date: $Date: 2004/12/03 20:16:58 $
7 Version: $Revision: 1.25 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMSQDOCENTRY_H
20 #define GDCMSQDOCENTRY_H
22 #include "gdcmDocEntry.h"
29 //-----------------------------------------------------------------------------
30 typedef std::list<SQItem *> ListSQItem;
31 //-----------------------------------------------------------------------------
33 class GDCM_EXPORT SeqEntry : public DocEntry
36 SeqEntry( DictEntry* );
37 SeqEntry( DocEntry* d, int depth );
40 void Print(std::ostream &os = std::cout);
41 void WriteContent(std::ofstream *fp, FileType filetype);
43 /// returns the SQITEM chained List for this SeQuence.
44 ListSQItem const & GetSQItems() const { return Items; }
46 /// Sets the delimitor mode
47 void SetDelimitorMode(bool dm) { DelimitorMode = dm; }
49 /// Sets the Sequence Delimitation Item
50 void SetSequenceDelimitationItem(DocEntry * e) { SeqTerm = e;}
52 void AddEntry(SQItem *it, int itemNumber);
53 SQItem *GetSQItemByOrdinalNumber(int itemNumber);
55 /// Gets the depth level
56 int GetDepthLevel() const { return SQDepthLevel; }
58 /// Sets the depth level of a Sequence Entry embedded in a SeQuence
59 void SetDepthLevel(int depth) { SQDepthLevel = depth; }
66 /// If this Sequence is in delimitor mode (length =0xffffffff) or not
69 /// Chained list of SQ Items
72 /// sequence terminator item
75 /// \brief Defines the depth level of this \ref SeqEntry inside
76 /// the (optionaly) nested sequences. \ref SQDepthLevel
77 /// and its \ref SQItem::SQDepthLevel counterpart
78 /// are only defined on printing purposes (see \ref Print).
81 } // end namespace gdcm
82 //-----------------------------------------------------------------------------