Program: gdcm
Module: $RCSfile: gdcmValEntry.cxx,v $
Language: C++
- Date: $Date: 2005/01/07 16:45:52 $
- Version: $Revision: 1.43 $
+ Date: $Date: 2005/01/12 17:10:15 $
+ Version: $Revision: 1.45 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmTS.h"
#include "gdcmGlobal.h"
#include "gdcmUtil.h"
+#include "gdcmDebug.h"
#include <fstream>
v = GetValue(); // not applicable for SQ ...
d2 = Util::CreateCleanString(v); // replace non printable characters by '.'
if( (GetLength()<=MAX_SIZE_PRINT_ELEMENT_VALUE) ||
- //(PrintLevel>=3) || (d2.find("gdcm::NotLoaded.") < d2.length()) )
(PrintLevel>=3) || (d2.find(GDCM_NOTLOADED) < d2.length()) )
{
s << " [" << d2 << "]";
else
{
std::string finalVal = Util::DicomString( val.c_str() );
- assert( !(finalVal.size() % 2) );
+ gdcmAssertMacro( !(finalVal.size() % 2) );
l = finalVal.length();
SetValueOnly(finalVal);
else
{
std::string finalVal = Util::DicomString( val.c_str() );
- assert( !(finalVal.size() % 2) );
+ gdcmAssertMacro( !(finalVal.size() % 2) );
l = finalVal.length();
SetValueOnly(finalVal);
return;
}
- assert( lgr == GetValue().length() );
+ gdcmAssertMacro( lgr == GetValue().length() );
binary_write(*fp, GetValue());
}