14#ifndef GDCMDICTENTRY_H
15#define GDCMDICTENTRY_H
39 DictEntry(
const char *name =
"",
const char *keyword =
"",
VR const &vr = VR::INVALID,
VM const &vm = VM::VM0,
bool ret =
false):
42 ValueRepresentation(vr),
43 ValueMultiplicity(vm),
53 const VR &
GetVR()
const {
return ValueRepresentation; }
54 void SetVR(
const VR & vr) { ValueRepresentation = vr; }
59 const VM &
GetVM()
const {
return ValueMultiplicity; }
60 void SetVM(
VM const & vm) { ValueMultiplicity = vm; }
63 const char *
GetName()
const {
return Name.c_str(); }
64 void SetName(
const char* name) { Name = name; }
67 const char *
GetKeyword()
const {
return Keyword.c_str(); }
68 void SetKeyword(
const char* keyword) { Keyword = keyword; }
84 bool IsUnique()
const {
return ElementXX ==
false && GroupXX ==
false; }
89 static bool CheckKeywordAgainstName(
const char *name,
const char *keyword);
94 VR ValueRepresentation;
105 PrivateDictEntry(
const char *name =
"",
VR::VRType const &vr = VR::INVALID,
VM::VMType const &vm = VM::VM0 ,
bool ret =
false,
const char *owner =
""):
DictEntry(name,vr,vm,ret),Owner(owner) {}
106 PrivateDictEntry(
const char *name,
const char *vr,
const char *vm):DictEntry(name,vr,vm) {}
108 const char *GetOwner()
const {
return Owner.c_str(); }
109 void SetOwner(
const char *owner) { Owner = owner; }
120 if( val.Name.empty() )
128 if( val.Keyword.empty() )
130 os <<
"[No keyword]";
136 os <<
"\t" << val.ValueRepresentation <<
"\t" << val.ValueMultiplicity;
Class to represent an Entry in the Dict.
Definition gdcmDictEntry.h:37
void SetName(const char *name)
Definition gdcmDictEntry.h:64
void SetVR(const VR &vr)
Definition gdcmDictEntry.h:54
const char * GetKeyword() const
same as GetName but without spaces...
Definition gdcmDictEntry.h:67
void SetElementXX(bool v)
Set whether element is shared in multiple elements (Source Image IDs typically)
Definition gdcmDictEntry.h:80
const VR & GetVR() const
Set/Get VR.
Definition gdcmDictEntry.h:53
void SetKeyword(const char *keyword)
Definition gdcmDictEntry.h:68
void SetRetired(bool retired)
Definition gdcmDictEntry.h:72
bool GetRetired() const
Set/Get Retired flag.
Definition gdcmDictEntry.h:71
void SetVM(VM const &vm)
Definition gdcmDictEntry.h:60
bool IsUnique() const
Definition gdcmDictEntry.h:84
const char * GetName() const
Set/Get Name.
Definition gdcmDictEntry.h:63
DictEntry(const char *name="", const char *keyword="", VR const &vr=VR::INVALID, VM const &vm=VM::VM0, bool ret=false)
Definition gdcmDictEntry.h:39
void SetGroupXX(bool v)
Set whether element is shared in multiple groups (Curve/Overlay typically)
Definition gdcmDictEntry.h:76
const VM & GetVM() const
Set/Get VM.
Definition gdcmDictEntry.h:59
Class to represent a map of DictEntry.
Definition gdcmDict.h:45
Value Multiplicity Looking at the DICOMV3 dict only there is very few cases: 1 2 3 4 5 6 8 16 24 1-2 ...
Definition gdcmVM.h:68
VMType
Definition gdcmVM.h:70
VR class.
Definition gdcmVR.h:55
VRType
Definition gdcmVR.h:57
#define GDCM_EXPORT
Definition gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88