Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

27.3 Writing to a Virtual Stream Instead of a CORBA::Request

The orb library contains two classes, RWreqistream and RWreqostream, that provide what is essentially a virtual stream veneer over the CORBA::Request object. This veneer lets you write insertion and extraction operators to a virtual stream rather than to a CORBA::Request object.

27.3.1 Advantages

There are several advantages to using RWreqistream and RWreqostream, including:

27.3.2 What are RWreqistream and RWreqostream?

The orb library RWreqistream and RWreqostream classes are concrete implementations of the Tools.h++ abstract base classes RWvistream and RWvostream.

The Tools.h++ RWvistream and RWvostream classes describe input and output streams respectively. Rogue Wave provides a number of concrete virtual stream implementations of these classes for different purposes. One formats the stream into ASCII characters, another into a binary representation, and so on. However, it doesn't matter which concrete stream implementation you decide to use. Since you write the streaming insertion and extraction operators for your classes in terms of the virtual stream base classes, your classes can be used with any of the Rogue Wave virtual stream implementations.

The orb library RWreqistream and RWreqostream class constructors take a reference to a CORBA::Request as a parameter. Internally the streams translate insertions and extractions on themselves into insertions and extractions on the CORBA::Request.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.