3 #ifndef GDCMSQDOCENTRY_H
4 #define GDCMSQDOCENTRY_H
8 #include "gdcmSQItem.h"
9 #include "gdcmDocEntry.h"
11 //-----------------------------------------------------------------------------
12 typedef std::list<gdcmSQItem *> ListSQItem;
13 //-----------------------------------------------------------------------------
15 class GDCM_EXPORT gdcmSeqEntry : public gdcmDocEntry
18 gdcmSeqEntry(gdcmDictEntry* e, int depth);
21 virtual void Print(std::ostream &os = std::cout);
23 /// \brief returns the SQITEM chained List for this SeQuence.
24 inline ListSQItem &GetSQItems()
27 /// \brief Sets the delimitor mode
28 inline void SetDelimitorMode(bool dm)
29 { delimitor_mode = dm;}
31 /// \brief Sets the Sequence Delimitation Item
32 inline void SetSequenceDelimitationItem(gdcmDocEntry * e)
35 void AddEntry(gdcmSQItem *it);
37 /// \brief creates a new SQITEM for this SeQuence.
38 gdcmSQItem * NewItem(void);
40 gdcmDocEntry *NewDocEntryByNumber(guint16 group, guint16 element);
41 gdcmDocEntry *NewDocEntryByName (std::string Name);
42 gdcmDocEntry *GetDocEntryByNumber(guint16 group, guint16 element);
44 void SetDepthLevel(int depth);
52 /// \brief If this Sequence is in delimitor mode (length =0xffffffff) or not
55 /// \brief chained list of SQ Items
58 /// \brief sequence terminator item
59 gdcmDocEntry *seq_term;
66 //-----------------------------------------------------------------------------