1 /*=========================================================================
4 Module: $RCSfile: gdcmValEntry.h,v $
6 Date: $Date: 2005/03/22 11:39:04 $
7 Version: $Revision: 1.41 $
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);
60 /// \brief returns the size threshold above which an element value
61 /// will NOT be *printed* in order no to polute the screen output
62 static long GetMaxSizePrintEntry() { return ValEntry::MaxSizePrintEntry; };
64 static void SetMaxSizePrintEntry(long);
70 /// \brief Size threshold above which an element val
71 /// By default, this upper bound is fixed to 64 bytes.
73 static uint32_t MaxSizePrintEntry;
77 } // end namespace gdcm
79 //-----------------------------------------------------------------------------