Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

ios_base

Library:  Input/output


Does not inherit

Local Index

Members

Non-Members

Summary

Base class that defines member types and maintains data for classes that inherit from it

Synopsis

#include <ios>

namespace std {
  class ios_base;
}

Description

The class ios_base defines several member types:

It maintains several kinds of data:

Interface

Member Types

fmtflags
iostate
openmode

NOTE -- The nocreate and noreplace elements are not part of the C++ Standard, but are provided as an extension. See Appendix B, for a complete list of extensions of this implementation.
seekdir
event 
event_callback

Protected Constructor

ios_base();

Destructors

virtual
~ios_base();

Public Member Functions

fmtflags
flags() const;
fmtflags 
flags(fmtflags fmtfl); 
fmtflags 
setf(fmtflags fmtfl); 
fmtflags 
setf(fmtflags fmtfl, fmtflags mask); 
void 
unsetf(fmtflags mask); 
locale 
getloc() const; 
locale 
imbue(const locale& loc); 
long& 
iword(int idx); 
streamsize 
precision() const; 
streamsize 
precision(streamsize prec); 
void*& 
pword(int idx); 
void 
register_callback(event_callback fn, int index); 
bool 
sync_with_stdio(bool sync = true); 
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.

Constructor

explicit failure(const string& msg); 

Public Member Function

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 associates file stream buffers with the standard C streams.

Nonmember Functions

The following functions are ios_base manipulators.

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, basic_istream, basic_ostream, char_traits

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Section 27.4.2



Previous fileTop of DocumentContentsIndex pageNext file