14#ifndef GDCMCSAELEMENT_H
15#define GDCMCSAELEMENT_H
37 unsigned int GetKey()
const {
return KeyField; }
38 void SetKey(
unsigned int key) { KeyField = key; }
41 const char *
GetName()
const {
return NameField.c_str(); }
42 void SetName(
const char *name) { NameField = name; }
45 const VM&
GetVM()
const {
return ValueMultiplicityField; }
46 void SetVM(
const VM &vm) { ValueMultiplicityField = vm; }
49 VR const &
GetVR()
const {
return VRField; }
50 void SetVR(
VR const &vr) { VRField = vr; }
54 void SetSyngoDT(
unsigned int syngodt) { SyngoDTField = syngodt; }
68 bool IsEmpty()
const {
return DataField ==
nullptr; }
94 return GetKey() < de.
GetKey();
136 std::string str(p, p + bv->
GetLength() );
139 os <<
"'" << str.c_str() <<
"'";
143 std::istringstream is( str );
146 while( std::getline(is, s,
'\\' ) )
153 os <<
"'" << s.c_str() <<
"'";
Class to represent binary value (array of bytes)
Definition gdcmByteValue.h:35
const char * GetPointer() const
Definition gdcmByteValue.h:110
VL GetLength() const override
Definition gdcmByteValue.h:77
Class to represent a CSA Element.
Definition gdcmCSAElement.h:30
void SetValue(Value const &vl)
Definition gdcmCSAElement.h:63
unsigned int GetSyngoDT() const
Set/Get SyngoDT.
Definition gdcmCSAElement.h:53
std::string NameField
Definition gdcmCSAElement.h:112
bool operator==(const CSAElement &de) const
Definition gdcmCSAElement.h:99
const ByteValue * GetByteValue() const
Definition gdcmCSAElement.h:78
unsigned int SyngoDTField
Definition gdcmCSAElement.h:115
bool operator<(const CSAElement &de) const
Definition gdcmCSAElement.h:92
void SetNoOfItems(unsigned int items)
Definition gdcmCSAElement.h:58
CSAElement & operator=(const CSAElement &de)=default
void SetSyngoDT(unsigned int syngodt)
Definition gdcmCSAElement.h:54
VM ValueMultiplicityField
Definition gdcmCSAElement.h:113
const char * GetName() const
Set/Get Name.
Definition gdcmCSAElement.h:41
unsigned int KeyField
Definition gdcmCSAElement.h:111
void SetByteValue(const char *array, VL length)
Set.
Definition gdcmCSAElement.h:71
SmartPointer< Value > DataPtr
Definition gdcmCSAElement.h:117
CSAElement(unsigned int kf=0)
Definition gdcmCSAElement.h:32
bool IsEmpty() const
Check if CSA Element is empty.
Definition gdcmCSAElement.h:68
VR const & GetVR() const
Set/Get VR.
Definition gdcmCSAElement.h:49
void SetVR(VR const &vr)
Definition gdcmCSAElement.h:50
VR VRField
Definition gdcmCSAElement.h:114
unsigned int NoOfItemsField
Definition gdcmCSAElement.h:116
Value & GetValue()
Definition gdcmCSAElement.h:62
CSAElement(const CSAElement &_val)
Definition gdcmCSAElement.h:84
unsigned int GetNoOfItems() const
Set/Get NoOfItems.
Definition gdcmCSAElement.h:57
const VM & GetVM() const
Set/Get VM.
Definition gdcmCSAElement.h:45
unsigned int GetKey() const
Set/Get Key.
Definition gdcmCSAElement.h:37
DataPtr DataField
Definition gdcmCSAElement.h:118
void SetName(const char *name)
Definition gdcmCSAElement.h:42
Value const & GetValue() const
Set/Get Value (bytes array, SQ of items, SQ of fragments):
Definition gdcmCSAElement.h:61
void SetKey(unsigned int key)
Definition gdcmCSAElement.h:38
void SetVM(const VM &vm)
Definition gdcmCSAElement.h:46
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
Value Length.
Definition gdcmVL.h:30
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
@ VM1
Definition gdcmVM.h:72
VR class.
Definition gdcmVR.h:55
Class to represent the value of a Data Element.
Definition gdcmValue.h:32
#define GDCM_EXPORT
Definition gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88