]> Creatis software - gdcm.git/blob - src/gdcmValEntry.h
132fe262a5cf231976cb91762d9d74e18da6d48b
[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
22    gdcmValEntry(void); 
23    ~gdcmValEntry(void);
24
25    /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
26    /// 'string', if it's stored as an integer in the Dicom Header of the
27    /// current Dicom Header Entry
28    inline std::string  GetValue(void)     { return value; };
29     
30    /// Sets the value (string) of the current Dicom Header Entry
31    inline void SetValue(std::string val)  { value = val;  };
32          
33 protected:
34
35 private:
36
37 // Variables
38   
39    /// \brief Header Entry value, stores as a std::string (VR will be used,
40    /// later, to decode)
41    std::string  value;
42
43
44
45
46
47
48
49 };
50
51 //-----------------------------------------------------------------------------
52 #endif
53