]> Creatis software - gdcm.git/blob - src/gdcmSQItem.h
Taking into account the 'Dicom Sequences' leads up to introduce new concepts
[gdcm.git] / src / gdcmSQItem.h
1 // gdcmSQItem.h
2
3 #ifndef GDCMSQITEM_H
4 #define GDCMSQITEM_H
5
6 //-----------------------------------------------------------------------------
7 typedef std::list<gdcmDocEntry *> ListDocEntry;
8 //-----------------------------------------------------------------------------
9
10 class GDCM_EXPORT gdcmSQItem : public gdcmDocEntrySet 
11 {
12 public:
13    gdcmSQItem(void);
14    ~gdcmSQItem(void);
15
16    virtual void Print(std::ostream &os = std::cout); 
17
18  /// \brief   returns the DocEntry chained List for this SQ Item.
19    inline ListDocEntry &GetDocEntries() 
20       {return docEntries;};   
21    
22  /// \brief   adds the passed DocEntry to the DocEntry chained List for this SQ Item.      
23    inline void AddDocEntry(DocEntry *e) 
24       {docEntries.push_back(e);};         
25             
26 protected:
27
28 private:
29
30
31 // Variables
32
33 /// \brief chained list of (Elementary) Doc Entries
34    ListDocEntry docEntries;
35 };
36
37
38 //-----------------------------------------------------------------------------
39 #endif
40