epoc32/include/tools/stlport/iostream
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
/*
williamr@4
     2
 * Copyright (c) 1999
williamr@4
     3
 * Silicon Graphics Computer Systems, Inc.
williamr@4
     4
 *
williamr@4
     5
 * Copyright (c) 1999
williamr@4
     6
 * Boris Fomitchev
williamr@4
     7
 *
williamr@4
     8
 * This material is provided "as is", with absolutely no warranty expressed
williamr@4
     9
 * or implied. Any use is at your own risk.
williamr@4
    10
 *
williamr@4
    11
 * Permission to use or copy this software for any purpose is hereby granted
williamr@4
    12
 * without fee, provided the above notices are retained on all copies.
williamr@4
    13
 * Permission to modify the code and to distribute modified code is granted,
williamr@4
    14
 * provided the above notices are retained, and a notice that the code was
williamr@4
    15
 * modified is included with the above copyright notice.
williamr@4
    16
 *
williamr@4
    17
 */
williamr@4
    18
williamr@4
    19
#ifndef _STLP_IOSTREAM
williamr@4
    20
#define _STLP_IOSTREAM
williamr@4
    21
williamr@4
    22
# ifndef _STLP_OUTERMOST_HEADER_ID
williamr@4
    23
#  define _STLP_OUTERMOST_HEADER_ID 0x1037
williamr@4
    24
#  include <stl/_prolog.h>
williamr@4
    25
# endif
williamr@4
    26
williamr@4
    27
# ifdef _STLP_PRAGMA_ONCE
williamr@4
    28
#  pragma once
williamr@4
    29
# endif
williamr@4
    30
williamr@4
    31
#include <stl/_ioserr.h>
williamr@4
    32
williamr@4
    33
#ifdef _STLP_REDIRECT_STDSTREAMS
williamr@4
    34
// for ofstream redirection
williamr@4
    35
# include <fstream>
williamr@4
    36
#endif
williamr@4
    37
williamr@4
    38
#include <stl/_iosfwd.h>
williamr@4
    39
#include <stl/_istream.h>
williamr@4
    40
williamr@4
    41
_STLP_BEGIN_NAMESPACE
williamr@4
    42
williamr@4
    43
#ifndef _STLP_USE_NAMESPACES
williamr@4
    44
// in case of SGI iostreams, we have to rename our streams not to clash with those
williamr@4
    45
// provided in native lib
williamr@4
    46
# define cin _STLP_cin
williamr@4
    47
# define cout _STLP_cout
williamr@4
    48
# define cerr _STLP_cerr
williamr@4
    49
# define clog _STLP_clog
williamr@4
    50
#endif
williamr@4
    51
williamr@4
    52
// Note: cin and wcin are both associated with stdio.  The C standard
williamr@4
    53
// (Amendment 1, section 4.6.2.1) says that it is an error to mix
williamr@4
    54
// wide- and narrow-oriented I/O on the same stream.  This implies
williamr@4
    55
// that it is an error to use both cin and wcin in the same C++
williamr@4
    56
// program; the same applies to cout and wcout, and cerr/clog and
williamr@4
    57
// wcerr/wclog.
williamr@4
    58
williamr@4
    59
# ifdef _STLP_REDIRECT_STDSTREAMS
williamr@4
    60
extern _STLP_DECLSPEC istream cin;
williamr@4
    61
extern _STLP_DECLSPEC ofstream cout;
williamr@4
    62
extern _STLP_DECLSPEC ofstream cerr;
williamr@4
    63
extern _STLP_DECLSPEC ofstream clog;
williamr@4
    64
# else
williamr@4
    65
extern _STLP_DECLSPEC istream cin;
williamr@4
    66
extern _STLP_DECLSPEC ostream cout;
williamr@4
    67
extern _STLP_DECLSPEC ostream cerr;
williamr@4
    68
extern _STLP_DECLSPEC ostream clog;
williamr@4
    69
# endif
williamr@4
    70
williamr@4
    71
# ifndef _STLP_NO_WCHAR_T
williamr@4
    72
extern _STLP_DECLSPEC wistream wcin;
williamr@4
    73
extern _STLP_DECLSPEC wostream wcout;
williamr@4
    74
extern _STLP_DECLSPEC wostream wcerr;
williamr@4
    75
extern _STLP_DECLSPEC wostream wclog;
williamr@4
    76
# endif
williamr@4
    77
williamr@4
    78
_STLP_END_NAMESPACE
williamr@4
    79
williamr@4
    80
//# elif defined ( _STLP_USE_NO_IOSTREAMS )
williamr@4
    81
//#  include <stl/_null_stream.h>
williamr@4
    82
williamr@4
    83
# if (_STLP_OUTERMOST_HEADER_ID == 0x1037)
williamr@4
    84
#  include <stl/_epilog.h>
williamr@4
    85
#  undef _STLP_OUTERMOST_HEADER_ID
williamr@4
    86
# endif
williamr@4
    87
williamr@4
    88
#endif /* _STLP_IOSTREAM */
williamr@4
    89
williamr@4
    90
// Local Variables:
williamr@4
    91
// mode:C++
williamr@4
    92
// End: