OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkIOStream.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkIOStream.h,v $
5   Language:  C++
6   Date:      $Date: 2003/04/18 15:51:24 $
7   Version:   $Revision: 1.2.2.1 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
13      This software is distributed WITHOUT ANY WARRANTY; without even 
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15      PURPOSE.  See the above copyright notice for more information.
16
17 =========================================================================*/
18 // .NAME vtkIOStream - Include C++ iostreams as used by VTK.
19 // .SECTION Description
20 // VTK supports both ANSI and old-style streams.  This header includes
21 // the proper streams according to VTK_USE_ANSI_STDLIB.
22
23 #ifndef __vtkIOStream_h
24 #define __vtkIOStream_h
25
26 #include "vtkConfigure.h"
27
28 #ifdef VTK_USE_ANSI_STDLIB
29
30 #ifdef _MSC_VER
31 #pragma warning (push, 3)
32 #endif
33
34 # include <iostream>  // Include real ansi istream and ostream.
35 # include <strstream> // Include real ansi strstreams.
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::ostrstream;
55 using std::istrstream;
56 using std::strstream;
57 using std::ofstream;
58 using std::ifstream;
59 using std::fstream;
60
61 #ifdef _MSC_VER
62 #pragma warning(pop)
63 #endif
64
65 #else
66
67 // Include old-style streams.
68 # ifdef _WIN32_WCE
69 #  include "vtkWinCE.h"   // Include mini-streams for Windows CE.
70 # else
71 #  include <iostream.h>   // Include old-style istream and ostream.
72 #  if defined(_MSC_VER)
73 #   include <strstrea.h>  // Include old-style strstream from MSVC.
74 #  else
75 #   include <strstream.h> // Include old-style strstream.
76 #  endif
77 #  include <fstream.h>    // Include old-style ifstream and ofstream.
78 # endif
79 #endif
80
81 #endif // __vtkIOStream_h