/*

args_4: Command line arguments parsing library
Yauheni A. Akhotnikau (C) 2002-2003
eao197@yahoo.com
-------------------------------------------------

Permission is granted to anyone to use this software for any purpose on any
computer system, and to redistribute it freely, subject to the following
restrictions:

1. This software 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.

2. The origin of this software must not be misrepresented, either by
   explicit claim or by omission.

3. Altered versions must be plainly marked as such, and must not be
   misrepresented as being the original software.

-------------------------------------------------

*/
/*
	Args-4
*/

/*!
	\file
	\brief Классы потоков ввода/вывода средствами stdio.
*/

#ifndef _ARGS_4__ARGS_STDIO_HPP_
#define _ARGS_4__ARGS_STDIO_HPP_

#include <args_4/h/args.hpp>

namespace args_4
{

/*
** stdio_error_stream_t
*/

/*!
	\brief Поток вывода ошибок в через fprintf.
*/
class	stdio_error_stream_t :
	public error_stream_t
{
	public :
		//! Конструктор по умолчанию используется
		//! для stderr.
		stdio_error_stream_t();
		//! Инициализирующий конструктор.
		stdio_error_stream_t(
			//! Поток для вывода.
			//! Класс %stdio_error_stream_t не
			//! закрывает его в своем деструкторе.
			FILE * stream );
		virtual ~stdio_error_stream_t();

		/*! Отображает указанную строку в
			поток m_stream. */
		virtual error_stream_t &
		out( const char * str );

	protected :
		/*! Поток для вывода. */
		FILE *	m_stream;
};

} /* namespace args_4 */

#endif

