]> Creatis software - gdcm.git/blob - src/gdcmSeqEntry.h
Taking into account the 'Dicom Sequences' leads up to introduce new concepts
[gdcm.git] / src / gdcmSeqEntry.h
1 // gdcmSeqEntry.h
2
3 #ifndef GDCMSQDOCENTRY_H
4 #define GDCMSQDOCENTRY_H
5
6 //-----------------------------------------------------------------------------
7 typedef std::list<gdcmSQItem *> ListSQItem;
8 //-----------------------------------------------------------------------------
9
10 class GDCM_EXPORT gdcmSeqEntry : public gdcmDocEntry 
11 {
12 public:
13    gdcmSeqEntry(void);
14    ~gdcmSeqEntry(void);
15    
16    virtual void Print(std::ostream &os = std::cout); 
17
18  /// \brief   returns the SQITEM chained List for this SeQuence.
19    inline ListSQItem &GetSQItems() 
20       {return items;};
21
22  /// \brief   adds the passed ITEM to the ITEM chained List for this SeQuence.      
23    inline void AddSQItem(gdcmSQItem *it) 
24       {items.push_back(it);};   
25
26  /// \brief   creates a new SQITEM for this SeQuence.
27     gdcmSQItem * NewItem(void);
28       
29 protected:
30
31 private:
32
33 // Variables
34
35 /// \brief chained list of SQ Items
36    ListSQItem items;
37
38 };
39
40
41 //-----------------------------------------------------------------------------
42 #endif
43