diff --git a/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx b/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx index 4dbaaabed050e05d2baf69d762710ec15005dae4..49939b752f8a800d38e0c52d2dfa396e061509c1 100644 --- a/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx +++ b/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx @@ -84,7 +84,7 @@ BinaryImageToDensityImageFilter<TInputImage, TOutputImage, TCountFunction> // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/BasicFilters/otbFrostImageFilter.txx b/Code/BasicFilters/otbFrostImageFilter.txx index 9aea8f31a052b108661f44f0918c9c5762b24b35..3badf151f7c6e4690ea373794c4275755bb6e176 100644 --- a/Code/BasicFilters/otbFrostImageFilter.txx +++ b/Code/BasicFilters/otbFrostImageFilter.txx @@ -82,7 +82,7 @@ void FrostImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << static_cast<const char *>(this->GetNameOfClass()) << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/BasicFilters/otbFunctionWithNeighborhoodToImageFilter.txx b/Code/BasicFilters/otbFunctionWithNeighborhoodToImageFilter.txx index 951d6cf697af84dc25450f19ca98d69ed2dde6ab..f9ce5037b8533a3dabe69be76ffa6bf3fa225af7 100644 --- a/Code/BasicFilters/otbFunctionWithNeighborhoodToImageFilter.txx +++ b/Code/BasicFilters/otbFunctionWithNeighborhoodToImageFilter.txx @@ -107,7 +107,7 @@ FunctionWithNeighborhoodToImageFilter<TInputImage, TOutputImage, TFunction> // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/BasicFilters/otbImageToPointSetFilter.txx b/Code/BasicFilters/otbImageToPointSetFilter.txx index 56cb5ef0760e0cebb32ffcee44cc16b8ee9c45ad..6e6565ef99841aa2eb4254aa826bcf5ee462c621 100644 --- a/Code/BasicFilters/otbImageToPointSetFilter.txx +++ b/Code/BasicFilters/otbImageToPointSetFilter.txx @@ -260,7 +260,7 @@ ImageToPointSetFilter<TInputImage, TOutputPointSet> // itkExceptionMacro("subclass should override this method!!!"); // The ExceptionMacro is not used because gcc warns that a // 'noreturn' function does return - itk::OStringStream message; + std::ostringstream message; message << "itk::ERROR: " << this->GetNameOfClass() << "(" << this << "): " << "Subclass should override this method!!!"; itk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str(), ITK_LOCATION); diff --git a/Code/BasicFilters/otbLeeImageFilter.txx b/Code/BasicFilters/otbLeeImageFilter.txx index b21d1334687a95ded51d69fa8e4554598ced4304..6c6a4dd27ef03de49bfb823197e8b519f058b903 100644 --- a/Code/BasicFilters/otbLeeImageFilter.txx +++ b/Code/BasicFilters/otbLeeImageFilter.txx @@ -82,7 +82,7 @@ void LeeImageFilter<TInputImage, TOutputImage>::GenerateInputRequestedRegion() t // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << static_cast<const char *>(this->GetNameOfClass()) << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx b/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx index 79579fcc6aa6c3b3621f484f93829184f08be2fd..5e4cc01600fbb77b58c91f835c34900f5fe9ecfa 100644 --- a/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx +++ b/Code/ChangeDetection/otbBinaryFunctorNeighborhoodJoinHistogramImageFilter.txx @@ -138,7 +138,7 @@ BinaryFunctorNeighborhoodJoinHistogramImageFilter<TInputImage1, TInputImage2, TO // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); @@ -160,7 +160,7 @@ BinaryFunctorNeighborhoodJoinHistogramImageFilter<TInputImage1, TInputImage2, TO // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx b/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx index 6d2280e19afd5d3ee6263fcdc96f388067df90f2..761c95252ba99d55df442f5d3c7ccd1d1287a871 100644 --- a/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx +++ b/Code/Common/otbBinaryFunctorNeighborhoodImageFilter.txx @@ -135,7 +135,7 @@ BinaryFunctorNeighborhoodImageFilter<TInputImage1, TInputImage2, TOutputImage, T // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); @@ -157,7 +157,7 @@ BinaryFunctorNeighborhoodImageFilter<TInputImage1, TInputImage2, TOutputImage, T // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/Common/otbCommandLineArgumentParser.cxx b/Code/Common/otbCommandLineArgumentParser.cxx index 61baa217475dba47cd7140a3bc3d5d4da493f39b..2801de83babe6cfb24dd1c632bcc5ddd3f0af8c3 100644 --- a/Code/Common/otbCommandLineArgumentParser.cxx +++ b/Code/Common/otbCommandLineArgumentParser.cxx @@ -66,7 +66,7 @@ std::string CommandLineArgumentParseResult { if (this->IsOptionPresent(option) == false) { - itk::OStringStream msg; + std::ostringstream msg; msg << "GetParameterString(): The following '" << option << "' option is unknown !!"; CommandLineArgumentParserArgumentErrorException e(__FILE__, __LINE__); e.SetDescription(msg.str().c_str()); diff --git a/Code/Common/otbDataNode.txx b/Code/Common/otbDataNode.txx index 87980862bd54806a0936a91a77def6ddbe43caef..d020ec7ce2c85fdfa24534f3cd6a1b2a622cb572 100644 --- a/Code/Common/otbDataNode.txx +++ b/Code/Common/otbDataNode.txx @@ -168,7 +168,7 @@ std::string DataNode<TPrecision, VDimension, TValuePrecision> ::GetNodeTypeAsString() const { - itk::OStringStream oss; + std::ostringstream oss; switch (m_NodeType) { case ROOT: diff --git a/Code/Common/otbMacro.h b/Code/Common/otbMacro.h index 584b14207b7a245e1b23592b06b20cb004906449..a786b3947b42725a8080de802a0a3bd9d234771c 100644 --- a/Code/Common/otbMacro.h +++ b/Code/Common/otbMacro.h @@ -43,7 +43,7 @@ namespace otb * itkDebugMacro(<< "this is debug info" << this->SomeVariable); */ #define otbDebugMacro(x) itkDebugMacro(x) /* { if ( this->GetDebug() && *::itk::Object::GetGlobalWarningDisplay()) \ - { itk::OStringStream itkmsg; \ + { std::ostringstream itkmsg; \ itkmsg << "Debug: In " __FILE__ ", line " << __LINE__ << "\n" \ << this->GetNameOfClass() << " (" << this << "): " x \ << "\n\n"; \ @@ -54,7 +54,7 @@ namespace otb { \ if (this->GetDebug() && ::itk::Object::GetGlobalWarningDisplay()) \ { \ - itk::OStringStream itkmsg; \ + std::ostringstream itkmsg; \ itkmsg << " Msg Debug: " x << "\n"; \ ::itk::OutputWindowDisplayDebugText(itkmsg.str().c_str()); \ } \ @@ -66,7 +66,7 @@ namespace otb { \ if (::itk::Object::GetGlobalWarningDisplay()) \ { \ - itk::OStringStream itkmsg; \ + std::ostringstream itkmsg; \ itkmsg << " Generic Msg Debug: " x << "\n"; \ ::itk::OutputWindowDisplayDebugText(itkmsg.str().c_str()); \ } \ @@ -84,7 +84,7 @@ namespace otb #define otbMsgDevMacro(x) \ { \ { \ - itk::OStringStream itkmsg; \ + std::ostringstream itkmsg; \ itkmsg << " Msg Dev: (" << __FILE__ << ":" << __LINE__ << ") " x << "\n"; \ ::itk::OutputWindowDisplayDebugText(itkmsg.str().c_str()); \ } \ @@ -100,7 +100,7 @@ namespace otb { \ if (itk::Object::GetGlobalWarningDisplay()) \ { \ - itk::OStringStream itkmsg; \ + std::ostringstream itkmsg; \ itkmsg << "WARNING: In " __FILE__ ", line " << __LINE__ << "\n" \ << this->GetNameOfClass() << " (" << this << "): " x \ << "\n\n"; \ @@ -171,7 +171,7 @@ namespace otb throw stde; } \ catch (...) \ { \ - itk::OStringStream message; \ + std::ostringstream message; \ message << "otb::ERROR Unknow error while running " << # command << " (catch(...) )"; \ ::itk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str(), ITK_LOCATION); \ throw e_; \ @@ -194,14 +194,14 @@ namespace otb throw stde; } \ catch (...) \ { \ - itk::OStringStream message; \ + std::ostringstream message; \ message << "otb::ERROR Unknow error while running " << # command << " (catch(...) )"; \ ::itk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str(), ITK_LOCATION); \ throw e_; \ } \ if (result == 1) \ { \ - itk::OStringStream message; \ + std::ostringstream message; \ message << "otb::ERROR: " << # command << " should be throwing an exception."; \ ::itk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str(), ITK_LOCATION); \ throw e_; \ diff --git a/Code/Common/otbMultiChannelExtractROI.txx b/Code/Common/otbMultiChannelExtractROI.txx index 2d216ee09f0fe0025509a7c22e1fbd12574b37e4..05bccd370e0d17904eeef7af1c11d6ff04279059 100644 --- a/Code/Common/otbMultiChannelExtractROI.txx +++ b/Code/Common/otbMultiChannelExtractROI.txx @@ -235,7 +235,7 @@ MultiChannelExtractROI<TInputPixelType, TOutputPixelType> } if (m_BadChannels.empty() == false) { - itk::OStringStream oss; + std::ostringstream oss; oss << "otb::ExtractImageFilter::GenerateOutputInformation : "; oss << "Channel(s) [ "; for (unsigned int i = 0; i < m_BadChannels.size(); ++i) diff --git a/Code/Common/otbObjectListToObjectListFilter.txx b/Code/Common/otbObjectListToObjectListFilter.txx index 4e066696bfa353ea4d9d262f9af802988c45c925..7f0bf854a53f05cb9e76dcccb370452ccf024fbd 100644 --- a/Code/Common/otbObjectListToObjectListFilter.txx +++ b/Code/Common/otbObjectListToObjectListFilter.txx @@ -134,7 +134,7 @@ ObjectListToObjectListFilter<TInputList, TOutputList> // itkExceptionMacro("subclass should override this method!!!"); // The ExceptionMacro is not used because gcc warns that a // 'noreturn' function does return - itk::OStringStream message; + std::ostringstream message; message << "itk::ERROR: " << this->GetNameOfClass() << "(" << this << "): " << "Subclass should override this method!!!"; itk::ExceptionObject e_(__FILE__, __LINE__, message.str().c_str(), ITK_LOCATION); diff --git a/Code/Common/otbStandardWriterWatcher.cxx b/Code/Common/otbStandardWriterWatcher.cxx index 98105853ab8f43984434392f381bc5f5c9926ed3..7eb369e181b61238a72c82177e887fc72e4c1fbb 100644 --- a/Code/Common/otbStandardWriterWatcher.cxx +++ b/Code/Common/otbStandardWriterWatcher.cxx @@ -89,7 +89,7 @@ void StandardWriterWatcher ::ShowProgress() { - itk::OStringStream oss; + std::ostringstream oss; oss.str(""); oss << "\r"; diff --git a/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.txx b/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.txx index 02f78bf613f4f237332bc1d2b481bbc8b7fd311b..8dc99fbe9edd1de9b5c66ec983e2608d9689ba1c 100644 --- a/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.txx +++ b/Code/Common/otbUnaryFunctorNeighborhoodImageFilter.txx @@ -80,7 +80,7 @@ UnaryFunctorNeighborhoodImageFilter<TInputImage, TOutputImage, TFunction> // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/Common/otbUnaryFunctorNeighborhoodWithOffsetImageFilter.txx b/Code/Common/otbUnaryFunctorNeighborhoodWithOffsetImageFilter.txx index 57a5850ab4e81c504d532774611e3c85a31f89ae..11710105beb008bff67a7f42c783a6de5bd147ce 100644 --- a/Code/Common/otbUnaryFunctorNeighborhoodWithOffsetImageFilter.txx +++ b/Code/Common/otbUnaryFunctorNeighborhoodWithOffsetImageFilter.txx @@ -99,7 +99,7 @@ UnaryFunctorNeighborhoodWithOffsetImageFilter<TInputImage, TOutputImage, TFuncti // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/Common/otbUnaryFunctorWithIndexImageFilter.txx b/Code/Common/otbUnaryFunctorWithIndexImageFilter.txx index d6d0fd0d56b38d1d671c9d99df6a8618b528c6ef..064b465a366e4287b84f3d4e8a1e3c8fb25d0723 100644 --- a/Code/Common/otbUnaryFunctorWithIndexImageFilter.txx +++ b/Code/Common/otbUnaryFunctorWithIndexImageFilter.txx @@ -71,7 +71,7 @@ UnaryFunctorWithIndexImageFilter<TInputImage, TOutputImage, TFunction> // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/DisparityMap/otbDisparityMapEstimationMethod.txx b/Code/DisparityMap/otbDisparityMapEstimationMethod.txx index d96ea760f53b53017c287f07de9c0c290db1941d..885a63b70020c9e6bdee94bd0dcc84c08d88a5be 100644 --- a/Code/DisparityMap/otbDisparityMapEstimationMethod.txx +++ b/Code/DisparityMap/otbDisparityMapEstimationMethod.txx @@ -196,7 +196,7 @@ DisparityMapEstimationMethod<TFixedImage, TMovingImage, TPointSet> // typename FixedWriterType::Pointer fwriter = FixedWriterType::New(); // typename MovingWriterType::Pointer mwriter = MovingWriterType::New(); -// itk::OStringStream oss; +// std::ostringstream oss; // oss.str(""); // oss<<"Fixed"<<dataId<<".tif"; // fwriter->SetInput(fixedExtractor->GetOutput()); diff --git a/Code/DisparityMap/otbFineRegistrationImageFilter.txx b/Code/DisparityMap/otbFineRegistrationImageFilter.txx index e03d713961e019ca1380d48d1e4fb36e00996217..eadbfeadc763e2e49a105db68a174dcb47002d12 100644 --- a/Code/DisparityMap/otbFineRegistrationImageFilter.txx +++ b/Code/DisparityMap/otbFineRegistrationImageFilter.txx @@ -253,7 +253,7 @@ FineRegistrationImageFilter<TInputImage, TOutputCorrelation, TOutputDeformationF // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/FeatureExtraction/otbLineDetectorImageFilterBase.txx b/Code/FeatureExtraction/otbLineDetectorImageFilterBase.txx index 897de2b57af09b112cdd511b73105c74f8602d3b..65d8ef5416b8475eeb6ffcfbabb104a0531d4d04 100644 --- a/Code/FeatureExtraction/otbLineDetectorImageFilterBase.txx +++ b/Code/FeatureExtraction/otbLineDetectorImageFilterBase.txx @@ -110,7 +110,7 @@ LineDetectorImageFilterBase<TInputImage, TOutputImage, TOutputImageDirection, In // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << static_cast<const char *>(this->GetNameOfClass()) << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/FeatureExtraction/otbPixelSuppressionByDirectionImageFilter.txx b/Code/FeatureExtraction/otbPixelSuppressionByDirectionImageFilter.txx index 387e3b0bce4ac276bc2b904bbf3c92763ac3c013..303cec1c2a384b763128145e0dac9d639dd3fc26 100644 --- a/Code/FeatureExtraction/otbPixelSuppressionByDirectionImageFilter.txx +++ b/Code/FeatureExtraction/otbPixelSuppressionByDirectionImageFilter.txx @@ -132,7 +132,7 @@ void PixelSuppressionByDirectionImageFilter<TInputImage, TOutputImage>::Generate // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << static_cast<const char *>(this->GetNameOfClass()) << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/FeatureExtraction/otbSFSTexturesImageFilter.txx b/Code/FeatureExtraction/otbSFSTexturesImageFilter.txx index 4bb2cb0a1a2353667196f37edee135cc3d445553..c12482f8797cdbdc378153f1b19c53172d7692b2 100644 --- a/Code/FeatureExtraction/otbSFSTexturesImageFilter.txx +++ b/Code/FeatureExtraction/otbSFSTexturesImageFilter.txx @@ -314,7 +314,7 @@ SFSTexturesImageFilter<TInputImage, TOutputImage> // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << this->GetNameOfClass() << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/FeatureExtraction/otbTouziEdgeDetectorImageFilter.txx b/Code/FeatureExtraction/otbTouziEdgeDetectorImageFilter.txx index 4f05359811f77ba15f1423ad371b68b91671cf62..e017ee15528938e9274217492ef3d263e922eace 100644 --- a/Code/FeatureExtraction/otbTouziEdgeDetectorImageFilter.txx +++ b/Code/FeatureExtraction/otbTouziEdgeDetectorImageFilter.txx @@ -84,7 +84,7 @@ void TouziEdgeDetectorImageFilter<TInputImage, TOutputImage, // build an exception itk::InvalidRequestedRegionError e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << static_cast<const char *>(this->GetNameOfClass()) << "::GenerateInputRequestedRegion()"; e.SetLocation(msg.str().c_str()); diff --git a/Code/IO/otbBSQImageIO.cxx b/Code/IO/otbBSQImageIO.cxx index 94162cf82cb5f1c7a70014072e49c772383921bb..3a0144dc347d709d1789834da3c426c8f2a07e7e 100644 --- a/Code/IO/otbBSQImageIO.cxx +++ b/Code/IO/otbBSQImageIO.cxx @@ -437,7 +437,7 @@ bool BSQImageIO::InternalReadHeaderInformation(const std::string& file_name, std m_ChannelsFileName.clear(); for (unsigned int i = 0; i < this->GetNumberOfComponents(); ++i) { - itk::OStringStream lStream; + std::ostringstream lStream; lStream << lRootName << ".c" << i + 1; m_ChannelsFileName.push_back(lStream.str()); } @@ -641,7 +641,7 @@ void BSQImageIO::WriteImageInformation() m_ChannelsFileName.clear(); for (unsigned int i = 0; i < this->GetNumberOfComponents(); ++i) { - itk::OStringStream lStream; + std::ostringstream lStream; lStream << lRootName << ".c" << i + 1; m_ChannelsFileName.push_back(lStream.str()); } diff --git a/Code/IO/otbGDALImageIO.cxx b/Code/IO/otbGDALImageIO.cxx index a5011510ed329b6536d4db9a2905e35fa478c77a..c1c128c5f39c681af47b653f1fb410db98d7eb53 100644 --- a/Code/IO/otbGDALImageIO.cxx +++ b/Code/IO/otbGDALImageIO.cxx @@ -891,7 +891,7 @@ void GDALImageIO::InternalReadImageInformation() pOtbGCP.m_GCPZ = psGCP->dfGCPZ; // Complete the key with the GCP number : GCP_i - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << cpt; key = lStream.str(); @@ -964,7 +964,7 @@ void GDALImageIO::InternalReadImageInformation() for (int cpt = 0; papszMetadata[cpt] != NULL; cpt++) { - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::MetadataKey << cpt; key = lStream.str(); @@ -984,7 +984,7 @@ void GDALImageIO::InternalReadImageInformation() for (int cpt = 0; papszMetadata[cpt] != NULL; cpt++) { - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::SubMetadataKey << cpt; key = lStream.str(); @@ -1414,7 +1414,7 @@ void GDALImageIO::InternalWriteImageInformation(const void* buffer) // Now initialize the itk dictionary itk::MetaDataDictionary& dict = this->GetMetaDataDictionary(); - itk::OStringStream oss; + std::ostringstream oss; GDALDataset* dataset = m_Dataset->GetDataSet(); /* -------------------------------------------------------------------- */ @@ -1432,7 +1432,7 @@ void GDALImageIO::InternalWriteImageInformation(const void* buffer) for (unsigned int gcpIndex = 0; gcpIndex < gcpCount; ++gcpIndex) { //Build the GCP string in the form of GCP_n - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << gcpIndex; std::string key = lStream.str(); diff --git a/Code/IO/otbImageFileReader.txx b/Code/IO/otbImageFileReader.txx index 5b99832d76bbd2ed8487441968838d05996dd0d2..8c96e43412e6e7eaa0fd95bbdb9e9eec971af8f7 100644 --- a/Code/IO/otbImageFileReader.txx +++ b/Code/IO/otbImageFileReader.txx @@ -261,7 +261,7 @@ ImageFileReader<TOutputImage> { this->Print(std::cerr); itk::ImageFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not create IO object for file " << this->m_FileName.c_str() << std::endl; msg << " Tried to create one of the following:" << std::endl; @@ -429,7 +429,7 @@ ImageFileReader<TOutputImage> if (res != 0 && res != 63) // 63 stands for filesize exceed { itk::ImageFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << "File name is an http address, but curl fails to connect to it " << std::endl << "Filename = " << this->m_FileName << std::endl << "Curl error code = " << res @@ -456,7 +456,7 @@ ImageFileReader<TOutputImage> if (!itksys::SystemTools::FileExists(this->m_FileName.c_str())) { itk::ImageFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file doesn't exist. " << std::endl << "Filename = " << this->m_FileName << std::endl; @@ -474,7 +474,7 @@ ImageFileReader<TOutputImage> if (readTester.fail()) { readTester.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file couldn't be opened for reading. " << std::endl << "Filename: " << this->m_FileName << std::endl; diff --git a/Code/IO/otbImageMetadataInterfaceBase.cxx b/Code/IO/otbImageMetadataInterfaceBase.cxx index 18b23902e31ade4981937123fe7a284eaa9d18cc..a7eb462d888eb349985b2ac5eed40071c6ea7bfc 100644 --- a/Code/IO/otbImageMetadataInterfaceBase.cxx +++ b/Code/IO/otbImageMetadataInterfaceBase.cxx @@ -79,7 +79,7 @@ ImageMetadataInterfaceBase::GetGCPs(unsigned int GCPnum) std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -97,7 +97,7 @@ ImageMetadataInterfaceBase::GetGCPId(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -116,7 +116,7 @@ ImageMetadataInterfaceBase::GetGCPInfo(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -135,7 +135,7 @@ ImageMetadataInterfaceBase::GetGCPRow(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -154,7 +154,7 @@ ImageMetadataInterfaceBase::GetGCPCol(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -173,7 +173,7 @@ ImageMetadataInterfaceBase::GetGCPX(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -192,7 +192,7 @@ ImageMetadataInterfaceBase::GetGCPY(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); @@ -211,7 +211,7 @@ ImageMetadataInterfaceBase::GetGCPZ(unsigned int GCPnum) const std::string key; const MetaDataDictionaryType& dict = this->GetMetaDataDictionary(); - itk::OStringStream lStream; + std::ostringstream lStream; lStream << MetaDataKey::GCPParametersKey << GCPnum; key = lStream.str(); diff --git a/Code/IO/otbImageSeriesFileReader.txx b/Code/IO/otbImageSeriesFileReader.txx index 2ee311ba65156ff10569e5d58c8fc76d9883229d..c5ec654260c1824946505cecbfc81d6d75f37b93 100644 --- a/Code/IO/otbImageSeriesFileReader.txx +++ b/Code/IO/otbImageSeriesFileReader.txx @@ -49,7 +49,7 @@ void ImageSeriesFileReader<TImage, TInternalImage> ::GenerateData(unsigned int idx) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Something wrong... Check the template definition of this class in the program...\n"; msg << "\"ENVI META FILE\" FileName: " << this->m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -95,7 +95,7 @@ ImageSeriesFileReader<Image<TPixel, 2>, Image<TInternalPixel, 2> > { if (bands.size() != 1) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to handle multicomponent file from Image<> class\n"; msg << "\"ENVI META FILE\" FileName: " << this->m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -104,7 +104,7 @@ ImageSeriesFileReader<Image<TPixel, 2>, Image<TInternalPixel, 2> > if (bands[0] != 1) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to handle given band reading from multicomponent file with Image<> class\n"; msg << "\"ENVI META FILE\" FileName: " << this->m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -185,7 +185,7 @@ ImageSeriesFileReader<Image<TPixel, 2>, VectorImage<TInternalPixel, 2> > { if (bands.size() != 1) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to handle multicomponent file from Image<> class as output\n"; msg << "\"ENVI META FILE\" FileName: " << this->m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); diff --git a/Code/IO/otbImageSeriesFileReaderBase.txx b/Code/IO/otbImageSeriesFileReaderBase.txx index 2d33ff714ed1b247becd1abbb2fc8ba6555fee00..3852dfbb34073344853aa5aceae54cb738fb2620 100644 --- a/Code/IO/otbImageSeriesFileReaderBase.txx +++ b/Code/IO/otbImageSeriesFileReaderBase.txx @@ -114,7 +114,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (aLine != "ENVI") { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file " << m_FileName << " is not a \"ENVI META FILE\" format\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); throw e; @@ -125,7 +125,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (aLine != "META") { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file " << m_FileName << " is not a \"ENVI META FILE\" format\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); throw e; @@ -136,7 +136,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (aLine != "FILE") { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file " << m_FileName << " is not a \"ENVI META FILE\" format\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); throw e; @@ -167,7 +167,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (!inputFile.good()) { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to read image files in the \"ENVI META FILE\" file \n"; msg << "FileName: " << m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -201,7 +201,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (!inputFile.good()) { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to read the number of bands in the images in the \"ENVI META FILE\" file \n"; msg << "FileName: " << m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -242,7 +242,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> } catch (ImageSeriesFileReaderException & e) { - itk::OStringStream msg; + std::ostringstream msg; msg << e.GetDescription(); msg << "Image FileName : " << imageFileName << "\n"; e.SetDescription(msg.str().c_str()); @@ -272,7 +272,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (!inputFile.good()) { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to read image region in the \"ENVI META FILE\" file \n"; msg << "FileName : " << m_FileName << "\n"; msg << "ImageName: " << imageFileName << "\n"; @@ -289,7 +289,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (!inputFile.good()) { inputFile.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "Unable to read image region selection in the \"ENVI META FILE\" file \n"; msg << "FileName : " << m_FileName << "\n"; msg << "ImageName: " << imageFileName << "\n"; @@ -334,7 +334,7 @@ void ImageSeriesFileReaderBase<TImage, TInternalImage> ::GenerateData(unsigned int idx) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Something wrong... Check the template definition of this class in the program...\n"; msg << "\"ENVI META FILE\" FileName: " << m_FileName << "\n"; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -417,7 +417,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (fileType != kImageFileName) { ImageSeriesFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file doesn't exist. \n"; if (fileType == kFileName) msg << "Filename = " << file << "\n"; else msg << "File = " << file << "\n"; @@ -437,7 +437,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (!itksys::SystemTools::FileExists(fullFileName.c_str())) { ImageSeriesFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << "The image file doesn't exist. \n"; msg << "ImageFileName = " << file << "\n"; msg << "tested path = " << itksys::SystemTools::GetFilenamePath(m_FileName) << "\n"; @@ -460,7 +460,7 @@ ImageSeriesFileReaderBase<TImage, TInternalImage> if (readTester.fail()) { readTester.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file couldn't be opened for reading. " << std::endl << "Filename: " << file << std::endl; ImageSeriesFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); diff --git a/Code/IO/otbKmzProductWriter.txx b/Code/IO/otbKmzProductWriter.txx index 25d7ec04a31b07981f7a415dd5ed81053d29caeb..029df5bd0429f25edee2e83e7c89abfde7baf4f0 100644 --- a/Code/IO/otbKmzProductWriter.txx +++ b/Code/IO/otbKmzProductWriter.txx @@ -189,10 +189,10 @@ KmzProductWriter<TInputImage> m_VectorWriter->Update(); // Add the logo to the kmz - itk::OStringStream logo_root_path_in_kmz; + std::ostringstream logo_root_path_in_kmz; logo_root_path_in_kmz << "logo.jpeg"; - itk::OStringStream logo_absolut_path; + std::ostringstream logo_absolut_path; logo_absolut_path << logoFilename.str(); this->AddFileToKMZ(logo_absolut_path, logo_root_path_in_kmz); @@ -228,10 +228,10 @@ KmzProductWriter<TInputImage> m_VectorWriter->Update(); // Add the legend to the kmz - itk::OStringStream legend_root_path_in_kmz; + std::ostringstream legend_root_path_in_kmz; legend_root_path_in_kmz << "legends/legend_" << idx << ".jpeg"; - itk::OStringStream legend_absolut_path; + std::ostringstream legend_absolut_path; legend_absolut_path << legendName.str(); this->AddFileToKMZ(legend_absolut_path, legend_root_path_in_kmz); @@ -1435,7 +1435,7 @@ KmzProductWriter<TInputImage> std::string currentImageName; std::string tempName; - itk::OStringStream oss; + std::ostringstream oss; oss << "tiles_" << idx; tempName = oss.str(); diff --git a/Code/IO/otbMapFileProductWriter.txx b/Code/IO/otbMapFileProductWriter.txx index 8b7784729fdd3491d9c5d5112004f49cfb93348b..b5a1f12298225c10e965fafe46667f058da55db3 100644 --- a/Code/IO/otbMapFileProductWriter.txx +++ b/Code/IO/otbMapFileProductWriter.txx @@ -466,7 +466,7 @@ MapFileProductWriter<TInputImage> m_Polygon->SetNodeType(otb::FEATURE_POLYGON); m_Polygon->SetPolygonExteriorRing(poly); - itk::OStringStream oss; + std::ostringstream oss; oss << "tiles/tile_"; oss <<m_CurrentDepth <<"_"<< x <<"_"<< y <<".tif"; diff --git a/Code/IO/otbPointSetFileReader.txx b/Code/IO/otbPointSetFileReader.txx index a5fca53fe28cdc494a12fa3a4a636f24c9399ff5..36ecfb8ac1265fb9d1be826712a42ecc0c25b2c3 100644 --- a/Code/IO/otbPointSetFileReader.txx +++ b/Code/IO/otbPointSetFileReader.txx @@ -89,7 +89,7 @@ PointSetFileReader<TOutputPointSet> if (!itksys::SystemTools::FileExists(m_FileName.c_str())) { itk::ImageFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file doesn't exist. " << std::endl << "Filename = " << m_FileName << std::endl; @@ -104,7 +104,7 @@ PointSetFileReader<TOutputPointSet> if (readTester.fail()) { readTester.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file couldn't be opened for reading. " << std::endl << "Filename: " << m_FileName << std::endl; diff --git a/Code/IO/otbRADImageIO.cxx b/Code/IO/otbRADImageIO.cxx index bae07174d6532943e9c3283819d3889362548fbe..687441f6b9307cc5bea19916e73b19472f5c1920 100644 --- a/Code/IO/otbRADImageIO.cxx +++ b/Code/IO/otbRADImageIO.cxx @@ -456,7 +456,7 @@ bool RADImageIO::InternalReadHeaderInformation(const std::string& file_name, std for (unsigned int i = 0; i < m_NbOfChannels; ++i) { file >> lString; - itk::OStringStream lStream; + std::ostringstream lStream; lStream << lPathName << "/" << lString; m_ChannelsFileName.push_back(lStream.str()); @@ -721,7 +721,7 @@ void RADImageIO::WriteImageInformation() m_ChannelsFileName.clear(); for (unsigned int i = 0; i < m_NbOfChannels; ++i) { - itk::OStringStream lStream; + std::ostringstream lStream; lStream << lRootName << "_" << i + 1 << lExtension; m_ChannelsFileName.push_back(lStream.str()); } diff --git a/Code/IO/otbSpectralSensitivityReader.cxx b/Code/IO/otbSpectralSensitivityReader.cxx index 4a8e7addc318e5156680ca71fd34b17722bcfbd5..3b936979283d2417f95b8f124f477ab69776b57b 100644 --- a/Code/IO/otbSpectralSensitivityReader.cxx +++ b/Code/IO/otbSpectralSensitivityReader.cxx @@ -76,7 +76,7 @@ SpectralSensitivityReader } std::string sensor(""); - itk::OStringStream oss; + std::ostringstream oss; try { diff --git a/Code/IO/otbStreamingImageFileWriter.txx b/Code/IO/otbStreamingImageFileWriter.txx index 569169fa6f21d6b607fd2bc556fee85e91e672aa..4cce8aff08096f0e7c06b5b3a8aa4de8a05aa991 100644 --- a/Code/IO/otbStreamingImageFileWriter.txx +++ b/Code/IO/otbStreamingImageFileWriter.txx @@ -427,7 +427,7 @@ StreamingImageFileWriter<TInputImage> if (m_ImageIO.IsNull()) { itk::ImageFileWriterException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not create IO object for file " << m_FileName.c_str() << std::endl; msg << " Tried to create one of the following:" << std::endl; diff --git a/Code/IO/otbTerraSarImageMetadataInterface.cxx b/Code/IO/otbTerraSarImageMetadataInterface.cxx index 6ec4d42f8a0955ffb88f218548cc7c0dde631f51..fa9f2a6481c7ed41eea7c0c692d67a67e81b0d29 100644 --- a/Code/IO/otbTerraSarImageMetadataInterface.cxx +++ b/Code/IO/otbTerraSarImageMetadataInterface.cxx @@ -374,7 +374,7 @@ TerraSarImageMetadataInterface::GetNoisePolynomialDegrees(unsigned int noiseReco itk::ExposeMetaData<ImageKeywordlistType>(dict, MetaDataKey::OSSIMKeywordlistKey, imageKeywordlist); } - itk::OStringStream oss; + std::ostringstream oss; oss.str(""); oss << "noise[" << noiseRecord << "]imageNoise.noiseEstimate.polynomialDegree"; std::string key = oss.str(); @@ -406,7 +406,7 @@ TerraSarImageMetadataInterface::GetNoisePolynomialDegrees() const } UIntVectorType polDeg; - itk::OStringStream oss; + std::ostringstream oss; unsigned int nbRec = this->GetNumberOfNoiseRecords(); for (unsigned int i = 0; i < nbRec; i++) @@ -443,7 +443,7 @@ TerraSarImageMetadataInterface unsigned int polDegs = this->GetNoisePolynomialDegrees(noiseRecord); DoubleVectorType polCoef; - itk::OStringStream oss; + std::ostringstream oss; polCoef.clear(); // set <= condition because degree N means N+1 coeff @@ -482,7 +482,7 @@ TerraSarImageMetadataInterface::GetNoisePolynomialCoefficientsList() const DoubleVectorVectorType polCoefList; DoubleVectorType polCoef; - itk::OStringStream oss; + std::ostringstream oss; for (unsigned int i = 0; i < nbRec; i++) { @@ -521,7 +521,7 @@ TerraSarImageMetadataInterface } DoubleVectorType timeList; - itk::OStringStream oss; + std::ostringstream oss; oss.str(""); oss << "noise[" << noiseRecord << "]imageNoise.timeUTC"; @@ -582,7 +582,7 @@ TerraSarImageMetadataInterface::GetNoiseTimeUTCList() const } DoubleVectorType timeList; - itk::OStringStream oss; + std::ostringstream oss; unsigned int nbRec = this->GetNumberOfNoiseRecords(); for (unsigned int i = 0; i < nbRec; i++) @@ -615,7 +615,7 @@ TerraSarImageMetadataInterface::GetNoiseValidityRangeMaxList() const } DoubleVectorType maxList; - itk::OStringStream oss; + std::ostringstream oss; unsigned int nbRec = this->GetNumberOfNoiseRecords(); for (unsigned int i = 0; i < nbRec; i++) @@ -646,7 +646,7 @@ TerraSarImageMetadataInterface::GetNoiseValidityRangeMinList() const } DoubleVectorType minList; - itk::OStringStream oss; + std::ostringstream oss; unsigned int nbRec = this->GetNumberOfNoiseRecords(); for (unsigned int i = 0; i < nbRec; i++) @@ -679,7 +679,7 @@ TerraSarImageMetadataInterface } double refPoint; - itk::OStringStream oss; + std::ostringstream oss; oss.str(""); oss << "noise[" << noiseRecord << "]imageNoise.noiseEstimate.referencePoint"; @@ -707,7 +707,7 @@ TerraSarImageMetadataInterface::GetNoiseReferencePointList() const } DoubleVectorType refPointList; - itk::OStringStream oss; + std::ostringstream oss; unsigned int nbRec = this->GetNumberOfNoiseRecords(); for (unsigned int i = 0; i < nbRec; i++) @@ -824,7 +824,7 @@ TerraSarImageMetadataInterface::GetMeanIncidenceAngles() const sum += value; unsigned int nbAngles = this->GetNumberOfCornerIncidenceAngles(); - itk::OStringStream oss; + std::ostringstream oss; for (unsigned int i = 0; i < nbAngles; i++) { oss.str(""); @@ -892,7 +892,7 @@ TerraSarImageMetadataInterface::GetCornersIncidenceAngles() const itk::ExposeMetaData<ImageKeywordlistType>(dict, MetaDataKey::OSSIMKeywordlistKey, imageKeywordlist); } - itk::OStringStream oss; + std::ostringstream oss; unsigned int nbAngles = this->GetNumberOfCornerIncidenceAngles(); for (unsigned int i = 0; i < nbAngles; i++) @@ -922,8 +922,8 @@ TerraSarImageMetadataInterface::GetCornersIncidenceAnglesIndex() const } - itk::OStringStream oss; - itk::OStringStream oss2; + std::ostringstream oss; + std::ostringstream oss2; unsigned int nbAngles = this->GetNumberOfCornerIncidenceAngles(); for (unsigned int i = 0; i < nbAngles; i++) diff --git a/Code/IO/otbTileMapImageIO.cxx b/Code/IO/otbTileMapImageIO.cxx index acb2aaec4d20a6f8c990feadfd9a5f86177ed0af..0b3ff5fbad0f67af3fc8649f88f207231dfff589 100644 --- a/Code/IO/otbTileMapImageIO.cxx +++ b/Code/IO/otbTileMapImageIO.cxx @@ -820,7 +820,7 @@ void TileMapImageIO::SetCacheDirectory(const char* _arg) // if existing dir, check writable if ( itksys::SystemTools::FileIsDirectory( _arg ) ) { - itk::OStringStream oss; + std::ostringstream oss; oss<<_arg<<"/foo"; if( itksys::SystemTools::Touch( oss.str().c_str(), true ) == false ) { diff --git a/Code/IO/otbVectorDataFileReader.txx b/Code/IO/otbVectorDataFileReader.txx index 802994e14c19a51d5eefa19223c38596fbb8b21a..e40b555ddca86189204495130956bb8c1ba56137 100644 --- a/Code/IO/otbVectorDataFileReader.txx +++ b/Code/IO/otbVectorDataFileReader.txx @@ -63,7 +63,7 @@ VectorDataFileReader<TOutputVectorData> if (!itksys::SystemTools::FileExists(this->m_FileName.c_str())) { VectorDataFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file doesn't exist. " << std::endl << "Filename = " << this->m_FileName << std::endl; @@ -83,7 +83,7 @@ VectorDataFileReader<TOutputVectorData> if (readTester.fail()) { readTester.close(); - itk::OStringStream msg; + std::ostringstream msg; msg << "The file couldn't be opened for reading. " << std::endl << "Filename: " << this->m_FileName << std::endl; @@ -147,7 +147,7 @@ VectorDataFileReader<TOutputVectorData> if (m_VectorDataIO.IsNull()) { - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not create IO object for file " << m_FileName.c_str() << std::endl; if (m_ExceptionMessage.size()) diff --git a/Code/IO/otbVectorDataFileWriter.txx b/Code/IO/otbVectorDataFileWriter.txx index 467e0507e6188158617b83c6fea5857f54b55f68..bafe1cfcd08264394e96ec9dfca5f263f4f795ce 100644 --- a/Code/IO/otbVectorDataFileWriter.txx +++ b/Code/IO/otbVectorDataFileWriter.txx @@ -132,7 +132,7 @@ VectorDataFileWriter<TInputVectorData> if (m_VectorDataIO.IsNull()) { VectorDataFileWriterException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not create IO object for file " << m_FileName.c_str() << std::endl; msg << " Tried to create one of the following:" << std::endl; diff --git a/Code/Markov/otbMarkovRandomFieldFilter.txx b/Code/Markov/otbMarkovRandomFieldFilter.txx index 950b6abbd917a20983738a2fee5d745b4f6ae19d..67621ee4148d1c55377f52be14cba35859516367 100644 --- a/Code/Markov/otbMarkovRandomFieldFilter.txx +++ b/Code/Markov/otbMarkovRandomFieldFilter.txx @@ -45,7 +45,7 @@ MarkovRandomFieldFilter<TInputImage, TClassifiedImage> this->SetNumberOfRequiredInputs(1); if ((int) InputImageDimension != (int) ClassifiedImageDimension) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Input image dimension: " << InputImageDimension << " != output image dimension: " << ClassifiedImageDimension; throw itk::ExceptionObject(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); diff --git a/Code/MultiScale/otbWaveletFilterBank.txx b/Code/MultiScale/otbWaveletFilterBank.txx index b88adba43a799e29f7fdcd2deadb842f2fb482dc..b5806fb97235e202efc4b1300f430ee8a5929635 100644 --- a/Code/MultiScale/otbWaveletFilterBank.txx +++ b/Code/MultiScale/otbWaveletFilterBank.txx @@ -381,7 +381,7 @@ WaveletFilterBank<TInputImage, TOutputImage, TWaveletOperator, Wavelet::FORWARD> if ((1 << dir) >= static_cast<int>(this->GetNumberOfOutputs())) { - itk::OStringStream msg; + std::ostringstream msg; msg << "Output number 1<<" << dir << " = " << (1 << dir) << " not allocated\n"; msg << "Number of excpected outputs " << this->GetNumberOfOutputs() << "\n"; throw itk::ExceptionObject(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); diff --git a/Code/MultiScale/otbWaveletGenerator.cxx b/Code/MultiScale/otbWaveletGenerator.cxx index b9c6099cb97da1e525d0468d34d2f6a6f3a731a4..6cc37420c0697b674bcba7f26872282c587ace1f 100644 --- a/Code/MultiScale/otbWaveletGenerator.cxx +++ b/Code/MultiScale/otbWaveletGenerator.cxx @@ -35,7 +35,7 @@ const char * WaveletGenerator<TMotherWaveletOperator> ::GetWaveletName() const { - itk::OStringStream msg; + std::ostringstream msg; msg << "The mother wavelet ID " << TMotherWaveletOperator; msg << " is unkown or has to be implemented...\n"; throw itk::ExceptionObject(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -48,7 +48,7 @@ void WaveletGenerator<TMotherWaveletOperator> ::GetLowPassCoefficientVector(CoefficientVector& coeff) const { - itk::OStringStream msg; + std::ostringstream msg; msg << "The mother wavelet ID " << TMotherWaveletOperator; msg << " is unkown or has to be implemented...\n"; throw itk::ExceptionObject(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); @@ -59,7 +59,7 @@ void WaveletGenerator<TMotherWaveletOperator> ::GetHighPassCoefficientVector(CoefficientVector& coeff) const { - itk::OStringStream msg; + std::ostringstream msg; msg << "The mother wavelet ID " << TMotherWaveletOperator; msg << " is unkown or has to be implemented (check the txx file)...\n"; throw itk::ExceptionObject(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION); diff --git a/Code/OBIA/otbShapeAttributesLabelMapFilter.txx b/Code/OBIA/otbShapeAttributesLabelMapFilter.txx index e82104ff1b5a5406d5c93498feaa153bc07a4e27..b54885e50557e8d2b8854d15c4e3181c6be5be56 100644 --- a/Code/OBIA/otbShapeAttributesLabelMapFilter.txx +++ b/Code/OBIA/otbShapeAttributesLabelMapFilter.txx @@ -648,7 +648,7 @@ ShapeAttributesLabelObjectFunctor<TLabelObject, TLabelImage> if (!m_ReducedAttributeSet) { lo->SetAttribute("SHAPE::Size", size); - itk::OStringStream oss; + std::ostringstream oss; for (unsigned int dim = 0; dim < LabelObjectType::ImageDimension; ++dim) { oss.str(""); diff --git a/Code/OBIA/otbStatisticsAttributesLabelMapFilter.txx b/Code/OBIA/otbStatisticsAttributesLabelMapFilter.txx index 0e7cf7d380f921fe6d55bef134439885dbb13535..af9c077dcad717cf39d5b9a6fbbce6dde033eb7d 100644 --- a/Code/OBIA/otbStatisticsAttributesLabelMapFilter.txx +++ b/Code/OBIA/otbStatisticsAttributesLabelMapFilter.txx @@ -80,7 +80,7 @@ StatisticsAttributesLabelObjectFunctor<TLabelObject, TFeatureImage> typename LabelObjectType::LineContainerType::const_iterator lit; typename LabelObjectType::LineContainerType& lineContainer = lo->GetLineContainer(); - itk::OStringStream oss; + std::ostringstream oss; FeatureType min = itk::NumericTraits<FeatureType>::max(); FeatureType max = itk::NumericTraits<FeatureType>::NonpositiveMin(); diff --git a/Code/Radiometry/otbSurfaceAdjacencyEffect6SCorrectionSchemeFilter.h b/Code/Radiometry/otbSurfaceAdjacencyEffect6SCorrectionSchemeFilter.h index 08e5d3b79b855bde30f570ac9e09f7c9d0caad51..49f99d5ec4b485f4101ad57ef6f19fd89a647c25 100644 --- a/Code/Radiometry/otbSurfaceAdjacencyEffect6SCorrectionSchemeFilter.h +++ b/Code/Radiometry/otbSurfaceAdjacencyEffect6SCorrectionSchemeFilter.h @@ -85,7 +85,7 @@ public: double contribution = 0.; TOutput outPixel; outPixel.SetSize(it.GetCenterPixel().Size()); - itk::OStringStream oss; + std::ostringstream oss; oss << std::fixed << std::setprecision(3); // Loop over each component diff --git a/Code/SpatialReasoning/otbRCC8GraphFileReader.txx b/Code/SpatialReasoning/otbRCC8GraphFileReader.txx index 355c159ba77de536108aca71f75c563fed0548a9..bc0fc1f1183386e0a642a08778109e21bebb444a 100644 --- a/Code/SpatialReasoning/otbRCC8GraphFileReader.txx +++ b/Code/SpatialReasoning/otbRCC8GraphFileReader.txx @@ -116,7 +116,7 @@ RCC8GraphFileReader<TOutputGraph> if (!fin) { RCC8GraphFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not create IO object for file "; msg << m_FileName << "." << std::endl; e.SetDescription(msg.str().c_str()); diff --git a/Code/SpatialReasoning/otbRCC8GraphFileWriter.txx b/Code/SpatialReasoning/otbRCC8GraphFileWriter.txx index 8b6101ef4af0939fd6493ee15c65b1976fe5707b..a9954ebcec9fd0862feaf46459fa28f19cb674c5 100644 --- a/Code/SpatialReasoning/otbRCC8GraphFileWriter.txx +++ b/Code/SpatialReasoning/otbRCC8GraphFileWriter.txx @@ -137,7 +137,7 @@ RCC8GraphFileWriter<TInputGraph> if (!out) { RCC8GraphFileWriterException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not create IO object for file "; msg << m_FileName << "." << std::endl; e.SetDescription(msg.str().c_str()); diff --git a/Code/SpatialReasoning/otbRCC8VertexBase.txx b/Code/SpatialReasoning/otbRCC8VertexBase.txx index 12a729e628f294f5baa2f4ae22f51c93c4371cc7..18b277453d42cde9520bdf94af2e67bd48fd4dbb 100644 --- a/Code/SpatialReasoning/otbRCC8VertexBase.txx +++ b/Code/SpatialReasoning/otbRCC8VertexBase.txx @@ -47,7 +47,7 @@ RCC8VertexBase<TPath> m_SegmentationType = static_cast<bool>(atoi(attributes["SegmentationType"].c_str())); unsigned int nbPoints = static_cast<unsigned int>(atoi(attributes["NumberOfPointsInPath"].c_str())); - itk::OStringStream oss; + std::ostringstream oss; m_Path = PathType::New(); m_Path->Initialize(); @@ -73,7 +73,7 @@ typename RCC8VertexBase<TPath>::AttributesMapType RCC8VertexBase<TPath> ::GetAttributesMap(void) { - itk::OStringStream oss; + std::ostringstream oss; AttributesMapType results; oss << m_SegmentationLevel; results["SegmentationLevel"] = oss.str(); diff --git a/Code/Testing/otbTestHelper.cxx b/Code/Testing/otbTestHelper.cxx index 1ca12b086202aac37a09ed1de7dece550e72be5b..6badcde5c2c3ffdf622c9b2e1491511e484f2bcb 100644 --- a/Code/Testing/otbTestHelper.cxx +++ b/Code/Testing/otbTestHelper.cxx @@ -679,7 +679,7 @@ int TestHelper::RegressionTestImage(int cpt, const char *testImageFilename, cons std::cout << toleranceDiffPixelImage; std::cout << "</DartMeasurement>" << std::endl; - itk::OStringStream diffName; + std::ostringstream diffName; diffName << testImageFilename << ".diff.png"; try { @@ -711,7 +711,7 @@ int TestHelper::RegressionTestImage(int cpt, const char *testImageFilename, cons std::cout << diffName.str(); std::cout << "</DartMeasurementFile>" << std::endl; - itk::OStringStream baseName; + std::ostringstream baseName; baseName << testImageFilename << ".base.png"; try { @@ -737,7 +737,7 @@ int TestHelper::RegressionTestImage(int cpt, const char *testImageFilename, cons std::cout << baseName.str(); std::cout << "</DartMeasurementFile>" << std::endl; - itk::OStringStream testName; + std::ostringstream testName; testName << testImageFilename << ".test.png"; try { @@ -986,7 +986,7 @@ std::map<std::string, int> TestHelper::RegressionTestBaselines(char *baselineFil } while (++x) { - itk::OStringStream filename; + std::ostringstream filename; filename << originalBaseline << "." << x << suffix; std::ifstream filestream(filename.str().c_str()); if (!filestream) diff --git a/Code/UtilitiesAdapters/OssimAdapters/otbAeronetFileReader.cxx b/Code/UtilitiesAdapters/OssimAdapters/otbAeronetFileReader.cxx index 5810d692065a79b4047cb1b8e02f225f599bf519..28a063cdee96da2a23f056dd1102cd664915dc53 100644 --- a/Code/UtilitiesAdapters/OssimAdapters/otbAeronetFileReader.cxx +++ b/Code/UtilitiesAdapters/OssimAdapters/otbAeronetFileReader.cxx @@ -227,7 +227,7 @@ AeronetFileReader if (!fin) { AeronetFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " Could not open IO object for file "; msg << m_FileName << "." << std::endl; e.SetDescription(msg.str().c_str()); @@ -262,7 +262,7 @@ AeronetFileReader ) { AeronetFileReaderException e(__FILE__, __LINE__); - itk::OStringStream msg; + std::ostringstream msg; msg << " The file "; msg << m_FileName << " is not conform." << std::endl; e.SetDescription(msg.str().c_str()); @@ -372,7 +372,7 @@ AeronetFileReader aeronetData->SetAngstromCoefficient(angst_mean); aeronetData->SetWater(water_mean); aeronetData->SetSolarZenithAngle(solarZenithAngle_mean); - itk::OStringStream msg; + std::ostringstream msg; msg << "(hh/mm/yyyy hh:mm:ss) " << m_Day << "/" << m_Month << "/" << m_Year << " " << m_Hour << ":" << m_Minute << ":00"; std::string str(msg.str()); diff --git a/Code/Visu/otbHistogramAndTransferFunctionWidget.txx b/Code/Visu/otbHistogramAndTransferFunctionWidget.txx index 0643952049733b7ef990bc7cdd454611bb696b9b..a24adb311ce0ae481f6e923e5068f6f4621047ff 100644 --- a/Code/Visu/otbHistogramAndTransferFunctionWidget.txx +++ b/Code/Visu/otbHistogramAndTransferFunctionWidget.txx @@ -199,7 +199,7 @@ HistogramAndTransferFunctionWidget<THistogram, TPixel> { double x, y; // rendering axis values - itk::OStringStream oss; + std::ostringstream oss; glColor3d(m_TextColor[0], m_TextColor[1], m_TextColor[2]); gl_font(FL_COURIER_BOLD, 10); double step = (m_Histogram->Quantile(0, 1.) - m_Histogram->Quantile(0, 0.)) diff --git a/Code/Visu/otbImageViewer.txx b/Code/Visu/otbImageViewer.txx index 5b75be8c102e2c4e19cd66e7648aab6fee063d38..ebcb8bcd6f48fb37f3650201fa99601370e09637 100644 --- a/Code/Visu/otbImageViewer.txx +++ b/Code/Visu/otbImageViewer.txx @@ -89,7 +89,7 @@ ImageViewer<TPixel, TLabel> ::Build(void) { Superclass::Build(); - itk::OStringStream oss; + std::ostringstream oss; int wfull = this->GetFullWidget()->w(); int hfull = this->GetFullWidget()->h(); @@ -219,7 +219,7 @@ void ImageViewer<TPixel, TLabel> ::Update(void) { - itk::OStringStream oss; + std::ostringstream oss; oss << this->GetLabel() << " - Zoom Window (X" << this->GetZoomWidget()->GetOpenGlIsotropicZoom() << ")"; if (oss.good()) { diff --git a/Code/Visu/otbImageViewerBase.txx b/Code/Visu/otbImageViewerBase.txx index 3f48fb625876bd441601add147f625ee34ad1fce..ce17b78da2774c1e6717ef4632ea1fa056107368 100644 --- a/Code/Visu/otbImageViewerBase.txx +++ b/Code/Visu/otbImageViewerBase.txx @@ -205,7 +205,7 @@ ImageViewerBase<TPixel, TLabel> itkExceptionMacro(<< "Input image and input image overlay do not have the same size !"); } - itk::OStringStream oss; + std::ostringstream oss; // Get the image dimension typename ImageType::SizeType size = m_InputImage->GetLargestPossibleRegion().GetSize(); m_ImageGeometry = static_cast<double>(size[0]) / static_cast<double>(size[1]); @@ -634,7 +634,7 @@ ImageViewerBase<TPixel, TLabel> //comment: std::cout<<"PixLocOutput == NULL, returning ..."<<std::endl; return; } - itk::OStringStream oss; + std::ostringstream oss; oss << index << " (image position)" << std::endl; PointType point; m_InputImage->TransformIndexToPhysicalPoint(index, point); diff --git a/Code/Visualization/otbImageLayer.txx b/Code/Visualization/otbImageLayer.txx index bfe98170cdf355cb71059c8bd952b79aed1d81db..2056059ea9a7a0f94faea9b236377cbe34587e5d 100644 --- a/Code/Visualization/otbImageLayer.txx +++ b/Code/Visualization/otbImageLayer.txx @@ -257,7 +257,7 @@ ImageLayer<TImage, TOutputImage> // Ensure rendering function intialization m_RenderingFunction->Initialize(m_Image->GetMetaDataDictionary()); //FIXME check, but the call must be done in the generator. To be moved to the layer? // The ouptut stringstream - itk::OStringStream oss; + std::ostringstream oss; oss << otbGetTextMacro("Layer") << ": " << this->GetName(); oss << std::endl << otbGetTextMacro("Image size") << ": " << m_Image->GetLargestPossibleRegion().GetSize() << std::endl; diff --git a/Code/Visualization/otbPixelDescriptionModel.txx b/Code/Visualization/otbPixelDescriptionModel.txx index f666eed9a6e6d5e953d3653094cce0cb7eef53e4..c0798d06e45f8e93a57a079b625851348894c9fd 100644 --- a/Code/Visualization/otbPixelDescriptionModel.txx +++ b/Code/Visualization/otbPixelDescriptionModel.txx @@ -50,7 +50,7 @@ PixelDescriptionModel<TOutputImage> ::UpdatePixelDescription(const IndexType& index) { // The output stringstream - itk::OStringStream oss; + std::ostringstream oss; oss << otbGetTextMacro("Index") << ": " << index << std::endl; // Report pixel info for each visible layer for (typename Superclass::LayerIteratorType it = this->GetLayers()->Begin(); diff --git a/Code/Visualization/otbSplittedWidgetManager.cxx b/Code/Visualization/otbSplittedWidgetManager.cxx index e691cc33431e8c4176c3cb329afdf354fe5c3021..7e38349cbe64b47970f8d84f0ab778dd3d3c2eeb 100644 --- a/Code/Visualization/otbSplittedWidgetManager.cxx +++ b/Code/Visualization/otbSplittedWidgetManager.cxx @@ -127,27 +127,27 @@ void SplittedWidgetManager ::SetLabel(const char * label) { - itk::OStringStream oss1; + std::ostringstream oss1; oss1.str(""); oss1 << "Full Widget - " << label; m_SplittedWidget->m_FullGroup->copy_label(oss1.str().c_str()); - itk::OStringStream oss2; + std::ostringstream oss2; oss2.str(""); oss2 << "Zoom Widget - " << label; m_SplittedWidget->m_ZoomGroup->copy_label(oss2.str().c_str()); - itk::OStringStream oss3; + std::ostringstream oss3; oss3.str(""); oss3 << "Pixel Information Widget - " << label; m_SplittedWidget->m_PixelDescriptionGroup->copy_label(oss3.str().c_str()); - itk::OStringStream oss4; + std::ostringstream oss4; oss4.str(""); oss4 << "Scroll Widget - " << label; m_SplittedWidget->m_QuicklookGroup->copy_label(oss4.str().c_str()); - itk::OStringStream oss5; + std::ostringstream oss5; oss5.str(""); oss5 << "Histogram Widget - " << label; m_SplittedWidget->m_HistogramsGroup->copy_label(oss5.str().c_str()); diff --git a/Code/Visualization/otbStandardRenderingFunction.h b/Code/Visualization/otbStandardRenderingFunction.h index ae5dafa3ee0aa5aac6b6a0f61586291189027ec4..a11af96614fb44c6f0bb80521711f6ef2e484772 100644 --- a/Code/Visualization/otbStandardRenderingFunction.h +++ b/Code/Visualization/otbStandardRenderingFunction.h @@ -274,7 +274,7 @@ public: const std::string Describe(const PixelType& spixel) const { - itk::OStringStream oss; + std::ostringstream oss; oss << m_PixelRepresentationFunction->GetDescription() << ": "; typename PixelRepresentationFunctionType::ChannelListType channels; channels = m_PixelRepresentationFunction->GetChannelList();