adapter |
When a binary stream (
os_bstream ) or text stream ( os_tstream )
is constructed, it is associated with a particular I/O device via an
intermediate device adapter object called an os_adapter
. When an item is streamed, it is sent to the I/O device via the adapter. This
technique enables the streaming mechanisms to be fully decoupled from details of
any particular I/O device.
Recursion Software provides device adapters for a variety of I/O objects.
os_fileos_pipeos_tcp_socketfstreamstringstreamostream
(like cout and cerr
)istream
(like cin ) For additional information, refer
to the catalog entry for os_device .
For IOStream based objects, use the
global function os_adapter_for() to create the
appropriate adapter.
0
if no device is available.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.