Go to the first, previous, next, last section, table of contents.


CNPIO -- persistent stream Object IO-formatting

SYNOPSIS

#include <CNCL/PIO.h>

TYPE

CN_PIO

BASE CLASSES

CNCL

DERIVED CLASSES

None

RELATED CLASSES

None

DESCRIPTION

CNPIO provides the format of storing and reading the persistent objects on/from a stream.The format convention can be described as follows:
classname
delimitation character
data
delimitation character


The functions provided by CNPIO are:

static int store_object(CNPstream& stream, CNObject& obj, bool no_ptr_check = FALSE);
static CNObject* read_object(CNPstream& stream);
Reads/Stores a persistent CNObject on the stream. A CNObject is recognized to be persistent if it is registered at the actual Reader Table. no_ptr_check determines if the objects are checked for multiple appearence (no_ptr_check = FALSE) or not (TRUE). Stores the id of the persistent object obj to the given stream.
static CNPID read_id(CNPstream& stream);
Reads the id from a stream.


Go to the first, previous, next, last section, table of contents.