X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntry.h;h=7253dcb012d7d8c852ccce0e868b1c68b38c7c44;hb=293b091c68447d30c8bda413cff1d6d76d9326a4;hp=d0b259ed6dc5c6f3a3ca7a7f9069c39b3c7ecdba;hpb=912de5d1cc942f7386c83d32c5d847ef5bb2bf17;p=gdcm.git diff --git a/src/gdcmDocEntry.h b/src/gdcmDocEntry.h index d0b259ed..7253dcb0 100644 --- a/src/gdcmDocEntry.h +++ b/src/gdcmDocEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.h,v $ Language: C++ - Date: $Date: 2004/09/03 07:57:10 $ - Version: $Revision: 1.18 $ + Date: $Date: 2004/09/15 03:50:48 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,8 +16,8 @@ =========================================================================*/ -#ifndef GDCMDocEntry_H -#define GDCMDocEntry_H +#ifndef GDCMDOCENTRY_H +#define GDCMDOCENTRY_H #include #include @@ -39,6 +39,7 @@ class GDCM_EXPORT gdcmDocEntry { public: gdcmDocEntry(gdcmDictEntry*); + virtual ~gdcmDocEntry() {}; /// Returns the Dicom Group number of the current Dicom Header Entry uint16_t GetGroup() { return DictEntry->GetGroup(); }; @@ -47,7 +48,10 @@ public: uint16_t GetElement() { return DictEntry->GetElement();}; /// Returns the 'key' of the current Dicom Header Entry - std::string GetKey() { return DictEntry->GetKey(); }; + void SetKey( gdcmTagKey key ) { Key = key; } + + /// Returns the 'key' of the current Dicom Header Entry + std::string GetKey() { return Key; } /// \brief Returns the 'Name' '(e.g. "Patient's Name") found in the Dicom /// Dictionnary of the current Dicom Header Entry @@ -132,14 +136,6 @@ public: bool IsItemDelimitor(); bool IsSequenceDelimitor(); - /// \brief Gets the depth level of a Dicom header entry embedded in - /// a SeQuence - int GetDepthLevel() { return SQDepthLevel; } - - /// \brief Sets the depth level of a Dicom header entry embedded in - /// a SeQuence - void SetDepthLevel(int depth) { SQDepthLevel = depth; } - private: // FIXME: In fact we should be more specific and use : // friend gdcmDocEntry * gdcmHeader::ReadNextElement(void); @@ -170,9 +166,10 @@ protected: /// How many details are to be printed (value : 0,1,2) int PrintLevel; - - /// Gives the depth level of elements inside SeQuences - int SQDepthLevel; + + /// \brief Generalized key (i.e. a gdcmBaseTagKey prepending a gdcmTagKey) + /// of this gdcmDocEntry + gdcmTagKey Key; }; //-----------------------------------------------------------------------------