Common/vtkIOStream.h Source File

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