Program: gdcm
Module: $RCSfile: gdcmUtil.cxx,v $
Language: C++
- Date: $Date: 2005/11/22 20:30:46 $
- Version: $Revision: 1.176 $
+ Date: $Date: 2005/11/28 15:20:34 $
+ Version: $Revision: 1.177 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmUtil.h"
#include "gdcmDebug.h"
+
#include <iostream>
#include <stdarg.h> // for va_list
std::string Util::DicomString(const char *s, size_t l)
{
std::string r(s, s+l);
- gdcmAssertMacro( !(r.size() % 2) ); // == basically 'l' is even
+ gdcmStaticAssertMacro( !(r.size() % 2) ); // == basically 'l' is even
return r;
}
l++;
}
std::string r(s, s+l);
- gdcmAssertMacro( !(r.size() % 2) );
+ gdcmStaticAssertMacro( !(r.size() % 2) );
return r;
}
case GDCM_LESSOREQUAL :
return s1_even <= s2_even;
default :
- gdcmDebugMacro(" Wrong operator : " << op);
+ gdcmStaticDebugMacro(" Wrong operator : " << op);
return false;
}
}
}
else
{
- gdcmWarningMacro("Problem in finding the MAC Address");
+ gdcmStaticWarningMacro("Problem in finding the MAC Address");
return "";
}
}
// If append is too long we need to rehash it
if ( (prefix + append).size() > 64 )
{
- gdcmErrorMacro( "Size of UID is too long." );
+ gdcmStaticErrorMacro( "Size of UID is too long." );
// we need a hash function to truncate this number
// if only md5 was cross plateform
// MD5(append);