Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Common/vtkIOStream.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkIOStream.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00037 #ifndef __vtkIOStream_h
00038 #define __vtkIOStream_h
00039 
00040 #include "vtkConfigure.h"
00041 
00042 #ifdef VTK_USE_ANSI_STDLIB
00043 
00044 #ifdef _MSC_VER
00045 #pragma warning (push, 3)
00046 #endif
00047 
00048 # include <iostream>  // Include real ansi istream and ostream.
00049 # include <strstream> // Include real ansi strstreams.
00050 # include <fstream>   // Include real ansi ifstream and ofstream.
00051 # include <iomanip>   // Include real ansi io manipulators.
00052 
00053 // Need these in global namespace so the same code will work with ansi
00054 // and old-style streams.
00055 using std::dec;
00056 using std::hex;
00057 using std::setw;
00058 using std::setfill;
00059 using std::setprecision;
00060 using std::cerr;
00061 using std::cout;
00062 using std::cin;
00063 using std::ios;
00064 using std::endl;
00065 using std::ends;
00066 using std::ostream;
00067 using std::istream;
00068 using std::ostrstream;
00069 using std::istrstream;
00070 using std::strstream;
00071 using std::ofstream;
00072 using std::ifstream;
00073 using std::fstream;
00074 
00075 #ifdef _MSC_VER
00076 #pragma warning(pop)
00077 #endif
00078 
00079 #else
00080 
00081 // Include old-style streams.
00082 # ifdef _WIN32_WCE
00083 #  include "vtkWinCE.h"   // Include mini-streams for Windows CE.
00084 # else
00085 #  include <iostream.h>   // Include old-style istream and ostream.
00086 #  if defined(_MSC_VER)
00087 #   include <strstrea.h>  // Include old-style strstream from MSVC.
00088 #  else
00089 #   include <strstream.h> // Include old-style strstream.
00090 #  endif
00091 #  include <fstream.h>    // Include old-style ifstream and ofstream.
00092 # endif
00093 #endif
00094 
00095 #endif // __vtkIOStream_h