Program: gdcm
Module: $RCSfile: gdcmDocEntry.h,v $
Language: C++
- Date: $Date: 2004/09/03 20:27:44 $
- Version: $Revision: 1.19 $
+ Date: $Date: 2004/10/08 04:52:55 $
+ Version: $Revision: 1.24 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
+ http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#ifndef GDCMDOCENTRY_H
#define GDCMDOCENTRY_H
-#include <iostream>
-#include <stdio.h>
-
#include "gdcmDictEntry.h"
+#include <iostream>
class gdcmHeader;
class gdcmValEntry;
{
public:
gdcmDocEntry(gdcmDictEntry*);
+ virtual ~gdcmDocEntry() {};
/// Returns the Dicom Group number of the current Dicom Header Entry
uint16_t GetGroup() { return DictEntry->GetGroup(); };
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
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);
/// 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;
};
//-----------------------------------------------------------------------------