1 /*=========================================================================
4 Module: $RCSfile: gdcmValEntry.h,v $
6 Date: $Date: 2005/02/02 16:18:49 $
7 Version: $Revision: 1.39 $
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 //-----------------------------------------------------------------------------
31 * \brief Any Dicom Document (File or DicomDir) contains
32 * a set of DocEntry - Dicom entries -
33 * ValEntry is an elementary DocEntry (i.e. a ContentEntry,
34 * as opposed to SeqEntry)
35 * whose content is 'std::string representable' : characters,
36 * or integers (loaded in memory as a std::string)
37 * ValEntry is a specialisation of ContentEntry
39 class GDCM_EXPORT ValEntry : public ContentEntry
43 // Contructors and Destructor are public.
44 ValEntry(DictEntry *e);
45 ValEntry(DocEntry *d);
49 // Other accessors are inherited from gdcm::ContentEntry
51 void Print(std::ostream &os = std::cout,std::string const & indent = "");
53 void WriteContent(std::ofstream *fp, FileType filetype);
55 /// Sets the value (string) of the current Dicom entry.
56 /// The size is updated
57 void SetValue(std::string const &val);
65 } // end namespace gdcm
67 //-----------------------------------------------------------------------------