1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkIOStream.h,v $
6 Date: $Date: 2003/04/18 15:51:24 $
7 Version: $Revision: 1.2.2.1 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkIOStream - Include C++ iostreams as used by VTK.
19 // .SECTION Description
20 // VTK supports both ANSI and old-style streams. This header includes
21 // the proper streams according to VTK_USE_ANSI_STDLIB.
23 #ifndef __vtkIOStream_h
24 #define __vtkIOStream_h
26 #include "vtkConfigure.h"
28 #ifdef VTK_USE_ANSI_STDLIB
31 #pragma warning (push, 3)
34 # include <iostream> // Include real ansi istream and ostream.
35 # include <strstream> // Include real ansi strstreams.
36 # include <fstream> // Include real ansi ifstream and ofstream.
37 # include <iomanip> // Include real ansi io manipulators.
39 // Need these in global namespace so the same code will work with ansi
40 // and old-style streams.
45 using std::setprecision;
54 using std::ostrstream;
55 using std::istrstream;
67 // Include old-style streams.
69 # include "vtkWinCE.h" // Include mini-streams for Windows CE.
71 # include <iostream.h> // Include old-style istream and ostream.
72 # if defined(_MSC_VER)
73 # include <strstrea.h> // Include old-style strstream from MSVC.
75 # include <strstream.h> // Include old-style strstream.
77 # include <fstream.h> // Include old-style ifstream and ofstream.
81 #endif // __vtkIOStream_h