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