Program: gdcm
Module: $RCSfile: gdcmValEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/24 16:10:53 $
- Version: $Revision: 1.50 $
+ 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
* \brief Constructor from a given DictEntry
* @param e Pointer to existing dictionary entry
*/
-ValEntry::ValEntry(DictEntry *e) : DocEntry(e)
+ValEntry::ValEntry(DictEntry *e) : ContentEntry(e)
{
}
* @param e Pointer to existing Doc entry
*/
ValEntry::ValEntry(DocEntry *e)
- : DocEntry(e->GetDictEntry())
+ : ContentEntry(e->GetDictEntry())
{
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);