X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmUtil.cxx;h=936e0dde2985bf64a8f3a43c250290de15514f26;hb=507c357466602345e4bd9de6c475e0887cf2ba36;hp=d351e406d85edccebf9b5d6249dabb08c6b94f28;hpb=46afb30d2d016a9b1581c7ee4ca96d614a35203c;p=gdcm.git diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index d351e406..936e0dde 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/11/28 15:20:34 $ - Version: $Revision: 1.177 $ + Date: $Date: 2005/11/29 13:02:46 $ + Version: $Revision: 1.179 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -453,7 +453,7 @@ bool Util::IsCurrentProcessorBigEndian() std::string Util::DicomString(const char *s, size_t l) { std::string r(s, s+l); - gdcmStaticAssertMacro( !(r.size() % 2) ); // == basically 'l' is even + gdcmAssertMacro( !(r.size() % 2) ); // == basically 'l' is even return r; } @@ -476,7 +476,7 @@ std::string Util::DicomString(const char *s) l++; } std::string r(s, s+l); - gdcmStaticAssertMacro( !(r.size() % 2) ); + gdcmAssertMacro( !(r.size() % 2) ); return r; } @@ -528,7 +528,7 @@ bool Util::CompareDicomString(const std::string &s1, const char *s2, int op) case GDCM_LESSOREQUAL : return s1_even <= s2_even; default : - gdcmStaticDebugMacro(" Wrong operator : " << op); + gdcmDebugMacro(" Wrong operator : " << op); return false; } } @@ -1147,6 +1147,14 @@ std::string Util::GetIPAddress() return str; } +void Util::hfpswap(double *a, double *b) +{ + double tmp; + tmp=*a; + *a=*b; + *b=tmp; +} + //------------------------------------------------------------------------- } // end namespace gdcm