Go to the previous, next section.
#include <nihcl/OIOnih.h>
Class
OIOnihout
implements a simple "NIH format" object output to
ostream
s 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.
OIOnihout(ostream&
s, unsigned
capacity
=256)
OIOnihout
for the
ostream
s
with an initial object capacity of
capacity
objects (see class
StoreOnTbl
).
virtual void storeObject(const Object&
ob)
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
Go to the previous, next section.