Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
IOstream Library
manipulators
classes:
filebuf
fstream
ifstream
ios
iostream
ios_base
istream
istringstream
ofstream
ostream
ostringstream
streambuf
stringbuf
stringstream
objects:
cerr
cin
clog
cout
types:
fpos
streamoff
streampos
streamsize
ios_base
ios_base::ios_base
ios_base::~ios_base
member classes:
ios_base::failure
ios_base::Init
member functions:
ios_base::flags
ios_base::getloc
ios_base::imbue
ios_base::iword
ios_base::precision
ios_base::pword
ios_base::register_callback
ios_base::setf
ios_base::sync_with_stdio
ios_base::unsetf
ios_base::width
ios_base::xalloc
member types:
ios_base::event
ios_base::event_callback
ios_base::fmtflags
ios_base::iostate
ios_base::openmode
ios_base::seekdir


ios_base::event_callback

public member type

Event callback function type

Member function type for callback functions to be registered with register_callback member function.

It is defined as a member function of ios_base as:

 
typedef void (*event_callback) (event ev, ios_base& obj, int index);


Therefore it is a function returning no value and having three parameters:
ev
The first parameter is an object of enum member type ios_base::event. When the callback function is called, this parameter is set to one of the three possible values to indicate what type of event triggered the function call.
obj
When the callback function is called, this parameter is a reference to the calling ios_base-derived object (*this).
index
When the callback function is called, this parameter is set to the same value used as the index argument when the function was registered with register_callback.

See also