From: malaterre Date: Sat, 8 Jan 2005 23:14:05 +0000 (+0000) Subject: Two things at once: start removing hack for old ostrstream which was really bad ... X-Git-Tag: Version1.0.bp~412 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d4968107a4bf830f86bd8fc46f188230c9b35b90;p=gdcm.git Two things at once: start removing hack for old ostrstream which was really bad (and shouldn't work anyway). Plus attempt to fix problem with multithread on Mac where string object are not created properly. --- diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 7515f648..f1e234a1 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2005/01/07 16:45:51 $ - Version: $Revision: 1.44 $ + Date: $Date: 2005/01/08 23:14:05 $ + 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 @@ -18,7 +18,9 @@ #include "gdcmBinEntry.h" #include "gdcmDebug.h" + #include +#include #include // for std::ios_base, since does not exist on gcc/Solaris namespace gdcm diff --git a/src/gdcmCommon.h b/src/gdcmCommon.h index 2fb15391..d9dab0a8 100644 --- a/src/gdcmCommon.h +++ b/src/gdcmCommon.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmCommon.h,v $ Language: C++ - Date: $Date: 2005/01/06 20:03:26 $ - Version: $Revision: 1.44 $ + Date: $Date: 2005/01/08 23:14:05 $ + 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 @@ -45,17 +45,6 @@ #endif //_MSC_VER //----------------------------------------------------------------------------- -// ifdef for old gcc compiler -#ifdef GDCM_NO_ANSI_STRING_STREAM -# include -# define ostringstream ostrstream -# else -# include -#endif - -#include -#include - #ifdef GDCM_HAVE_STDINT_H #include // For uint8_t uint16_t and uint32_t #else @@ -74,6 +63,8 @@ typedef unsigned int uint32_t; #define GDCM_EXPORT #endif +#include + namespace gdcm { @@ -87,11 +78,11 @@ namespace gdcm #define DICT_TS "dicomTS.dic" #define DICT_VR "dicomVR.dic" -const std::string GDCM_UNKNOWN = "gdcm::Unknown"; -const std::string GDCM_UNFOUND = "gdcm::Unfound"; -const std::string GDCM_BINLOADED = "gdcm::Binary data loaded"; -const std::string GDCM_NOTLOADED = "gdcm::NotLoaded"; -const std::string GDCM_UNREAD = "gdcm::UnRead"; +static const std::string GDCM_UNKNOWN = "gdcm::Unknown"; +static const std::string GDCM_UNFOUND = "gdcm::Unfound"; +static const std::string GDCM_BINLOADED = "gdcm::Binary data loaded"; +static const std::string GDCM_NOTLOADED = "gdcm::NotLoaded"; +static const std::string GDCM_UNREAD = "gdcm::UnRead"; /// \brief TagKey is made to hold an "universal" (as in URL, Universal /// Ressource Locator) key to a DocEntry i.e. a dicom tag. @@ -124,11 +115,11 @@ typedef std::string TagKey; typedef std::string TagName; enum FileType { - Unknown = 0, - ExplicitVR, // DicomDir is in this case - ImplicitVR, - ACR, - ACR_LIBIDO + Unknown = 0, + ExplicitVR, // DicomDir is in this case + ImplicitVR, + ACR, + ACR_LIBIDO }; } //namespace gdcm //----------------------------------------------------------------------------- diff --git a/src/gdcmDebug.h b/src/gdcmDebug.h index 8c45035b..cdf1e47e 100644 --- a/src/gdcmDebug.h +++ b/src/gdcmDebug.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDebug.h,v $ Language: C++ - Date: $Date: 2005/01/08 15:55:57 $ - Version: $Revision: 1.17 $ + Date: $Date: 2005/01/08 23:14:05 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -21,6 +21,9 @@ #include "gdcmCommon.h" +#include +#include + namespace gdcm { //-----------------------------------------------------------------------------