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

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 #define __VTK_SYSTEM_INCLUDES__INSIDE
00028 #include "vtkWin32Header.h" // For export macros.
00029 #undef __VTK_SYSTEM_INCLUDES__INSIDE
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 #  include <iomanip.h>
00076 #  if defined(_MSC_VER)
00077 #   include <strstrea.h>  // Include old-style strstream from MSVC.
00078 #  else
00079 #   include <strstream.h> // Include old-style strstream.
00080 #  endif
00081 #  include <fstream.h>    // Include old-style ifstream and ofstream.
00082 # endif
00083 #endif
00084 
00085 #if defined(VTK_IOSTREAM_NEED_OPERATORS_LL)
00086 
00087 # if !defined(VTK_ISTREAM_SUPPORTS_LONG_LONG)
00088 VTK_COMMON_EXPORT istream& vtkIOStreamScan(istream&, vtkIOStreamSLL&);
00089 #  if !defined(VTK_DO_NOT_DEFINE_ISTREAM_SLL)
00090 inline istream& operator >> (istream& is, vtkIOStreamSLL& value)
00091 {
00092   return vtkIOStreamScan(is, value);
00093 }
00094 #  endif
00095 
00096 VTK_COMMON_EXPORT istream& vtkIOStreamScan(istream&, vtkIOStreamULL&);
00097 #  if !defined(VTK_DO_NOT_DEFINE_ISTREAM_ULL)
00098 inline istream& operator >> (istream& is, vtkIOStreamULL& value)
00099 {
00100   return vtkIOStreamScan(is, value);
00101 }
00102 #  endif
00103 # endif
00104 
00105 # if !defined(VTK_OSTREAM_SUPPORTS_LONG_LONG)
00106 VTK_COMMON_EXPORT ostream& vtkIOStreamPrint(ostream&, vtkIOStreamSLL);
00107 #  if !defined(VTK_DO_NOT_DEFINE_OSTREAM_SLL)
00108 inline ostream& operator << (ostream& os, vtkIOStreamSLL value)
00109 {
00110   return vtkIOStreamPrint(os, value);
00111 }
00112 #  endif
00113 
00114 VTK_COMMON_EXPORT ostream& vtkIOStreamPrint(ostream&, vtkIOStreamULL);
00115 #  if !defined(VTK_DO_NOT_DEFINE_OSTREAM_ULL)
00116 inline ostream& operator << (ostream& os, vtkIOStreamULL value)
00117 {
00118   return vtkIOStreamPrint(os, value);
00119 }
00120 #  endif
00121 # endif
00122 
00123 #endif
00124 
00125 #endif // __vtkIOStream_h

Generated on Mon Jan 21 23:07:17 2008 for VTK by  doxygen 1.4.3-20050530