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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00022 #ifndef __vtkIOStream_h
00023 #define __vtkIOStream_h
00024 
00025 #include "vtkConfigure.h"
00026 
00027 #ifdef VTK_USE_ANSI_STDLIB
00028 
00029 #ifdef _MSC_VER
00030 #pragma warning (push, 3)
00031 #endif
00032 
00033 # include <iostream>  // Include real ansi istream and ostream.
00034 # include <strstream> // Include real ansi strstreams.
00035 # include <fstream>   // Include real ansi ifstream and ofstream.
00036 # include <iomanip>   // Include real ansi io manipulators.
00037 
00038 // Need these in global namespace so the same code will work with ansi
00039 // and old-style streams.
00040 using std::dec;
00041 using std::hex;
00042 using std::setw;
00043 using std::setfill;
00044 using std::setprecision;
00045 using std::cerr;
00046 using std::cout;
00047 using std::cin;
00048 using std::ios;
00049 using std::endl;
00050 using std::ends;
00051 using std::ostream;
00052 using std::istream;
00053 using std::ostrstream;
00054 using std::istrstream;
00055 using std::strstream;
00056 using std::ofstream;
00057 using std::ifstream;
00058 using std::fstream;
00059 
00060 #ifdef _MSC_VER
00061 #pragma warning(pop)
00062 #endif
00063 
00064 #else
00065 
00066 // Include old-style streams.
00067 # ifdef _WIN32_WCE
00068 #  include "vtkWinCE.h"   // Include mini-streams for Windows CE.
00069 # else
00070 #  include <iostream.h>   // Include old-style istream and ostream.
00071 #  include <iomanip.h>
00072 #  if defined(_MSC_VER)
00073 #   include <strstrea.h>  // Include old-style strstream from MSVC.
00074 #  else
00075 #   include <strstream.h> // Include old-style strstream.
00076 #  endif
00077 #  include <fstream.h>    // Include old-style ifstream and ofstream.
00078 # endif
00079 #endif
00080 
00081 #endif // __vtkIOStream_h