1 / 3

CSE 687 - Object Oriented Design

CSE 687 - Object Oriented Design. Streams Reference. Jim Fawcett CSE687 Spring 2005. Streams Library Classes. Streams: Part of the Standard C++ Library. They are a family of related classes designed to insert and extract data from devices and memory buffers. The most important classes are:

ossie
Download Presentation

CSE 687 - Object Oriented Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE 687 - Object Oriented Design Streams Reference Jim Fawcett CSE687 Spring 2005 Chapter 11 - iostreams

  2. Streams Library Classes • Streams:Part of the Standard C++ Library. They are a family of related classes designed to insert and extract data from devices and memory buffers. The most important classes are: • ios which controls formatting and manages error state for all streams • streambuf abstracts buffering of data during insertion and extraction from streams • istream provides the basic client interface for extraction from a stream • ostream provides the basic client interface for insertion into a stream • iostream simply merges istream and ostream. • ifstream derives from istream specialized for input streams that extract from files • ofstream derives from ostream specialized for output streams that insert to files • filebuf derives from streambuf specialized for file buffering • istringstream derives from istream specialized for input streams that extract from buffers in memory • ostringstream derives from ostream specialized for output streams that insert to buffers in memory • stringbuf derives from streambuf specialized for in- memory buffers • stdiobuf provides compatibility with stdio • Global objects: • cin, cout, cerr, and clog Chapter 11 - iostreams

  3. iostream Hierarchy Chapter 11 - iostreams

More Related