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 == 0; }
94 return GetKey() < de.
GetKey();
145 std::string str(p, p + bv->
GetLength() );
148 os <<
"'" << str.c_str() <<
"'";
152 std::istringstream is( str );
155 while( std::getline(is, s,
'\\' ) )
162 os <<
"'" << s.c_str() <<
"'";
173 #endif //GDCMCSAELEMENT_H
Value & GetValue()
Definition: gdcmCSAElement.h:62
const char * GetName() const
Set/Get Name.
Definition: gdcmCSAElement.h:41
void SetVM(const VM &vm)
Definition: gdcmCSAElement.h:46
bool IsEmpty() const
Check if CSA Element is empty.
Definition: gdcmCSAElement.h:68
SmartPointer< Value > DataPtr
Definition: gdcmCSAElement.h:126
Class to represent the value of a Data Element.
Definition: gdcmValue.h:29
unsigned int GetNoOfItems() const
Set/Get NoOfItems.
Definition: gdcmCSAElement.h:57
VL GetLength() const
Definition: gdcmByteValue.h:76
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
void SetKey(unsigned int key)
Definition: gdcmCSAElement.h:38
void SetName(const char *name)
Definition: gdcmCSAElement.h:42
void SetByteValue(const char *array, VL length)
Set.
Definition: gdcmCSAElement.h:71
CSAElement & operator=(const CSAElement &de)
Definition: gdcmCSAElement.h:96
CSAElement(unsigned int kf=0)
Definition: gdcmCSAElement.h:32
Value Length.
Definition: gdcmVL.h:29
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:92
VR VRField
Definition: gdcmCSAElement.h:123
DataPtr DataField
Definition: gdcmCSAElement.h:127
bool operator==(const CSAElement &de) const
Definition: gdcmCSAElement.h:108
Class to represent binary value (array of bytes)
Definition: gdcmByteValue.h:33
Value const & GetValue() const
Set/Get Value (bytes array, SQ of items, SQ of fragments):
Definition: gdcmCSAElement.h:61
void SetNoOfItems(unsigned int items)
Definition: gdcmCSAElement.h:58
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
unsigned int KeyField
Definition: gdcmCSAElement.h:120
bool operator<(const CSAElement &de) const
Definition: gdcmCSAElement.h:92
std::string NameField
Definition: gdcmCSAElement.h:121
unsigned int SyngoDTField
Definition: gdcmCSAElement.h:124
Class to represent a CSA Element.
Definition: gdcmCSAElement.h:29
const ByteValue * GetByteValue() const
Definition: gdcmCSAElement.h:78
unsigned int GetKey() const
Set/Get Key.
Definition: gdcmCSAElement.h:37
const char * GetPointer() const
Definition: gdcmByteValue.h:138
unsigned int NoOfItemsField
Definition: gdcmCSAElement.h:125
CSAElement(const CSAElement &_val)
Definition: gdcmCSAElement.h:84
VM ValueMultiplicityField
Definition: gdcmCSAElement.h:122
VR class This is adapted from DICOM standard The biggest difference is the INVALID VR and the composi...
Definition: gdcmVR.h:54
void SetSyngoDT(unsigned int syngodt)
Definition: gdcmCSAElement.h:54
void SetValue(Value const &vl)
Definition: gdcmCSAElement.h:63
VR const & GetVR() const
Set/Get VR.
Definition: gdcmCSAElement.h:49
const VM & GetVM() const
Set/Get VM.
Definition: gdcmCSAElement.h:45
unsigned int GetSyngoDT() const
Set/Get SyngoDT.
Definition: gdcmCSAElement.h:53
void SetVR(VR const &vr)
Definition: gdcmCSAElement.h:50