VTK
vtkIOStream.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIOStream.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkIOStream_h
22 #define vtkIOStream_h
23 
24 #include "vtkCommonCoreModule.h" // For export macro
25 #include "vtkConfigure.h"
26 
27 #define __VTK_SYSTEM_INCLUDES__INSIDE
28 #include "vtkWin32Header.h" // For export macros.
29 #undef __VTK_SYSTEM_INCLUDES__INSIDE
30 
31 #ifdef _MSC_VER
32 #pragma warning (push, 3)
33 #endif
34 
35 #include <iostream> // Include real ansi istream and ostream.
36 #include <fstream> // Include real ansi ifstream and ofstream.
37 #include <iomanip> // Include real ansi io manipulators.
38 
39 // Need these in global namespace so the same code will work with ansi
40 // and old-style streams.
41 using std::dec;
42 using std::hex;
43 using std::setw;
44 using std::setfill;
45 using std::setprecision;
46 using std::cerr;
47 using std::cout;
48 using std::cin;
49 using std::ios;
50 using std::endl;
51 using std::ends;
52 using std::ostream;
53 using std::istream;
54 using std::ofstream;
55 using std::ifstream;
56 using std::fstream;
57 
58 #ifdef _MSC_VER
59 #pragma warning(pop)
60 #endif
61 
62 #if defined(VTK_IOSTREAM_NEED_OPERATORS_LL)
63 
64 # if !defined(VTK_ISTREAM_SUPPORTS_LONG_LONG)
65 VTKCOMMONCORE_EXPORT istream& vtkIOStreamScan(istream&, vtkIOStreamSLL&);
66 # if !defined(VTK_DO_NOT_DEFINE_ISTREAM_SLL)
67 inline istream& operator >> (istream& is, vtkIOStreamSLL& value)
68 {
69  return vtkIOStreamScan(is, value);
70 }
71 # endif
72 
73 VTKCOMMONCORE_EXPORT istream& vtkIOStreamScan(istream&, vtkIOStreamULL&);
74 # if !defined(VTK_DO_NOT_DEFINE_ISTREAM_ULL)
75 inline istream& operator >> (istream& is, vtkIOStreamULL& value)
76 {
77  return vtkIOStreamScan(is, value);
78 }
79 # endif
80 # endif
81 
82 # if !defined(VTK_OSTREAM_SUPPORTS_LONG_LONG)
83 VTKCOMMONCORE_EXPORT ostream& vtkIOStreamPrint(ostream&, vtkIOStreamSLL);
84 # if !defined(VTK_DO_NOT_DEFINE_OSTREAM_SLL)
85 inline ostream& operator << (ostream& os, vtkIOStreamSLL value)
86 {
87  return vtkIOStreamPrint(os, value);
88 }
89 # endif
90 
91 VTKCOMMONCORE_EXPORT ostream& vtkIOStreamPrint(ostream&, vtkIOStreamULL);
92 # if !defined(VTK_DO_NOT_DEFINE_OSTREAM_ULL)
93 inline ostream& operator << (ostream& os, vtkIOStreamULL value)
94 {
95  return vtkIOStreamPrint(os, value);
96 }
97 # endif
98 # endif
99 
100 #endif
101 
102 #endif // vtkIOStream_h
103 // VTK-HeaderTest-Exclude: vtkIOStream.h
#define VTKCOMMONCORE_EXPORT
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)