[Dcmlib] Is 'DT' not string representable??
Parikshit Prasad
pprasad at accelrys.com
Wed Feb 13 00:11:35 CET 2008
Hi all,
the function VR::IsVROfStringRepresentable(VRKey const &tested) returns
false for a VR of "DT".
I was wondering if it is just a bug or is there a reason for not to
consider it as string representable. I have pasted the code below. Can
anyone please throw some light on this.
Thanks :)
Parikshit
bool VR::IsVROfStringRepresentable(VRKey const &tested)
{
return tested == "AE" ||
tested == "AS" ||
tested == "CS" ||
tested == "DA" ||
tested == "DS" ||
tested == "FL" ||
tested == "FD" ||
tested == "IS" ||
tested == "LO" ||
tested == "LT" ||
tested == "PN" ||
tested == "SH" ||
tested == "SL" ||
tested == "SS" ||
tested == "ST" ||
tested == "TM" ||
tested == "UI" ||
tested == "UL" ||
tested == "US" ||
tested == "UT";
// Should be quicker
// --> will *never* work : any rotten value would be considered as OK !
/*
return tested != "OB" &&
tested != "OW" &&
tested != "OF" &&
tested != "AT" && // Attribute Tag ?!? contain no printable
character
tested != "UN" && // UN is an actual VR !
tested != "SQ" ;
*/
}
More information about the Dcmlib
mailing list