14 #ifndef GDCMDICTENTRY_H
15 #define GDCMDICTENTRY_H
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;
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;
146 #endif //GDCMDICTENTRY_H
const char * GetName() const
Set/Get Name.
Definition: gdcmDictEntry.h:63
VRType
Definition: gdcmVR.h:57
void SetKeyword(const char *keyword)
Definition: gdcmDictEntry.h:68
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
const char * GetKeyword() const
same as GetName but without spaces...
Definition: gdcmDictEntry.h:67
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:88
void SetGroupXX(bool v)
Set whether element is shared in multiple groups (Curve/Overlay typically)
Definition: gdcmDictEntry.h:76
Class to represent an Entry in the Dict Does not really exist within the DICOM definition, just a way to minimize storage and have a mapping from gdcm::Tag to the needed information.
Definition: gdcmDictEntry.h:36
void SetVR(const VR &vr)
Definition: gdcmDictEntry.h:54
Class to represent a map of DictEntry.
Definition: gdcmDict.h:44
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:67
bool IsUnique() const
Definition: gdcmDictEntry.h:84
void SetRetired(bool retired)
Definition: gdcmDictEntry.h:72
const VR & GetVR() const
Set/Get VR.
Definition: gdcmDictEntry.h:53
const VM & GetVM() const
Set/Get VM.
Definition: gdcmDictEntry.h:59
bool GetRetired() const
Set/Get Retired flag.
Definition: gdcmDictEntry.h:71
void SetName(const char *name)
Definition: gdcmDictEntry.h:64
void SetElementXX(bool v)
Set whether element is shared in multiple elements (Source Image IDs typically)
Definition: gdcmDictEntry.h:80
void SetVM(VM const &vm)
Definition: gdcmDictEntry.h:60
VR class This is adapted from DICOM standard The biggest difference is the INVALID VR and the composi...
Definition: gdcmVR.h:54
Definition: gdcmASN1.h:20
VMType
Definition: gdcmVM.h:70
DictEntry(const char *name="", const char *keyword="", VR const &vr=VR::INVALID, VM const &vm=VM::VM0, bool ret=false)
Definition: gdcmDictEntry.h:39