/*	Copyright (C) 2004 Garrett A. Kajmowicz

	This file is part of the uClibc++ Library.

	This library is free software; you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public
	License as published by the Free Software Foundation; either
	version 2.1 of the License, or (at your option) any later version.

	This library is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
	Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public
	License along with this library; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include <basic_definitions>

#ifndef HEADER_STD_IOSTREAM
#define HEADER_STD_IOSTREAM 1

#include <iosfwd>
#include <ios>
#include <istream>
#include <ostream>
#include <fstream>
#include <string_iostream>

namespace std{
#ifdef __UCLIBCXX_SUPPORT_CIN__
	extern istream cin;
#endif
#ifdef __UCLIBCXX_SUPPORT_COUT__
	extern ostream cout;
#endif
#ifdef __UCLIBCXX_SUPPORT_CERR__
	extern ostream cerr;
#endif
	extern ostream clog;

#ifdef __UCLIBCXX_HAS_WCHAR__
#ifdef __UCLIBCXX_SUPPORT_CIN__
	extern wistream wcin;
#endif
#ifdef __UCLIBCXX_SUPPORT_COUT__
	extern wostream wcout;
#endif
#ifdef __UCLIBCXX_SUPPORT_CERR__
	extern wostream wcerr;
#endif
	extern wostream wclog;
#endif


	template <class charT, class traits> class basic_iostream :
		public basic_istream<charT,traits>, public basic_ostream<charT,traits> 
	{
	public:
		// constructor/destructor
		explicit basic_iostream(basic_streambuf<charT,traits>* sb):
			basic_istream<charT,traits>(sb), basic_ostream<charT,traits>(sb)
		{
			
		}

		virtual ~basic_iostream(){ }
	};

}


#endif
