00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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"
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>
00038 # include <strstream>
00039 # include <fstream>
00040 # include <iomanip>
00041
00042
00043
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
00071 # ifdef _WIN32_WCE
00072 # include "vtkWinCE.h"
00073 # else
00074 # include <iostream.h>
00075 # include <iomanip.h>
00076 # if defined(_MSC_VER)
00077 # include <strstrea.h>
00078 # else
00079 # include <strstream.h>
00080 # endif
00081 # include <fstream.h>
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