Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

basic_ios


basic_Iosinherits fromios_base

Summary

A base class that includes the common functions required by all streams.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <ios>
template<class charT, class traits = char_traits<charT> >
class basic_ios : public ios_base

Description

The class basic_ios is a base class that includes the common functions required by all streams. It maintains state information that reflects the integrity of the stream and stream buffer. It also maintains the link between the stream classes and the stream buffer classes via the rdbuf member functions. Classes derived from basic_ios specialize operations for input and output.

Interface

Types

char_type
ios
int_type
ios_type
off_type
ostream_type
pos_type
streambuf_type
traits_type
wios

Public Constructors

explicit basic_ios(basic_streambuf<charT, traits>* sb); 
basic_ios();

Public Destructors

virtual ~basic_ios();

Public Member Functions

bool 
bad() const; 
void 
clear(iostate state = goodbit); 
basic_ios& 
copyfmt(const basic_ios& rhs); 
bool 
eof() const; 
iostate 
exceptions() const; 
void 
exceptions(iostate except); 
bool 
fail() const; 
char_type 
fill() const; 
char_type 
fill(char_type fillch); 
bool 
good() const; 
locale 
imbue(const locale& loc); 
void 
init(basic_streambuf<charT,traits>* sb); 
char 
narrow(charT c, char dfault) const; 
bool 
operator!() const; 
streambuf_type* 
rdbuf() const; 
streambuf_type* 
rdbuf(streambuf_type* sb); 
iostate 
rdstate() const; 
void 
setstate(iostate state); 
ostream_type* 
tie() const; 
ostream_type* 
tie(ostream_type* tiestr); 
operator 
void*() const; 
charT 
widen(char c) const; 

See Also

ios_base(3C++), basic_istream(3C++), basic_ostream(3C++), basic_streambuf(3C++), char_traits(3C++)

Working Paper for Draft Proposed International Standard for Information Systems--Programming Language C++, section 27.4.5.

Standards Conformance

ANSI X3J16/ISO WG21 Joint C++ Committee



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998