]> Creatis software - gdcm.git/blob - src/gdcmElementSet.h
* In order to fix writing of dicom files:
[gdcm.git] / src / gdcmElementSet.h
1 // gdcmElementSet.h
2
3 #ifndef GDCMELEMENTSET_H
4 #define GDCMELEMENTSET_H
5
6 #include <map>
7 #include <iostream>
8 #include "gdcmCommon.h"
9 #include "gdcmDocEntrySet.h"
10
11 typedef std::map<TagKey, gdcmDocEntry *> TagDocEntryHT;
12
13 //-----------------------------------------------------------------------------
14
15 class GDCM_EXPORT gdcmElementSet : public gdcmDocEntrySet
16 {
17 public:
18    gdcmElementSet(int);
19    ~gdcmElementSet(void);
20    virtual bool AddEntry(gdcmDocEntry *Entry);
21    virtual bool RemoveEntry(gdcmDocEntry *EntryToRemove);
22
23    virtual void Print(std::ostream &os = std::cout); 
24     
25 protected:
26 // Variables
27    /// Hash Table (map), to provide fast access
28    TagDocEntryHT tagHT; 
29      
30 private:
31    
32 };
33
34 //-----------------------------------------------------------------------------
35 #endif
36