[Dcmlib] Is 'DT' not string representable??

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Wed Feb 13 11:18:49 CET 2008


Parikshit Prasad wrote:
> 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. 

The main reason it that there is a bug in my code...
Thx for reporting it.
Jean-Pierre Roux
> 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" ;
> */
> }
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
>   



More information about the Dcmlib mailing list