Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2005/10/28 13:02:32 $
- Version: $Revision: 1.76 $
+ Date: $Date: 2005/11/21 12:15:06 $
+ Version: $Revision: 1.78 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//
// ----------- Writes the common part
//
+ // To avoid gdcm to propagate oddities.
+ // --> Don't forget to *write* an even length value
+ if (lgth%2)
+ lgth ++;
// ----------- Writes the common part : the Tag
binary_write( *fp, group); //group number
else
{
binary_write(*fp, vr.str());
-
- if ( (vr == "OB") || (vr == "OW") || (vr == "SQ") /*|| (vr == "UN")*/ )
-// FIXME : what is the status of VR = "UN"
-// --> uncomment or remove comment !
+
+ // See PS 3.5-2004 page 33, 36
+ if ( (vr == "SQ") || (vr == "OB") || (vr == "OW") || (vr == "OF")
+ || (vr == "UN") || (vr == "UT") )
{
binary_write(*fp, zero);
if (vr == "SQ")