Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

streams.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    streams.h
00006  *
00007  *  $Id: streams.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  @author Irfan Pyarali
00010  *
00011  *  This file contains the portability ugliness for the Standard C++
00012  *  Library.  As implementations of the "standard" emerge, this file
00013  *  will need to be updated.
00014  *
00015  *  This files deals with the streams includes.
00016  *
00017  *
00018  */
00019 //=============================================================================
00020 
00021 
00022 #ifndef ACE_STREAMS_H
00023 #define ACE_STREAMS_H
00024 #include "ace/pre.h"
00025 
00026 #include "ace/config-all.h"
00027 
00028 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00029 # pragma once
00030 
00031 #endif /* ACE_LACKS_PRAGMA_ONCE */
00032 // Do this so the #pragma warning in the MSVC headers do not
00033 // affect our #pragma warning settings
00034 #if defined (_MSC_VER) && (_MSC_VER >= 1200)
00035 #pragma warning(push)
00036 #endif /* _MSC_VER >= 1200 */
00037 
00038 
00039 #if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
00040 
00041 #  if defined (ACE_HAS_STANDARD_CPP_LIBRARY)  && \
00042       (ACE_HAS_STANDARD_CPP_LIBRARY != 0)
00043 
00044 #   if defined (_MSC_VER)
00045 #     pragma warning(disable: 4018 4114 4146 4245)
00046 #     pragma warning(disable: 4663 4664 4665 4511 4512)
00047 #   endif /* _MSC_VER */
00048 
00049 #   if defined (ACE_USES_OLD_IOSTREAMS)
00050 #     include /**/ <iostream.h>
00051 #     include /**/ <fstream.h>
00052   // This has been commented as it is not needed and causes problems with Qt.
00053   // (brunsch) But has been uncommented since it should be included.  Qt
00054   // probably should have some sort of macro that will prevent including this
00055   // when it is used.
00056 #     include /**/ <iomanip.h>
00057 #   else
00058 #     if defined (__BORLANDC__) && (__BORLANDC__ == 0x551)
00059 #       include /**/ <iterator>
00060 #     endif /* __BORLANDC__ && __BORLANDC__ == 0x551 */
00061 #     include /**/ <iostream>
00062 #     include /**/ <fstream>
00063 #     include /**/ <istream>
00064 #     include /**/ <ostream>
00065 #     include /**/ <streambuf>
00066 #     include /**/ <iomanip>
00067 #     include /**/ <ios>
00068 #   endif /* ACE_USES_OLD_IOSTREAMS */
00069 
00070 #   if defined (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB) && \
00071        (ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB != 0)
00072 
00073 #     if !defined (ACE_USES_OLD_IOSTREAMS)
00074         // Make these available in the global name space
00075         using std::ios;
00076         using std::streambuf;
00077         using std::istream;
00078         using std::ostream;
00079         using std::iostream;
00080         using std::filebuf;
00081         using std::ifstream;
00082         using std::ofstream;
00083         using std::fstream;
00084 
00085         using std::cin;
00086         using std::cout;
00087         using std::cerr;
00088         using std::clog;
00089 
00090         using std::endl;
00091         using std::ends;
00092         using std::flush;
00093 
00094         using std::ws;
00095 
00096         using std::resetiosflags;
00097         using std::setfill;
00098         using std::setiosflags;
00099         using std::setprecision;
00100         using std::setw;
00101 
00102         using std::dec;
00103         using std::hex;
00104         using std::oct;
00105 #     endif /* ! ACE_USES_OLD_IOSTREAMS */
00106 
00107 #   endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
00108 
00109 #   if defined (_MSC_VER)
00110 #     pragma warning(4: 4018 4114 4146 4245)
00111 #     pragma warning(4: 4663 4664 4665 4512 4511)
00112 #   endif /* _MSC_VER */
00113 
00114 # else /* ! ACE_HAS_STANDARD_CPP_LIBRARY */
00115 
00116 #   include /**/ <fstream.h>
00117 #   include /**/ <iostream.h>
00118 #   include /**/ <iomanip.h>
00119 
00120 #   if defined (ACE_WIN32) && !defined(__MINGW32__)
00121 #     if defined(_MSC_VER) // VSB
00122 #       include /**/ <ios.h>
00123 #       include /**/ <streamb.h>
00124 #       include /**/ <istream.h>
00125 #       include /**/ <ostream.h>
00126 #     endif /* _MSC_VER */
00127 #   endif /* ACE_WIN32 && !__MINGW32__ */
00128 
00129 # endif /* ! ACE_HAS_STANDARD_CPP_LIBRARY */
00130 
00131 #endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
00132 
00133 // Do this so the #pragma warning in the MSVC headers do not
00134 // affect our #pragma warning settings
00135 #if defined (_MSC_VER) && (_MSC_VER >= 1200)
00136 #pragma warning(pop)
00137 #endif /* _MSC_VER >= 1200 */
00138 
00139 #include "ace/post.h"
00140 #endif /* ACE_STREAMS_H */

Generated on Mon Jun 16 11:21:31 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002