1 /*=========================================================================
4 Module: $RCSfile: gdcmValEntry.h,v $
6 Date: $Date: 2005/01/25 15:21:20 $
7 Version: $Revision: 1.38 $
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.html 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
22 #include "gdcmDocEntry.h"
23 #include "gdcmContentEntry.h"
29 //-----------------------------------------------------------------------------
32 * \brief Any Dicom Document (File or DicomDir) contains
33 * a set of DocEntry - Dicom entries -
34 * ValEntry is an elementary DocEntry (i.e. a ContentEntry,
35 * as opposed to SeqEntry)
36 * whose content is 'std::string representable' : characters,
37 * or integers (loaded in memory as a std::string)
38 * ValEntry is a specialisation of ContentEntry
41 class GDCM_EXPORT ValEntry : public ContentEntry
45 // Contructors and Destructor are public.
46 ValEntry(DictEntry *e);
47 ValEntry(DocEntry *d);
51 // Other accessors are inherited from gdcm::ContentEntry
53 void Print(std::ostream &os = std::cout,
54 std::string const & indent = "");
56 void WriteContent(std::ofstream *fp, FileType filetype);
58 /// Sets the value (string) of the current Dicom entry.
59 /// The size is updated
60 void SetValue(std::string const &val);
68 } // end namespace gdcm
70 //-----------------------------------------------------------------------------