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

dox/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 =========================================================================*/
00026 #ifndef __vtkIOStream_h
00027 #define __vtkIOStream_h
00028 
00029 #include "vtkConfigure.h"
00030 
00031 #ifdef VTK_USE_ANSI_STDLIB
00032 
00033 #ifdef _MSC_VER
00034 #pragma warning (push, 3)
00035 #endif
00036 
00037 # include <iostream>  // Include real ansi istream and ostream.
00038 # include <strstream> // Include real ansi strstreams.
00039 # include <fstream>   // Include real ansi ifstream and ofstream.
00040 # include <iomanip>   // Include real ansi io manipulators.
00041 
00042 // Need these in global namespace so the same code will work with ansi
00043 // and old-style streams.
00044 using std::dec;
00045 using std::hex;
00046 using std::setw;
00047 using std::setfill;
00048 using std::setprecision;
00049 using std::cerr;
00050 using std::cout;
00051 using std::cin;
00052 using std::ios;
00053 using std::endl;
00054 using std::ends;
00055 using std::ostream;
00056 using std::istream;
00057 using std::ostrstream;
00058 using std::istrstream;
00059 using std::strstream;
00060 using std::ofstream;
00061 using std::ifstream;
00062 using std::fstream;
00063 
00064 #ifdef _MSC_VER
00065 #pragma warning(pop)
00066 #endif
00067 
00068 #else
00069 
00070 // Include old-style streams.
00071 # ifdef _WIN32_WCE
00072 #  include "vtkWinCE.h"   // Include mini-streams for Windows CE.
00073 # else
00074 #  include <iostream.h>   // Include old-style istream and ostream.
00075 #  if defined(_MSC_VER)
00076 #   include <strstrea.h>  // Include old-style strstream from MSVC.
00077 #  else
00078 #   include <strstream.h> // Include old-style strstream.
00079 #  endif
00080 #  include <fstream.h>    // Include old-style ifstream and ofstream.
00081 # endif
00082 #endif
00083 
00084 #endif // __vtkIOStream_h