]> Creatis software - gdcm.git/blob - src/gdcmValEntry.h
PLEASE : keep on waiting for the final version !
[gdcm.git] / src / gdcmValEntry.h
1 // gdcmValEntry.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMValEntry_H
4 #define GDCMValEntry_H
5
6 #include <iostream>
7 #include <stdio.h>
8
9 #include "gdcmDocEntry.h"
10 //-----------------------------------------------------------------------------
11 /**
12  * \ingroup gdcmBinEntry
13  * \brief   The dicom header of a Dicom file contains a set of such entries
14  *          (when successfuly parsed against a given Dicom dictionary)
15  *          This one contains a 'non string' value
16  */
17 class GDCM_EXPORT gdcmValEntry  : public gdcmDocEntry {
18
19 public:
20
21    gdcmValEntry(gdcmDictEntry* e); 
22    ~gdcmValEntry(void);
23
24    /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
25    /// 'string', if it's stored as an integer in the Dicom Header of the
26    /// current Dicom Header Entry
27    inline std::string  GetValue(void)     { return value; };
28     
29    /// Sets the value (string) of the current Dicom Header Entry
30    inline void SetValue(std::string val)  { value = val;  };
31    
32    virtual void Print(std::ostream &os = std::cout); 
33            
34 protected:
35
36    char* voidArea;  // clean it out later
37    
38 private:
39
40 // Variables
41   
42    /// \brief Header Entry value, stored as a std::string (VR will be used,
43    /// later, to decode)
44    
45    std::string  value;
46    
47
48
49
50 };
51
52 //-----------------------------------------------------------------------------
53 #endif
54