streams.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    streams.h
00006  *
00007  *  streams.h,v 1.34 2005/05/17 13:06:22 michel_j 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 #endif /* ACE_LACKS_PRAGMA_ONCE */
00031 
00032 // Do this so the #pragma warning in the MSVC headers do not
00033 // affect our #pragma warning settings
00034 #if defined (_MSC_VER)
00035 #pragma warning(push)
00036 #endif /* _MSC_VER*/
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::ios_base;
00077         using std::streambuf;
00078         using std::istream;
00079         using std::ostream;
00080         using std::iostream;
00081         using std::filebuf;
00082         using std::ifstream;
00083         using std::ofstream;
00084         using std::fstream;
00085 
00086         using std::cin;
00087         using std::cout;
00088         using std::cerr;
00089         using std::clog;
00090 
00091         using std::endl;
00092         using std::ends;
00093         using std::flush;
00094 
00095         using std::ws;
00096 
00097         using std::resetiosflags;
00098         using std::setfill;
00099         using std::setiosflags;
00100         using std::setprecision;
00101         using std::setw;
00102 
00103         using std::dec;
00104         using std::hex;
00105         using std::oct;
00106 #     endif /* ! ACE_USES_OLD_IOSTREAMS */
00107 
00108 #   endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
00109 
00110 #   if defined (_MSC_VER)
00111 #     pragma warning(4: 4018 4114 4146 4245)
00112 #     pragma warning(4: 4663 4664 4665 4512 4511)
00113 #   endif /* _MSC_VER */
00114 
00115 # else /* ! ACE_HAS_STANDARD_CPP_LIBRARY */
00116 
00117 #   include /**/ <fstream.h>
00118 #   include /**/ <iostream.h>
00119 #   include /**/ <iomanip.h>
00120 
00121 #   if defined (ACE_WIN32) && !defined(__MINGW32__)
00122 #     if defined(_MSC_VER) // VSB
00123 #       include /**/ <ios.h>
00124 #       include /**/ <streamb.h>
00125 #       include /**/ <istream.h>
00126 #       include /**/ <ostream.h>
00127 #     endif /* _MSC_VER */
00128 #   endif /* ACE_WIN32 && !__MINGW32__ */
00129 
00130 # endif /* ! ACE_HAS_STANDARD_CPP_LIBRARY */
00131 
00132 #endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
00133 
00134 // Do this so the #pragma warning in the MSVC headers do not
00135 // affect our #pragma warning settings
00136 #if defined (_MSC_VER)
00137 #pragma warning(pop)
00138 #endif /* _MSC_VER */
00139 
00140 #include /**/ "ace/post.h"
00141 #endif /* ACE_STREAMS_H */

Generated on Thu Nov 9 09:42:05 2006 for ACE by doxygen 1.3.6