]> Creatis software - gdcm.git/commitdiff
Two things at once: start removing hack for old ostrstream which was really bad ...
authormalaterre <malaterre>
Sat, 8 Jan 2005 23:14:05 +0000 (23:14 +0000)
committermalaterre <malaterre>
Sat, 8 Jan 2005 23:14:05 +0000 (23:14 +0000)
src/gdcmBinEntry.cxx
src/gdcmCommon.h
src/gdcmDebug.h

index 7515f648d1ba0a5a2906fee9e3d922f13f04ebe1..f1e234a1ecb278b9251314f50ed7dd5ac8699efd 100644 (file)
@@ -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 <fstream>
+#include <sstream>
 #include <iostream> // for std::ios_base, since <ios> does not exist on gcc/Solaris
 
 namespace gdcm 
index 2fb153918b4300c1ef995951ee0a0f423caa0cf4..d9dab0a8b8a2f5668d1aafa07acc64095434d6eb 100644 (file)
@@ -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
 #endif //_MSC_VER
 
 //-----------------------------------------------------------------------------
-// ifdef for old gcc compiler
-#ifdef GDCM_NO_ANSI_STRING_STREAM
-#  include <strstream>
-#  define  ostringstream ostrstream
-# else
-#  include <sstream>
-#endif
-
-#include <string>
-#include <assert.h>
-
 #ifdef GDCM_HAVE_STDINT_H
 #include <stdint.h>   // For uint8_t uint16_t and uint32_t
 #else
@@ -74,6 +63,8 @@ typedef  unsigned int   uint32_t;
 #define GDCM_EXPORT
 #endif
 
+#include <string>
+
 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
 //-----------------------------------------------------------------------------
index 8c45035b7177067792e8b5596b5a192b0a4f110c..cdf1e47e886129861f930187a28bf6c833097ffc 100644 (file)
@@ -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 <sstream>
+#include <assert.h>
+
 namespace gdcm 
 {
 //-----------------------------------------------------------------------------