Using the Standard C++ Library I/O Stream Classes

The object-oriented model for input and output (I/O) is a set of classes and header files that are provided by the Standard C++ Library. These classes implement and manage the stream buffers and the data held in the buffers. Stream buffers hold data sent to the program (input) and from the program (output), enabling the program to manipulate and format the data.

There are two base classes, ios and streambuf, from which all other I/O stream classes are derived. The ios class and its derivative classes are used to implement formatting of I/O and maintain error state information of stream buffers implemented with the streambuf class.

There are two shipped versions of the I/O stream classes:

The I/O stream classes use OBJECTMODEL(CLASSIC). They cannot be used with other classes that use OBJECTMODEL(IBM), within the same inheritance hierarchy. For more information, see OBJECTMODEL in z/OS XL C/C++ User's Guide.