Left Up librpg - A other portgres-c++ - Interface

class PgResultHandle

Description

PgResultHandle is a Wrapper for PGresult. The only purpose now is to call PQClear in the Destruktor.

When it is needed, this class should get reference-counting and so on.
(Stroustrup : The C++ - Programminglanguage Kap. 25.7,
Gamma/Helm/Johnson/Vlissides: Designpatterns Addison Wesley 1995, Proxy-Pattern

Interface

PgResultHandle(PGresult *r)
Constructor
~PgResultHandle();
Destructor, calls PQClear()
void operator=(PGresult *r)
Assignmentoperator to write res = ...
ptr()
returns the PQResult

Computerscience and Networkassocation Ravensburg e.V Rudolf Weber