00001 // Standard iostream objects -*- C++ -*- 00002 00003 // Copyright (C) 1997, 1998, 1999, 2001, 2002, 2005, 2008, 2009 00004 // Free Software Foundation, Inc. 00005 // 00006 // This file is part of the GNU ISO C++ Library. This library is free 00007 // software; you can redistribute it and/or modify it under the 00008 // terms of the GNU General Public License as published by the 00009 // Free Software Foundation; either version 3, or (at your option) 00010 // any later version. 00011 00012 // This library is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 00017 // Under Section 7 of GPL version 3, you are granted additional 00018 // permissions described in the GCC Runtime Library Exception, version 00019 // 3.1, as published by the Free Software Foundation. 00020 00021 // You should have received a copy of the GNU General Public License and 00022 // a copy of the GCC Runtime Library Exception along with this program; 00023 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 00024 // <http://www.gnu.org/licenses/>. 00025 00026 /** @file iostream 00027 * This is a Standard C++ Library header. 00028 */ 00029 00030 // 00031 // ISO C++ 14882: 27.3 Standard iostream objects 00032 // 00033 00034 #ifndef _GLIBCXX_IOSTREAM 00035 #define _GLIBCXX_IOSTREAM 1 00036 00037 #pragma GCC system_header 00038 00039 #include <bits/c++config.h> 00040 #include <ostream> 00041 #include <istream> 00042 00043 _GLIBCXX_BEGIN_NAMESPACE(std) 00044 00045 /** 00046 * @name Standard Stream Objects 00047 * 00048 * The <iostream> header declares the eight <em>standard stream 00049 * objects</em>. For other declarations, see 00050 * http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt11ch24.html 00051 * and the @link iosfwd I/O forward declarations @endlink 00052 * 00053 * They are required by default to cooperate with the global C library's 00054 * @c FILE streams, and to be available during program startup and 00055 * termination. For more information, see the HOWTO linked to above. 00056 */ 00057 //@{ 00058 extern istream cin; ///< Linked to standard input 00059 extern ostream cout; ///< Linked to standard output 00060 extern ostream cerr; ///< Linked to standard error (unbuffered) 00061 extern ostream clog; ///< Linked to standard error (buffered) 00062 00063 #ifdef _GLIBCXX_USE_WCHAR_T 00064 extern wistream wcin; ///< Linked to standard input 00065 extern wostream wcout; ///< Linked to standard output 00066 extern wostream wcerr; ///< Linked to standard error (unbuffered) 00067 extern wostream wclog; ///< Linked to standard error (buffered) 00068 #endif 00069 //@} 00070 00071 // For construction of filebuffers for cout, cin, cerr, clog et. al. 00072 static ios_base::Init __ioinit; 00073 00074 _GLIBCXX_END_NAMESPACE 00075 00076 #endif /* _GLIBCXX_IOSTREAM */