Program: gdcm
Module: $RCSfile: gdcmDicomEntry.h,v $
Language: C++
- Date: $Date: 2005/10/23 15:32:30 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2007/08/22 16:14:03 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
=========================================================================*/
-#ifndef GDCMDICOMENTRY_H
-#define GDCMDICOMENTRY_H
+#ifndef _GDCMDICOMENTRY_H_
+#define _GDCMDICOMENTRY_H_
#include "gdcmCommon.h"
#include "gdcmRefCounter.h"
#include "gdcmVRKey.h"
#include "gdcmTagKey.h"
-namespace gdcm
+namespace GDCM_NAME_SPACE
{
//-----------------------------------------------------------------------------
/**
/// @return the Dicom Element Number
const uint16_t &GetElement() const { return Tag[1]; }
+ /// \brief Returns the Dicom Tag Key
+ /// @return the Dicom Tag Key
+ const TagKey &GetKey() const { return Tag; }
+
/// \brief Set the Dicom Value Representation
/// \param vr the Dicom Value Representation
virtual void SetVR(VRKey const &vr) { VR = vr; }
const TagKey &GetKey() const { return Tag; }
// Key creation
- static TagKey TranslateToKey(uint16_t group, uint16_t elem);
+ static TagKey TranslateToKey(uint16_t group, uint16_t elem)
+ { return TagKey(group,elem); }
protected:
DicomEntry(const uint16_t &group,const uint16_t &elt,