X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.h;h=89a85c0c704cff8a5490dc9b5d85eb1e90f833cf;hb=575572bc10483ad3116ad7fb73197fa2c3f2ee34;hp=1d8c8a8da13f20c7809e94690adb73da46be4887;hpb=1fecdc6dcc36f951de19246bd14ef282b3dec13a;p=gdcm.git diff --git a/src/gdcmDictEntry.h b/src/gdcmDictEntry.h index 1d8c8a8d..89a85c0c 100644 --- a/src/gdcmDictEntry.h +++ b/src/gdcmDictEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictEntry.h,v $ Language: C++ - Date: $Date: 2005/01/07 12:29:17 $ - Version: $Revision: 1.25 $ + Date: $Date: 2005/01/13 16:35:37 $ + Version: $Revision: 1.29 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,15 +25,17 @@ namespace gdcm { //----------------------------------------------------------------------------- -/* - * \defgroup DictEntry +/** + * \ingroup DictEntry * \brief * the DictEntry in an element contained by the Dict. * It contains : * - the key referenced by the DICOM norm or the constructor (for private keys) - * - the corresponding name in english (it's equivalent to a label) - * - the owner group - * - etc. + * i.e. the Group number + * the Element number + * - the VR (Value Representation) + * - the VM (Value Multplicity) + * - the corresponding name in english */ class GDCM_EXPORT DictEntry : public Base { @@ -44,14 +46,24 @@ public: TagName const &vm = GDCM_UNKNOWN, TagName const &name = GDCM_UNKNOWN); +// Print + void Print(std::ostream &os = std::cout); + +// Key creation static TagKey TranslateToKey(uint16_t group, uint16_t element); +// Content of DictEntry void SetVR(TagName const &vr); + void SetVM(TagName const &vm); /// \brief tells if the V(alue) R(epresentation) is known (?!) /// @return bool IsVRUnknown() { return VR == GDCM_UNKNOWN; } + /// \brief tells if the V(alue) M(ultiplicity) is known (?!) + /// @return + bool IsVMUnknown() { return VM == GDCM_UNKNOWN; } + /// \brief Returns the Dicom Group Number of the current DictEntry /// @return the Dicom Group Number uint16_t GetGroup() { return Group; }