// -*- C++ -*-
#ifndef __STD_IOSFWD__
#define __STD_IOSFWD__

/***************************************************************************
 *
 * iosfwd - forward declarations for the iostreams
 *
 ***************************************************************************
 *    
 *  Copyright 2000 Compaq Computer Corporation
 *
 *  COMPAQ Registered in U.S. Patent and Trademark Office.
 *
 *  Confidential computer software. Valid license from Compaq required for
 *  possession, use or copying. Consistent with FAR 12.211 and 12.212,
 *  Commercial Computer Software, Computer Software Documentation, and
 *  Technical Data for Commercial Items are licensed to the U.S. Government
 *  under vendor's standard commercial license.
 *
 ****************************************************************************
 *
 * (c) Copyright 1994, 1998 Rogue Wave Software, Inc.
 * ALL RIGHTS RESERVED
 *
 * The software and information contained herein are proprietary to, and
 * comprise valuable trade secrets of, Rogue Wave Software, Inc., which
 * intends to preserve as trade secrets such software and information.
 * This software is furnished pursuant to a written license agreement and
 * may be used, copied, transmitted, and stored only in accordance with
 * the terms of such license and with the inclusion of the above copyright
 * notice.  This software and information or any other copies thereof may
 * not be provided or otherwise made available to any other person.
 *
 * Notwithstanding any other lease or license that may pertain to, or
 * accompany the delivery of, this computer software and information, the
 * rights of the Government regarding its use, reproduction and disclosure
 * are as set forth in Section 52.227-19 of the FARS Computer
 * Software-Restricted Rights clause.
 * 
 * Use, duplication, or disclosure by the Government is subject to
 * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
 * Technical Data and Computer Software clause at DFARS 252.227-7013.
 * Contractor/Manufacturer is Rogue Wave Software, Inc.,
 * P.O. Box 2328, Corvallis, Oregon 97339.
 *
 * This computer software and information is distributed with "restricted
 * rights."  Use, duplication or disclosure is subject to restrictions as
 * set forth in NASA FAR SUP 18-52.227-79 (April 1985) "Commercial
 * Computer Software-Restricted Rights (April 1985)."  If the Clause at
 * 18-52.227-74 "Rights in Data General" is specified in the contract,
 * then the "Alternate III" clause applies.
 *
 **************************************************************************/

#include <compnent.hxx>
#ifndef __USE_STD_IOSTREAM
#error "cannot include iosfwd -- define __USE_STD_IOSTREAM to override default - see section 7.1.2 of the C++ Using Guide"
#else

#include <stdcomp>
#include <stdmutex>
#ifndef _RWSTD_NO_WCHAR_H
#include <wchar.h>
#endif // _RWSTD_NO_WCHAR_H


#if defined(__DECCXX)
#   ifdef __PRAGMA_ENVIRONMENT
#      pragma __environment __save
#      pragma __environment __cxx_header_defaults
#   endif
#endif

#if defined(__VMS) && defined(__DECCXX) && !defined(__DECFIXCXXL1158)
#pragma __extern_prefix __save
#pragma __extern_prefix "CXXL$" 
#endif


#ifndef _RWSTD_NO_NAMESPACE
namespace std {
#endif

  template<class charT> struct _RWSTDExportTemplate char_traits;

  template <class T> class _RWSTDExportTemplate allocator;

  template <class stateT> class _RWSTDExportTemplate fpos;

#ifdef _RWSTD_NO_MBSTATE_T
  class _RWSTDExportTemplate mbstate_t;
#endif

  typedef fpos<mbstate_t> streampos;
  typedef fpos<mbstate_t> wstreampos;

  typedef long streamoff;
  typedef long wstreamoff;

#ifndef _RWSTD_NO_NAMESPACE
}
#endif

#if defined(__VMS) && defined(__DECCXX) && !defined(__DECFIXCXXL1158)
#   pragma __extern_prefix __restore
#endif

#include <traits>

#if defined(__VMS) && defined(__DECCXX) && !defined(__DECFIXCXXL1158)
#pragma __extern_prefix __save
#pragma __extern_prefix "CXXL$" 
#endif

#ifndef _RWSTD_NO_NAMESPACE
namespace std {
#endif 

#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ios;
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_streambuf;
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_istream;
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ostream;
  template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> > 
  class _RWSTDExportTemplate basic_stringbuf;
  template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>  > 
  class _RWSTDExportTemplate basic_istringstream;
  template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>  > 
  class _RWSTDExportTemplate basic_ostringstream;
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_filebuf;
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ifstream;
  template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ofstream;

#if defined(__DECCXX) && !defined(__DECFIXCXXL591) && defined(__STD_ITERATOR__) && !defined(__USE_STD_IOSTREAM)
template<class T, class charT, class traits> class ostream_iterator;
template<class T, class charT, class traits, class Distance> class istream_iterator;
#else
  template<class T, class charT = char, class traits=char_traits<charT> > 
  class _RWSTDExportTemplate ostream_iterator;
  template<class T, class charT = char, class traits=char_traits<charT>,
  class Distance = ptrdiff_t > 
  class _RWSTDExportTemplate istream_iterator;
#endif

  template<class charT, class traits=char_traits<charT> > 
  class _RWSTDExportTemplate ostreambuf_iterator;
  template<class charT, class traits=char_traits<charT> > 
  class _RWSTDExportTemplate istreambuf_iterator;
  template<class charT, class traits= char_traits<charT> > class
  _RWSTDExportTemplate basic_iostream;
  template<class charT, class traits= char_traits<charT> > class
  _RWSTDExportTemplate basic_fstream;
  template<class charT, class traits= char_traits<charT>, class Allocator = allocator<charT>  > 
  class _RWSTDExportTemplate basic_stringstream;
#else
  template<class charT, class traits > class _RWSTDExportTemplate basic_ios;
  template<class charT, class traits > class _RWSTDExportTemplate basic_streambuf;
  template<class charT, class traits > class _RWSTDExportTemplate basic_istream;
  template<class charT, class traits > class _RWSTDExportTemplate basic_ostream;
  template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_stringbuf;
  template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_istringstream;
  template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_ostringstream;
  template<class charT, class traits > class _RWSTDExportTemplate basic_filebuf;
  template<class charT, class traits > class _RWSTDExportTemplate basic_ifstream;
  template<class charT, class traits > class _RWSTDExportTemplate basic_ofstream;
  template<class T, class charT, class traits > class _RWSTDExportTemplate ostream_iterator;
  template<class T, class charT, class traits, class Distance > class _RWSTDExportTemplate istream_iterator;
  template<class charT, class traits > class _RWSTDExportTemplate ostreambuf_iterator;
  template<class charT, class traits > class _RWSTDExportTemplate istreambuf_iterator;
  template<class charT, class traits > class _RWSTDExportTemplate basic_iostream;
  template<class charT, class traits > class _RWSTDExportTemplate basic_fstream;
  template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_stringstream;
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES

#ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  typedef basic_ios<char>                                    ios;
  typedef basic_streambuf<char>                              streambuf;
  typedef basic_istream<char>                                istream;
  typedef basic_ostream<char>                                ostream;
  typedef basic_stringbuf<char>                              stringbuf;
  typedef basic_istringstream<char>                          istringstream;
  typedef basic_ostringstream<char>                          ostringstream;
  typedef basic_filebuf<char>                                filebuf;
  typedef basic_ifstream<char>                               ifstream;
  typedef basic_ofstream<char>                               ofstream;
  typedef basic_fstream<char>                                fstream;
  typedef basic_iostream<char>                               iostream;
  typedef basic_stringstream<char>                           stringstream;
#ifndef _RWSTD_NO_WIDE_CHAR
  typedef basic_ios<wchar_t>                                 wios;
  typedef basic_streambuf<wchar_t>                           wstreambuf;
  typedef basic_istream<wchar_t>                             wistream;
  typedef basic_ostream<wchar_t>                             wostream;
  typedef basic_stringbuf<wchar_t>                           wstringbuf;
  typedef basic_istringstream<wchar_t>                       wistringstream;
  typedef basic_ostringstream<wchar_t>                       wostringstream;
  typedef basic_filebuf<wchar_t>                             wfilebuf;
  typedef basic_ifstream<wchar_t>                            wifstream;
  typedef basic_ofstream<wchar_t>                            wofstream;
  typedef basic_fstream<wchar_t>                             wfstream;
  typedef basic_iostream<wchar_t>                            wiostream;
  typedef basic_stringstream<wchar_t>                        wstringstream;
#endif // _RWSTD_NO_WIDE_CHAR
#else
  typedef basic_ios<char, char_traits<char> >                 ios;
  typedef basic_streambuf<char, char_traits<char> >           streambuf;
  typedef basic_istream<char, char_traits<char> >             istream;
  typedef basic_ostream<char, char_traits<char> >             ostream;
  typedef basic_stringbuf<char, char_traits<char>, allocator<char> >           stringbuf;
  typedef basic_istringstream<char, char_traits<char>, allocator<char> >       istringstream;
  typedef basic_ostringstream<char, char_traits<char>, allocator<char> >       ostringstream;
  typedef basic_filebuf<char, char_traits<char> >             filebuf;
  typedef basic_ifstream<char, char_traits<char> >            ifstream;
  typedef basic_ofstream<char, char_traits<char> >            ofstream;
  typedef basic_fstream<char, char_traits<char> >             fstream;
  typedef basic_iostream<char, char_traits<char> >            iostream;
  typedef basic_stringstream<char, char_traits<char>, allocator<char> >        stringstream;
#ifndef _RWSTD_NO_WIDE_CHAR
  typedef basic_ios<wchar_t, char_traits<wchar_t> >           wios;
  typedef basic_streambuf<wchar_t, char_traits<wchar_t> >     wstreambuf;
  typedef basic_istream<wchar_t, char_traits<wchar_t> >       wistream;
  typedef basic_ostream<wchar_t, char_traits<wchar_t> >       wostream;
  typedef basic_stringbuf<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >     wstringbuf;
  typedef basic_istringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wistringstream;
  typedef basic_ostringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wostringstream;
  typedef basic_filebuf<wchar_t, char_traits<wchar_t> >       wfilebuf;
  typedef basic_ifstream<wchar_t, char_traits<wchar_t> >      wifstream;
  typedef basic_ofstream<wchar_t, char_traits<wchar_t> >      wofstream;
  typedef basic_fstream<wchar_t,char_traits<wchar_t> >        wfstream;
  typedef basic_iostream<wchar_t, char_traits<wchar_t> >      wiostream;
  typedef basic_stringstream<wchar_t,char_traits<wchar_t>, allocator<wchar_t> >   wstringstream;
#endif // _RWSTD_NO_WIDE_CHAR
#endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES

#ifndef _RWSTD_NO_NAMESPACE
}
#endif

#if defined(__VMS) && defined(__DECCXX) && !defined(__DECFIXCXXL1158)
#   pragma __extern_prefix __restore
#endif

#if defined(__DECCXX)
#   ifdef __PRAGMA_ENVIRONMENT
#      pragma __environment __restore
#   endif
#endif

#endif // __USE_STD_IOSTREAM

#endif // __STD_IOSFWD__
