]> Creatis software - gdcm.git/blobdiff - src/gdcmUtil.h
BUG: map<>::mapped_type is not part of the STL. Should fix issue on VS* compiler
[gdcm.git] / src / gdcmUtil.h
index 080ba2232b505ee579271a1e9e1dcb26f7590eca..1ac0829f6119497374138d0b2e294f1c764dde56 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.h,v $
   Language:  C++
-  Date:      $Date: 2006/05/31 16:09:29 $
-  Version:   $Revision: 1.67 $
+  Date:      $Date: 2007/10/01 09:25:06 $
+  Version:   $Revision: 1.70 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
                                                                                 
 =========================================================================*/
 
-#ifndef GDCMUTIL_H
-#define GDCMUTIL_H
+#ifndef _GDCMUTIL_H_
+#define _GDCMUTIL_H_
 
 #include "gdcmCommon.h"
 #include <vector>
 #include <string>
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 /**
  * \brief    Here are some utility functions, belonging to the gdcm::Util class,
@@ -47,6 +47,7 @@ public:
    static std::string CreateCleanString(uint8_t *s, int l);
    static bool IsCleanString(std::string const &s);
    static bool IsCleanArea(uint8_t *s, int l);
+   static void ReplaceSpecChar(std::string &s, std::string &rep);
    static std::string NormalizePath(std::string const &name);
    static std::string GetPath(std::string const &fullName);
    static std::string GetName(std::string const &fullName);
@@ -96,7 +97,8 @@ public:
       *a = *b;
       *b = tmp;
    }    
-   void hfpswap(double *a, double *b);   
+   void hfpswap(double *a, double *b);
+      
    static inline void sthifpswap(double *a, double *b)     
    {
       double tmp;
@@ -149,7 +151,7 @@ private:
   ghost@aladdin.com
 */
 
-/* $Id: gdcmUtil.h,v 1.67 2006/05/31 16:09:29 jpr Exp $ */
+/* $Id: gdcmUtil.h,v 1.70 2007/10/01 09:25:06 jpr Exp $ */
 /*
   Independent implementation of MD5 (RFC 1321).
   This code implements the MD5 Algorithm defined in RFC 1321, whose