]> Creatis software - gdcm.git/blob - src/gdcmValEntry.h
Still in a debugging status.
[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 /**
13  * \ingroup gdcmValEntry
14  * \brief   The dicom header of a Dicom file contains a set of such entries
15  *          (when successfuly parsed against a given Dicom dictionary)
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 header of the
26    /// current Dicom Document Entry
27    inline std::string  GetValue(void)     { return value; };
28     
29    /// Sets the value (string) of the current Dicom Document 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    /// \brief for 'non string' values. Will be move to gdcmBinEntry, later
37         char* voidArea;  // clean it out later
38    
39 private:
40
41 // Variables
42   
43    /// \brief Document Entry value, stored as a std::string (VR will be used,
44    /// later, to decode)
45    
46    std::string  value;
47
48 };
49
50 //-----------------------------------------------------------------------------
51 #endif
52