Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / streams.h
blobd266c766c98d560d6a1cd8ffb115e33fbfdda717
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file streams.h
7 * @author Irfan Pyarali
9 * This file contains the portability ugliness for the Standard C++
10 * Library. As implementations of the "standard" emerge, this file
11 * will need to be updated.
13 * This files deals with the streams includes.
15 //=============================================================================
18 #ifndef ACE_STREAMS_H
19 #define ACE_STREAMS_H
20 #include /**/ "ace/pre.h"
22 #include /**/ "ace/config-all.h"
24 #if !defined (ACE_LACKS_PRAGMA_ONCE)
25 # pragma once
26 #endif /* ACE_LACKS_PRAGMA_ONCE */
28 // Do this so the #pragma warning in the MSVC headers do not
29 // affect our #pragma warning settings
30 #if defined (_MSC_VER)
31 #pragma warning(push)
32 #endif /* _MSC_VER*/
34 #if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
35 # if defined (_MSC_VER)
36 # pragma warning(disable: 4018 4114 4146 4245)
37 # pragma warning(disable: 4663 4664 4665 4511 4512)
38 # endif /* _MSC_VER */
40 # if defined (ACE_USES_OLD_IOSTREAMS)
41 # include /**/ <iostream.h>
42 # include /**/ <fstream.h>
43 // This has been commented as it is not needed and causes problems with Qt.
44 // (brunsch) But has been uncommented since it should be included. Qt
45 // probably should have some sort of macro that will prevent including this
46 // when it is used.
47 # include /**/ <iomanip.h>
48 # else
49 # include /**/ <iostream>
50 # include /**/ <fstream>
51 # include /**/ <istream>
52 # include /**/ <ostream>
53 # include /**/ <streambuf>
54 # include /**/ <iomanip>
55 # include /**/ <ios>
56 # endif /* ACE_USES_OLD_IOSTREAMS */
58 # if !defined (ACE_USES_OLD_IOSTREAMS)
59 // Make these available in the global name space
60 using std::ios;
61 using std::ios_base;
62 using std::streambuf;
63 using std::istream;
64 using std::ostream;
65 using std::iostream;
66 using std::filebuf;
67 using std::ifstream;
68 using std::ofstream;
69 using std::fstream;
71 using std::cin;
72 using std::cout;
73 using std::cerr;
74 using std::clog;
76 using std::endl;
77 using std::ends;
78 using std::flush;
80 using std::ws;
82 using std::resetiosflags;
83 using std::setfill;
84 using std::setiosflags;
85 using std::setprecision;
86 using std::setw;
88 using std::dec;
89 using std::hex;
90 using std::oct;
91 # endif /* ! ACE_USES_OLD_IOSTREAMS */
93 # if defined (_MSC_VER)
94 # pragma warning(4: 4018 4114 4146 4245)
95 # pragma warning(4: 4663 4664 4665 4512 4511)
96 # endif /* _MSC_VER */
97 #endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
99 // Do this so the #pragma warning in the MSVC headers do not
100 // affect our #pragma warning settings
101 #if defined (_MSC_VER)
102 #pragma warning(pop)
103 #endif /* _MSC_VER */
105 #include /**/ "ace/post.h"
106 #endif /* ACE_STREAMS_H */