ascii


The os_ascii class is a protocol adapter that encodes and decodes primitive data types into ASCII text streams. Use this protocol with the Universal Streaming Service and to debug streaming problems. The os_ascii class also serves as a good example of how to create new protocol adapters.

Library

Streaming<ToolKit>

Declaration

#include <ospace/stream/ascii.h>

class os_ascii : public os_protocol

Interface

Constructor
os_ascii()
Constructs an ASCII protocol adapter.
Constructor
os_ascii( const os_adapter& device )
Constructs an ASCII protocol adapter for the attached device .
read
/* virtual */ bool read( type_t type , void* address )
Reads the primitive data type from the attached device into address . Returns true on success.

Throws: os_streaming_toolkit_error

write
/* virtual */ bool write( type_t type , const void* address )
Writes the primitive data type at address to the attached device. Returns true on success.

Throws: os_streaming_toolkit_error


Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.