home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / IOSFWD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  10.7 KB  |  201 lines

  1. #ifndef __IOSFWD_H
  2. #define __IOSFWD_H
  3. #pragma option push -b -a8 -pc -Vx- -Ve- -w-inl -w-aus -w-sig
  4. // -*- C++ -*-
  5. #ifndef __STD_IOSFWD__
  6. #define __STD_IOSFWD__
  7.  
  8. /***************************************************************************
  9.  *
  10.  * iosfwd - forward declarations for the iostreams
  11.  *
  12.  ***************************************************************************
  13.  *
  14.  * (c) Copyright 1994, 1998 Rogue Wave Software, Inc.
  15.  * ALL RIGHTS RESERVED
  16.  *
  17.  * The software and information contained herein are proprietary to, and
  18.  * comprise valuable trade secrets of, Rogue Wave Software, Inc., which
  19.  * intends to preserve as trade secrets such software and information.
  20.  * This software is furnished pursuant to a written license agreement and
  21.  * may be used, copied, transmitted, and stored only in accordance with
  22.  * the terms of such license and with the inclusion of the above copyright
  23.  * notice.  This software and information or any other copies thereof may
  24.  * not be provided or otherwise made available to any other person.
  25.  *
  26.  * Notwithstanding any other lease or license that may pertain to, or
  27.  * accompany the delivery of, this computer software and information, the
  28.  * rights of the Government regarding its use, reproduction and disclosure
  29.  * are as set forth in Section 52.227-19 of the FARS Computer
  30.  * Software-Restricted Rights clause.
  31.  * 
  32.  * Use, duplication, or disclosure by the Government is subject to
  33.  * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
  34.  * Technical Data and Computer Software clause at DFARS 252.227-7013.
  35.  * Contractor/Manufacturer is Rogue Wave Software, Inc.,
  36.  * P.O. Box 2328, Corvallis, Oregon 97339.
  37.  *
  38.  * This computer software and information is distributed with "restricted
  39.  * rights."  Use, duplication or disclosure is subject to restrictions as
  40.  * set forth in NASA FAR SUP 18-52.227-79 (April 1985) "Commercial
  41.  * Computer Software-Restricted Rights (April 1985)."  If the Clause at
  42.  * 18-52.227-74 "Rights in Data General" is specified in the contract,
  43.  * then the "Alternate III" clause applies.
  44.  *
  45.  **************************************************************************/
  46.  
  47. #include <stdcomp.h>
  48. #include <rw/stdmutex.h>
  49. #ifndef _RWSTD_NO_WCHAR_H
  50. #include <wchar.h>
  51. #endif // _RWSTD_NO_WCHAR_H
  52.  
  53. #ifndef _RWSTD_NO_NAMESPACE
  54. namespace std {
  55. #endif
  56.  
  57.   template<class charT> struct _RWSTDExportTemplate char_traits;
  58.  
  59.   template <class T> class _RWSTDExportTemplate allocator;
  60.  
  61.   template <class stateT> class _RWSTDExportTemplate fpos;
  62.  
  63. #ifdef _RWSTD_NO_MBSTATE_T
  64.   class _RWSTDExportTemplate mbstate_t;
  65. #endif
  66.  
  67.   typedef fpos<mbstate_t> streampos;
  68.   typedef fpos<mbstate_t> wstreampos;
  69.  
  70.   typedef long streamoff;
  71.   typedef long wstreamoff;
  72.  
  73. #ifndef _RWSTD_NO_NAMESPACE
  74. }
  75. #endif
  76.  
  77. #include <rw/traits>
  78.  
  79. #ifndef _RWSTD_NO_NAMESPACE
  80. namespace std {
  81. #endif 
  82.  
  83. #ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  84.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ios;
  85.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_streambuf;
  86.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_istream;
  87.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ostream;
  88.   template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> > 
  89.   class _RWSTDExportTemplate basic_stringbuf;
  90.   template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>  > 
  91.   class _RWSTDExportTemplate basic_istringstream;
  92.   template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>  > 
  93.   class _RWSTDExportTemplate basic_ostringstream;
  94.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_filebuf;
  95.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ifstream;
  96.   template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ofstream;
  97.   template<class T, class charT = char, class traits=char_traits<charT> > 
  98.   class _RWSTDExportTemplate ostream_iterator;
  99.   template<class T, class charT = char, class traits=char_traits<charT>,
  100.   class Distance = ptrdiff_t > 
  101.   class _RWSTDExportTemplate istream_iterator;
  102.   template<class charT, class traits=char_traits<charT> > 
  103.   class _RWSTDExportTemplate ostreambuf_iterator;
  104.   template<class charT, class traits=char_traits<charT> > 
  105.   class _RWSTDExportTemplate istreambuf_iterator;
  106.   template<class charT, class traits= char_traits<charT> > class
  107.   _RWSTDExportTemplate basic_iostream;
  108.   template<class charT, class traits= char_traits<charT> > class
  109.   _RWSTDExportTemplate basic_fstream;
  110.   template<class charT, class traits= char_traits<charT>, class Allocator = allocator<charT>  > 
  111.   class _RWSTDExportTemplate basic_stringstream;
  112. #else
  113.   template<class charT, class traits > class _RWSTDExportTemplate basic_ios;
  114.   template<class charT, class traits > class _RWSTDExportTemplate basic_streambuf;
  115.   template<class charT, class traits > class _RWSTDExportTemplate basic_istream;
  116.   template<class charT, class traits > class _RWSTDExportTemplate basic_ostream;
  117.   template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_stringbuf;
  118.   template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_istringstream;
  119.   template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_ostringstream;
  120.   template<class charT, class traits > class _RWSTDExportTemplate basic_filebuf;
  121.   template<class charT, class traits > class _RWSTDExportTemplate basic_ifstream;
  122.   template<class charT, class traits > class _RWSTDExportTemplate basic_ofstream;
  123.   template<class T, class charT, class traits > class _RWSTDExportTemplate ostream_iterator;
  124.   template<class T, class charT, class traits, class Distance > class _RWSTDExportTemplate istream_iterator;
  125.   template<class charT, class traits > class _RWSTDExportTemplate ostreambuf_iterator;
  126.   template<class charT, class traits > class _RWSTDExportTemplate istreambuf_iterator;
  127.   template<class charT, class traits > class _RWSTDExportTemplate basic_iostream;
  128.   template<class charT, class traits > class _RWSTDExportTemplate basic_fstream;
  129.   template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_stringstream;
  130. #endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  131.  
  132. #ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  133.   typedef basic_ios<char>                                    ios;
  134.   typedef basic_streambuf<char>                              streambuf;
  135.   typedef basic_istream<char>                                istream;
  136.   typedef basic_ostream<char>                                ostream;
  137.   typedef basic_stringbuf<char>                              stringbuf;
  138.   typedef basic_istringstream<char>                          istringstream;
  139.   typedef basic_ostringstream<char>                          ostringstream;
  140.   typedef basic_filebuf<char>                                filebuf;
  141.   typedef basic_ifstream<char>                               ifstream;
  142.   typedef basic_ofstream<char>                               ofstream;
  143.   typedef basic_fstream<char>                                fstream;
  144.   typedef basic_iostream<char>                               iostream;
  145.   typedef basic_stringstream<char>                           stringstream;
  146. #ifndef _RWSTD_NO_WIDE_CHAR
  147.   typedef basic_ios<wchar_t>                                 wios;
  148.   typedef basic_streambuf<wchar_t>                           wstreambuf;
  149.   typedef basic_istream<wchar_t>                             wistream;
  150.   typedef basic_ostream<wchar_t>                             wostream;
  151.   typedef basic_stringbuf<wchar_t>                           wstringbuf;
  152.   typedef basic_istringstream<wchar_t>                       wistringstream;
  153.   typedef basic_ostringstream<wchar_t>                       wostringstream;
  154.   typedef basic_filebuf<wchar_t>                             wfilebuf;
  155.   typedef basic_ifstream<wchar_t>                            wifstream;
  156.   typedef basic_ofstream<wchar_t>                            wofstream;
  157.   typedef basic_fstream<wchar_t>                             wfstream;
  158.   typedef basic_iostream<wchar_t>                            wiostream;
  159.   typedef basic_stringstream<wchar_t>                        wstringstream;
  160. #endif // _RWSTD_NO_WIDE_CHAR
  161. #else
  162.   typedef basic_ios<char, char_traits<char> >                 ios;
  163.   typedef basic_streambuf<char, char_traits<char> >           streambuf;
  164.   typedef basic_istream<char, char_traits<char> >             istream;
  165.   typedef basic_ostream<char, char_traits<char> >             ostream;
  166.   typedef basic_stringbuf<char, char_traits<char>, allocator<char> >           stringbuf;
  167.   typedef basic_istringstream<char, char_traits<char>, allocator<char> >       istringstream;
  168.   typedef basic_ostringstream<char, char_traits<char>, allocator<char> >       ostringstream;
  169.   typedef basic_filebuf<char, char_traits<char> >             filebuf;
  170.   typedef basic_ifstream<char, char_traits<char> >            ifstream;
  171.   typedef basic_ofstream<char, char_traits<char> >            ofstream;
  172.   typedef basic_fstream<char, char_traits<char> >             fstream;
  173.   typedef basic_iostream<char, char_traits<char> >            iostream;
  174.   typedef basic_stringstream<char, char_traits<char>, allocator<char> >        stringstream;
  175. #ifndef _RWSTD_NO_WIDE_CHAR
  176.   typedef basic_ios<wchar_t, char_traits<wchar_t> >           wios;
  177.   typedef basic_streambuf<wchar_t, char_traits<wchar_t> >     wstreambuf;
  178.   typedef basic_istream<wchar_t, char_traits<wchar_t> >       wistream;
  179.   typedef basic_ostream<wchar_t, char_traits<wchar_t> >       wostream;
  180.   typedef basic_stringbuf<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >     wstringbuf;
  181.   typedef basic_istringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wistringstream;
  182.   typedef basic_ostringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wostringstream;
  183.   typedef basic_filebuf<wchar_t, char_traits<wchar_t> >       wfilebuf;
  184.   typedef basic_ifstream<wchar_t, char_traits<wchar_t> >      wifstream;
  185.   typedef basic_ofstream<wchar_t, char_traits<wchar_t> >      wofstream;
  186.   typedef basic_fstream<wchar_t,char_traits<wchar_t> >        wfstream;
  187.   typedef basic_iostream<wchar_t, char_traits<wchar_t> >      wiostream;
  188.   typedef basic_stringstream<wchar_t,char_traits<wchar_t>, allocator<wchar_t> >   wstringstream;
  189. #endif // _RWSTD_NO_WIDE_CHAR
  190. #endif // _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  191.  
  192. #ifndef _RWSTD_NO_NAMESPACE
  193. }
  194. #endif
  195. #endif // __STD_IOSFWD__
  196. #ifndef __USING_STD_NAMES__
  197.   using namespace std;
  198. #endif
  199. #pragma option pop
  200. #endif /* __IOSFWD_H */
  201.