X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FVTKTestWriteSeq.cxx;h=debaf8c427489005ce1205e79e5c5a1d436b8e1e;hb=4552d4ee18f3234af4e037e77abf0622c2702004;hp=a34c018c3ec87ca2e3328d9d16869668993491ff;hpb=42b5b1fda1b91860c4708a5706600a913da219f3;p=gdcm.git diff --git a/Testing/VTKTestWriteSeq.cxx b/Testing/VTKTestWriteSeq.cxx index a34c018c..debaf8c4 100644 --- a/Testing/VTKTestWriteSeq.cxx +++ b/Testing/VTKTestWriteSeq.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestWriteSeq.cxx,v $ Language: C++ - Date: $Date: 2005/03/23 20:26:13 $ - Version: $Revision: 1.3 $ + Date: $Date: 2007/09/18 07:58:39 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,6 +26,7 @@ #include "vtkImageShiftScale.h" #include +#include //Generated file: #include "gdcmDataSeqImages.h" @@ -39,7 +40,7 @@ int VTKWriteSeqTest(vtkTesting *t, vtkImageViewer *viewer, std::string const &filename, std::string const &referenceFileName) { - int retVal = 0; //by default this is an error + int retVal; // Set the reader vtkGdcmReader *reader = vtkGdcmReader::New(); @@ -67,7 +68,8 @@ int VTKWriteSeqTest(vtkTesting *t, vtkImageViewer *viewer, // Write the image vtkGdcmWriter *writer = vtkGdcmWriter::New(); writer->SetFilePattern("%s%02d.dcm"); - writer->SetFilePrefix("TestWrite"); + char filePrefix[] = "TestWrite"; + writer->SetFilePrefix(filePrefix); writer->SetFileDimensionality(2); writer->SetInput(reader->GetOutput()); writer->Write(); @@ -106,7 +108,7 @@ int VTKWriteSeqTest(vtkTesting *t, vtkImageViewer *viewer, // make test int ret = 0; - ostrstream str; + std::ostringstream str; char *newFilePng = new char[referenceFileName.size()+1]; for(int j=0;jfreeze(1); if( retVal == vtkTesting::PASSED ) { @@ -218,7 +219,7 @@ int VTKTestWriteSeq(int argc, char *argv[]) } } - gdcm::Debug::DebugOn(); + GDCM_NAME_SPACE::Debug::DebugOn(); int ret = 0; vtkTesting *t = vtkTesting::New();