Salome HOME
Replace strstream by sstream
authoradam <adam>
Wed, 25 Feb 2009 09:46:29 +0000 (09:46 +0000)
committeradam <adam>
Wed, 25 Feb 2009 09:46:29 +0000 (09:46 +0000)
12 files changed:
src/Container/SALOME_Container.cxx
src/Logger/SALOME_Trace.cxx
src/Logger/SALOME_Trace.hxx
src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfInteger.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfReal.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeTableOfString.cxx
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.hxx

index 07024cd13e697a9ced9594a74583f79a6ac131ec..1cb421223482056724df32afe935c5006615fbb1 100644 (file)
@@ -30,7 +30,7 @@
 #endif
 
 #include <iostream>
-#include <strstream>
+#include <sstream>
 #include <string>
 #include <stdio.h>
 #include <time.h>
index ce73c7f6d22d0449b20e18e730ff83677a4e8ef0..3617c6c4b6c4c4c5df4c89bf82743f0d324cb83a 100644 (file)
@@ -144,9 +144,9 @@ void SALOME_Trace::putMessage(ostream& msg)
 
   //   CORBA::String_var LogMsg = CORBA::string_dup( str() );
   //Allow automatic deletion of ostrstream content 
-  char* adt = str();
+  const char* adt = str().c_str();
   CORBA::String_var LogMsg = CORBA::string_dup( adt );
-  rdbuf()->freeze(false);
+  //rdbuf()->freeze(false);
   //rdbuf()->sync(); // problem with gcc3.2
   seekp(0);
 
index a9d2ebd7f0cc39edc2667ba6505a962e8288adee..261d270059b2312e7bd3389893b9a1ed36cf481e 100644 (file)
@@ -27,7 +27,7 @@
 #if !defined(AFX_LOGGER_H__96F2A3AB_F6F8_11D6_BFA6_000476A0958C__INCLUDED_)
 #define AFX_LOGGER_H__96F2A3AB_F6F8_11D6_BFA6_000476A0958C__INCLUDED_
 
-#include <strstream>
+#include <sstream>
 #include <SALOMEconfig.h>
 #include "Logger.hh"
 
@@ -62,7 +62,7 @@
 
 # endif  /* WIN32 */
 
-class SALOME_Trace : public std::ostrstream  
+class SALOME_Trace : public std::ostringstream  
 {
 public:
        virtual ~SALOME_Trace();
index 992bd9163c3a65fb70d2048939adef82c084892e..01a3f03bd2da6143d639dc0cff04edf21ffd5b71 100644 (file)
@@ -29,7 +29,7 @@
 #include "Utils_ExceptHandlers.hxx"
 
 #include <stdexcept>
-#include <strstream>
+#include <sstream>
 #include <string>
 #include <vector>
 
index 9a4de029d8109a0cdbe3fd9cb7d6496076373c5d..30ee7075b978b8bd5b5bc04f40c81cf4efc79eda 100644 (file)
@@ -26,7 +26,7 @@
 #include "SALOMEDS_AttributeTableOfReal_i.hxx"
 #include "SALOMEDS.hxx"
 
-#include <strstream>
+#include <sstream>
 #include <string>
 #include <vector>
 
index 56a29f66a957bc4691336b0ef61df99d78e1f419..ebc8ebd7657a416feaa58a9b1636bc3396da0f32 100644 (file)
@@ -26,7 +26,7 @@
 #include "SALOMEDS_AttributeTableOfString_i.hxx"
 #include "SALOMEDS.hxx"
 
-#include <strstream>
+#include <sstream>
 #include <string>
 #include <vector>
 
index 63bd4acd853bb80cf5007416f9f35709d56df7ab..c579fa47fa0f371998e9e80836beb31846dc0cce 100644 (file)
@@ -41,7 +41,7 @@
 #include "Basics_Utils.hxx"
 #include "SALOME_GenericObj_i.hh"
 
-#include <strstream>
+#include <sstream>
 #include <vector>
 #include <map>
 
index 441e578a1062d5a19b027ca3a65be904c9ccf87d..9f012789c0557940da12add7ac06aa09d56d61e8 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <strstream>
+#include <sstream>
 #include <sstream>
 
 using namespace std;
@@ -710,7 +710,7 @@ void SALOMEDSImpl_AttributeParameter::Load(const string& theValue)
   _realarrays.clear();
   _intarrays.clear();
 
-  istrstream buffer(theValue.c_str(), theValue.size());
+  istringstream buffer(theValue.c_str());
 
   int size, val, ival;
   double val2;
index da906393ca33cea158fb7de9103858e8edd5a0e8..24a21d7726d8f78144f9ea0bdbd02b87df52d788 100644 (file)
@@ -24,7 +24,7 @@
 //  Module : SALOME
 //
 #include "SALOMEDSImpl_AttributeTableOfInteger.hxx"
-#include <strstream>
+#include <sstream>
 
 using namespace std;
 
index 1b9dd68c608bac945778a75ac2982f7a048ba75d..af1baaacd911abeec1b7b027590f4c909a316ea6 100644 (file)
@@ -25,7 +25,7 @@
 //
 #include "SALOMEDSImpl_AttributeTableOfReal.hxx"
 #include <stdio.h>
-#include <strstream>
+#include <sstream>
 
 using namespace std;
 
index f5872c4ad0570488885c81548dc0faf3dbdbbb2a..c73f7c730bfbb17c0f7e4b7e7f7b4cffeef13ea1 100644 (file)
@@ -26,7 +26,7 @@
 #include "SALOMEDSImpl_AttributeTableOfString.hxx"
 #include <stdio.h>
 #include <stdlib.h>
-#include <strstream>
+#include <sstream>
 
 using namespace std;
 
index 4a0b2ef77e8bdad1bb60c719c65b5568200a6ee0..b98a47364e31ce2f053d2c23b2b79e11f483268c 100644 (file)
@@ -29,7 +29,7 @@
 #include "SALOMEDSImpl_Defines.hxx"
 
 // std C++ headers
-#include <strstream>
+#include <sstream>
 #include <string>
 #include <vector>