1 /*=========================================================================
4 Module: $RCSfile: gdcmValEntry.h,v $
6 Date: $Date: 2004/06/21 12:38:29 $
7 Version: $Revision: 1.12 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMValEntry_H
20 #define GDCMValEntry_H
25 #include "gdcmDocEntry.h"
27 //-----------------------------------------------------------------------------
29 * \ingroup gdcmValEntry
30 * \brief The dicom header of a Dicom file contains a set of such entries
31 * (when successfuly parsed against a given Dicom dictionary)
33 class GDCM_EXPORT gdcmValEntry : public gdcmDocEntry {
37 gdcmValEntry(gdcmDictEntry* e);
38 gdcmValEntry(gdcmDocEntry* d);
39 virtual ~gdcmValEntry();
41 /// \brief Returns the 'Value' (e.g. "Dupond Marcel") converted into a
42 /// 'string', if it's stored as an integer in the header of the
43 /// current Dicom Document Entry
44 inline std::string GetValue(void) { return value; };
46 /// Sets the value (string) of the current Dicom Document Entry
47 inline void SetValue(std::string val) { value = val; };
49 virtual void Print(std::ostream &os = std::cout);
53 /// \brief for 'non string' values. Will be move to gdcmBinEntry, later
54 void* voidArea; // clean it out later
60 /// \brief Document Entry value, internaly represented as a std::string
61 /// The Value Representation (\ref gdcmVR) is indenpendently used
62 /// in order to interpret (decode) this field.
67 //-----------------------------------------------------------------------------