WWC snapshot of http://www.alw.nih.gov/Docs/NIHCL/nihcl_32.html taken on Sat Jun 10 19:13:52 1995

Go to the previous, next section.

OIOnihout--Stream Object Output Formatting

SYNOPSIS

#include <nihcl/OIOnih.h>

BASE CLASS

OIOostream

DERIVED CLASSES

None

RELATED CLASSES

OIOnihin

DESCRIPTION

Class OIOnihout implements a simple "NIH format" object output to ostreams for the storeOn() function. It inherits virtual member functions for writing the fundamental data types, arrays of fundamental data types, and C-style (null-terminated) character strings from class OIOostream. It also inherits virtual member functions for setting and accessing the output format precision and field width. It defines a storeObject() member function to write objects in "NIH" format.

CONSTRUCTORS

OIOnihout(ostream& s, unsigned capacity =256)
Constructs an OIOnihout for the ostream s with an initial object capacity of capacity objects (see class StoreOnTbl).

PROTECTED MEMBERS

Object I/O

virtual void storeObject(const Object& ob)
Stores the argument object ob on the ostream associated with this OIOnihout. Decides whether to store the object's class description or a reference to a previous class description. Decides whether to store the object itself, or a reference to a previously stored object.

A class descriptor is stored as:

`:'className`.'signature

A reference to a class descriptor is stored as:

`#'classNumber

Objects are stored as:

`{\n'
output of storer()
`}\n'

A reference to an object is stored as:

`@'objectNumber

EXCEPTIONS RAISED

None

Go to the previous, next section.