Program: gdcm
Module: $RCSfile: gdcmValEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/25 15:21:20 $
- Version: $Revision: 1.51 $
+ Date: $Date: 2005/01/30 17:30:57 $
+ Version: $Revision: 1.53 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copy(e);
}
-
/**
* \brief Canonical destructor.
*/
* \brief Sets the std::string representable' value of a ValEntry
* @param val value to set
*/
-
void ValEntry::SetValue(std::string const &val)
{
// Integers have a special treatement for their length:
{
// for multivaluated items
l = (Util::CountSubstring(val, "\\") + 1) * 2;
- SetValueOnly(val);
+ ContentEntry::SetValue(val);
}
else if( vr == "UL" || vr == "SL" )
{
// for multivaluated items
l = (Util::CountSubstring(val, "\\") + 1) * 4;;
- SetValueOnly(val);
+ ContentEntry::SetValue(val);
}
else
{
gdcmAssertMacro( !(finalVal.size() % 2) );
l = finalVal.length();
- SetValueOnly(finalVal);
+ ContentEntry::SetValue(finalVal);
}
}
else
gdcmAssertMacro( !(finalVal.size() % 2) );
l = finalVal.length();
- SetValueOnly(finalVal);
+ ContentEntry::SetValue(finalVal);
}
SetLength(l);