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; }
71 void SetByteValue(
const char *array,
VL length)
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