#include "VISU_TableReader.hxx"
#include <fstream>
-#include <strstream>
+#include <sstream>
#include <memory>
#include <vtkCellType.h>
#include <fstream>
#include <iostream>
-#include <strstream>
+#include <sstream>
#include <vtkPoints.h>
#include <vtkDoubleArray.h>
int getLine( std::ifstream& theStmIn, QString& theString )
{
char tmp;
- std::ostrstream aStrOut;
+ std::ostringstream aStrOut;
while ( theStmIn.get( tmp ) ) {
aStrOut<<tmp;
}
aStrOut<<std::ends;
- theString = aStrOut.str();
+ theString = aStrOut.str().c_str();
return !theStmIn.eof();
}
// ************** OLD CODE ******************
/*
TValue aVal;
- istrstream aStream( data );
+ istringstream aStream( data );
aStream.precision( STRPRECISION );
while( aStream >> aVal ) {
aRow.myValues.push_back( aVal );
#include "SUIT_ResourceMgr.h"
#include "SALOME_Event.h"
-#include <strstream>
+#include <sstream>
#include <vtkMapper.h>
#include <vtkDataSet.h>
aValForTime = anIter->second;
if (aValForTime) {
- std::strstream aStream;
+ std::stringstream aStream;
const VISU::TTime& aTime = aValForTime->myTime;
aStream<<theTitle<<" ";
if(IsUnitsVisible()) {
#include "utilities.h"
#include <cctype>
-#include <strstream>
+#include <sstream>
#include <functional>
#include <QString>
CORBA::Long aNbRows = theTableAttr->GetNbRows();
// push values and their indices into streams
- strstream values, rows, columns;
+ stringstream values, rows, columns;
string comma = "";
for(CORBA::Long i = 1; i <= aNbColumns; i++){
for(CORBA::Long j = aNbRows; j > 0; j--){
}
}
// push titles and units into streams
- strstream rowUnits, rowTitles, colTitles;
+ stringstream rowUnits, rowTitles, colTitles;
SALOMEDS::StringSeq_var aRowUnits = theTableAttr->GetRowUnits();
SALOMEDS::StringSeq_var aRowTitles = theTableAttr->GetRowTitles();
comma = "";
#include "Utils_ExceptHandlers.hxx"
UNEXPECT_CATCH(SalomeException, SALOME::SALOME_Exception);
+// STL Includes
+#include <sstream>
+
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
namespace filesystem = boost::filesystem;
SALOMEDS_Tool::PutStreamToFiles(theStream, aTmpDir, false);
if(MYDEBUG) MESSAGE("Result_i::PasteInto - aListOfFileNames->length() = "<<aListOfFileNames->length());
- std::ostrstream aLocalPersistentID;
+ std::ostringstream aLocalPersistentID;
{
std::string aCopyPersist = aTmpDir + "copy_persistent";
std::ifstream anInputFileStream( aCopyPersist.c_str() );
#include <QStringList>
-#include <strstream>
+#include <sstream>
#ifdef _DEBUG_
static int MYDEBUG = 0;
GetPartInfo(const std::string theInfoString)
{
MultiResult_i::TPartInfo aPartInfo;
- std::istrstream anOutputStream(theInfoString.c_str());
+ std::istringstream anOutputStream(theInfoString.c_str());
anOutputStream>>aPartInfo;
return aPartInfo;
}
_PTR(SObject) aSObject = aStudy->FindObjectID(aFatherEntry);
aRestoringMap = Storable::GetStorableMap(aSObject);
- std::ostrstream anOutputStream;
+ std::ostringstream anOutputStream;
anOutputStream<<"myComment=PART;";
anOutputStream<<"myName="<<thePartName<<";";
anOutputStream<<"myMeshName="<<theMeshName<<";";