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


CNPstream -- abstract base class for persistent stream classes

SYNOPSIS

#include <CNCL/Pstream.h>

TYPE

CN_PSTREAM

BASE CLASSES

CNObject

DERIVED CLASSES

None

RELATED CLASSES

None

DESCRIPTION

CNPstream is the abstract base class for the persistent stream classes. Thus, only IO-operators and IO-functions are defined here. The concrete definition of the methods and operators must be done in the derived classes. Thus by this approach the possibilities of polymorphism are kept.

Constructors:

CNPstream();
CNPstream(*param);
Initializes the CNPstream.


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

virtual CNPstream& operator<<(const char*)=0;
virtual CNPstream& operator<<(char)=0;
virtual CNPstream& operator<<(long)=0;
virtual CNPstream& operator<<(double)=0;
virtual CNPstream& operator>>(char*)=0;
virtual CNPstream& operator>>(char&)=0;
virtual CNPstream& operator>>(long&)=0;
virtual CNPstream& operator>>(double&)=0;
Virtual persistent IO operators.
virtual CNPstream& getline(char*, int ) = 0;
Virtual getline function for string input.


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