]> Creatis software - gdcm.git/blob - src/gdcmValEntry.h
ENH: testDicomDir -> TestDicomDir
[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 protected:
33
34 private:
35
36 // Variables
37   
38    /// \brief Header Entry value, stored as a std::string (VR will be used,
39    /// later, to decode)
40    std::string  value;
41
42
43 };
44
45 //-----------------------------------------------------------------------------
46 #endif
47