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/16 04:50:41 $
+ Version: $Revision: 1.30 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
//-----------------------------------------------------------------------------
-/*
- * \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
{
TagName const &vm = GDCM_UNKNOWN,
TagName const &name = GDCM_UNKNOWN);
+// Print
+ void Print(std::ostream &os = std::cout, std::string const &indent = "");
+
+// 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; }