2009-10-02 01:21:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
KWSys - Kitware System Library
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2003-12-23 19:03:33 +03:00
|
|
|
|
2009-10-02 01:21:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2003-12-23 19:03:33 +03:00
|
|
|
|
2009-10-02 01:21:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2003-12-23 19:03:33 +03:00
|
|
|
#ifndef @KWSYS_NAMESPACE@_ios_iostream
|
|
|
|
#define @KWSYS_NAMESPACE@_ios_iostream
|
|
|
|
|
|
|
|
#include <@KWSYS_NAMESPACE@/Configure.hxx>
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
2004-12-01 15:24:33 +03:00
|
|
|
# pragma warning (push, 1)
|
|
|
|
# pragma warning (disable: 4702)
|
|
|
|
# pragma warning (disable: 4995) /* Old streams are deprecated. */
|
2003-12-23 19:03:33 +03:00
|
|
|
#endif
|
|
|
|
|
2003-12-31 01:15:51 +03:00
|
|
|
#if @KWSYS_NAMESPACE@_IOS_USE_ANSI
|
2003-12-23 19:03:33 +03:00
|
|
|
# include <iostream>
|
|
|
|
#else
|
|
|
|
# include <iostream.h>
|
|
|
|
#endif
|
|
|
|
|
2006-07-18 21:02:40 +04:00
|
|
|
// The HP implementation of iostream defines cin, cout, cerr, and clog
|
|
|
|
// as macros in order to do thread-private streams.
|
|
|
|
// See /opt/aCC/include/iostream/iostream.h for details.
|
|
|
|
// This block redefines the macros in a safe way that is also compatible
|
|
|
|
// with the HP definitions and the using declarations below.
|
|
|
|
|
|
|
|
#if !@KWSYS_NAMESPACE@_IOS_USE_SSTREAM
|
|
|
|
# if defined(__HP_aCC) && (defined(HP_THREAD_SAFE) || defined(_THREAD_SAFE))
|
|
|
|
# if defined(cin) && !defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_CIN)
|
|
|
|
# define @KWSYS_NAMESPACE@_IOS_HP_HACK_CIN
|
|
|
|
# undef cin
|
|
|
|
# define cin __tcin.ref()
|
|
|
|
# endif
|
|
|
|
# if defined(cout) && !defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_COUT)
|
|
|
|
# define @KWSYS_NAMESPACE@_IOS_HP_HACK_COUT
|
|
|
|
# undef cout
|
|
|
|
# define cout __tcout.ref()
|
|
|
|
# endif
|
|
|
|
# if defined(cerr) && !defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_CERR)
|
|
|
|
# define @KWSYS_NAMESPACE@_IOS_HP_HACK_CERR
|
|
|
|
# undef cerr
|
|
|
|
# define cerr __tcerr.ref()
|
|
|
|
# endif
|
|
|
|
# if defined(clog) && !defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_CLOG)
|
|
|
|
# define @KWSYS_NAMESPACE@_IOS_HP_HACK_CLOG
|
|
|
|
# undef clog
|
|
|
|
# define clog __tclog.ref()
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// If using our own sstream emulation code, put the standard
|
|
|
|
// streams in the same namespace.
|
2003-12-31 01:15:51 +03:00
|
|
|
#if !@KWSYS_NAMESPACE@_IOS_USE_SSTREAM
|
2003-12-23 19:03:33 +03:00
|
|
|
namespace @KWSYS_NAMESPACE@_ios
|
|
|
|
{
|
2007-11-06 01:44:30 +03:00
|
|
|
typedef int streamsize;
|
|
|
|
typedef int streamoff;
|
2003-12-23 19:03:33 +03:00
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::ostream;
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::istream;
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::ios;
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::endl;
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::flush;
|
2006-07-18 21:02:40 +04:00
|
|
|
# if defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_CIN)
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::__tcin;
|
|
|
|
# else
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::cin;
|
|
|
|
# endif
|
|
|
|
# if defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_COUT)
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::__tcout;
|
|
|
|
# else
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::cout;
|
|
|
|
# endif
|
|
|
|
# if defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_CERR)
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::__tcerr;
|
|
|
|
# else
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::cerr;
|
|
|
|
# endif
|
|
|
|
# if defined(@KWSYS_NAMESPACE@_IOS_HP_HACK_CLOG)
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::__tclog;
|
|
|
|
# else
|
|
|
|
using @KWSYS_NAMESPACE@_ios_namespace::clog;
|
|
|
|
# endif
|
2003-12-23 19:03:33 +03:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
2004-12-01 15:24:33 +03:00
|
|
|
# pragma warning(pop)
|
2003-12-23 19:03:33 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|