This chapter lists the header files included in the stream directory, as well how to use the Streams package with other streaming libraries. The chapter also explains the basics about using the Streams package and introduces concepts and classes in the Streams package by working through a set of examples.
The rw\stream directory contains a header file for each class, named classname.h. The directory also includes six umbrella header files:
stream.h
binaryStream.h
narrowCharacterStream.h
UnicodeCharacterStream.h
wideCharacterStream.h
dataStream.h
The stream.h header file includes the definitions of all the public classes and types present in the Streams package. The other five header files include the definitions of all the public classes and types belonging to a specific stream family.
You can use the Streams package with the Standard iostreams library and with Essential Tools Module virtual streams.
Interaction with the C++ Standard iostreams library is accomplished in two ways:
Adapter classes inherit from the iostreams streambuf class.
Forwarding classes take an iostreams stream buffer instance and forward a request to it. This enables applications designed with streams to reuse iostreams stream buffer components.
The Streams package supports Standard iostreams.
Interaction with Essential Tools Module virtual streams is accomplished by adapter classes that inherit from the RWvistream and RWvostream classes.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.