Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

ios_base


Base Class

Summary

Defines member types and maintains data for classes that inherit from it.

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

Synopsis

#include <ios>
class ios_base;

Description

The class ios_base defines several member types:

It maintains several kinds of data:

Interface

Types

fmtflags
iostate
openmode
seekdir
event_callback

Public Constructors

ios_base();

Public Destructors

virtual
 ~ios_base();

Public Member Functions

ios_base& 
copyfmt(const ios_base& rhs); 
fmtflags 
flags() const; 
fmtflags 
flags(fmtflags fmtfl); 
locale 
getloc() const; 
locale 
imbue(const locale& loc); 
bool 
is_sync();
long& 
iword(int idx); 
streamsize 
precision() const; 
streamsize 
precision(streamsize prec); 
void*& 
pword(int idx); 
void 
register_callback(event_callback fn, int index); 
fmtflags 
setf(fmtflags fmtfl); 
fmtflags 
setf(fmtflags fmtfl, fmtflags mask); 
bool 
sync_with_stdio(bool sync = true); 
void 
unsetf(fmtflags mask); 
streamsize 
width() const; 
streamsize 
width(streamsize wide); 
static int 
xalloc();

Class failure

The class failure defines the base class for the types of all objects thrown as exceptions by functions in the iostreams library. It reports errors detected during stream buffer operations.

explicit failure(const string& msg); 
const char* 
what() const; 

Class Init

The class Init describes an object whose construction ensures the construction of the eight objects declared in <iostream>, which associate file stream buffers with the standard C streams.

Non-member Functions

ios_base& 
boolalpha(ios_base& str); 
ios_base& 
dec(ios_base& str); 
ios_base& 
fixed(ios_base& str); 
ios_base& 
hex(ios_base& str); 
ios_base& 
internal(ios_base& str); 
ios_base& 
left(ios_base& str); 
ios_base& 
noboolalpha(ios_base& str); 
ios_base& 
noshowbase(ios_base& str); 
ios_base& 
noshowpoint(ios_base& str); 
ios_base& 
noshowpos(ios_base& str); 
ios_base& 
noskipws(ios_base& str); 
ios_base& 
nounitbuf(ios_base& str); 
ios_base& 
nouppercase(ios_base& str); 
ios_base& 
oct(ios_base& str); 
ios_base& 
right(ios_base& str); 
ios_base& 
scientific(ios_base& str); 
ios_base& 
showbase(ios_base& str); 
ios_base& 
showpoint(ios_base& str); 
ios_base& 
showpos(ios_base& str); 
ios_base& 
skipws(ios_base& str); 
ios_base& 
unitbuf(ios_base& str); 
ios_base& 
uppercase(ios_base& str); 

See Also

basic_ios(3C++), basic_istream(3C++), basic_ostream(3C++), char_traits(3C++)

Working Paper for Draft Proposed International Standard for Information Systems--Programming Language C++, Section 27.4.2

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