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


CNPInt -- class persistent CNInt

SYNOPSIS

#include <CNCL/PInt.h>

TYPE

CN_PINT

BASE CLASSES

CNInt, CNPObjectID

DERIVED CLASSES

None

RELATED CLASSES

CNPString, CNPDouble

DESCRIPTION

CNPInt manages the persistency of CNInt's. As CNInt is its base class, all methods of CNInt are available.

Constructors:

CNPInt(long val=0);
CNPInt(CNPstream& stream);
CNPInt(CNParam *param);
Initializes the CNPInt. Either the value is given as val ( 0 by default) or it will be read from the persistent stream (reader-constructor).


In addition to the member functions required by CNCL, CNInt provides:

virtual int store_on(CNPstream& s);
int store_on(CNPstream& s, bool no_ptr_check);
Stores the CNPInt on the persistent stream s. The boolean parameter no_ptr_check switches the check for multiple storing off (if set TRUE).
static CNPInt* read_from(CNPstream& s);
Reads the CNPInt from stream s.
static CNObject* object_read_from(CNPstream& s);
Reads from stream s as a CNObject.
CNPID object_id();
Returns the ID of the current Object.
virtual int storer(CNPstream&);
static CNPInt* reader(CNPstream& s);
These two functions are called by the class CNPIO as a connection to the persistent output/reader-construktor.


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