VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkIOStream.h 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 =========================================================================*/ 00021 #ifndef vtkIOStream_h 00022 #define vtkIOStream_h 00023 00024 #include "vtkCommonCoreModule.h" // For export macro 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 _MSC_VER 00032 #pragma warning (push, 3) 00033 #endif 00034 00035 #include <iostream> // Include real ansi istream and ostream. 00036 #include <fstream> // Include real ansi ifstream and ofstream. 00037 #include <iomanip> // Include real ansi io manipulators. 00038 00039 // Need these in global namespace so the same code will work with ansi 00040 // and old-style streams. 00041 using std::dec; 00042 using std::hex; 00043 using std::setw; 00044 using std::setfill; 00045 using std::setprecision; 00046 using std::cerr; 00047 using std::cout; 00048 using std::cin; 00049 using std::ios; 00050 using std::endl; 00051 using std::ends; 00052 using std::ostream; 00053 using std::istream; 00054 using std::ofstream; 00055 using std::ifstream; 00056 using std::fstream; 00057 00058 #ifdef _MSC_VER 00059 #pragma warning(pop) 00060 #endif 00061 00062 #if defined(VTK_IOSTREAM_NEED_OPERATORS_LL) 00063 00064 # if !defined(VTK_ISTREAM_SUPPORTS_LONG_LONG) 00065 VTKCOMMONCORE_EXPORT istream& vtkIOStreamScan(istream&, vtkIOStreamSLL&); 00066 # if !defined(VTK_DO_NOT_DEFINE_ISTREAM_SLL) 00067 inline istream& operator >> (istream& is, vtkIOStreamSLL& value) 00068 { 00069 return vtkIOStreamScan(is, value); 00070 } 00071 # endif 00072 00073 VTKCOMMONCORE_EXPORT istream& vtkIOStreamScan(istream&, vtkIOStreamULL&); 00074 # if !defined(VTK_DO_NOT_DEFINE_ISTREAM_ULL) 00075 inline istream& operator >> (istream& is, vtkIOStreamULL& value) 00076 { 00077 return vtkIOStreamScan(is, value); 00078 } 00079 # endif 00080 # endif 00081 00082 # if !defined(VTK_OSTREAM_SUPPORTS_LONG_LONG) 00083 VTKCOMMONCORE_EXPORT ostream& vtkIOStreamPrint(ostream&, vtkIOStreamSLL); 00084 # if !defined(VTK_DO_NOT_DEFINE_OSTREAM_SLL) 00085 inline ostream& operator << (ostream& os, vtkIOStreamSLL value) 00086 { 00087 return vtkIOStreamPrint(os, value); 00088 } 00089 # endif 00090 00091 VTKCOMMONCORE_EXPORT ostream& vtkIOStreamPrint(ostream&, vtkIOStreamULL); 00092 # if !defined(VTK_DO_NOT_DEFINE_OSTREAM_ULL) 00093 inline ostream& operator << (ostream& os, vtkIOStreamULL value) 00094 { 00095 return vtkIOStreamPrint(os, value); 00096 } 00097 # endif 00098 # endif 00099 00100 #endif 00101 00102 #endif // vtkIOStream_h 00103 // VTK-HeaderTest-Exclude: vtkIOStream.h