Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

pqxx::unique< GUEST > Class Template Reference

Ensure proper opening/closing of GUEST objects related to a "host" object. More...

#include <util.hxx>

List of all members.

Public Member Functions

 unique ()
GUEST * get () const throw ()
void Register (GUEST *G)
void Unregister (GUEST *G)


Detailed Description

template<typename GUEST>
class pqxx::unique< GUEST >

Ensure proper opening/closing of GUEST objects related to a "host" object.

Only a single GUEST may exist for a single host at any given time. The template assumes that Classname<GUEST>() returns a user-readable name for the guest type, and that GUEST::name() returns a user-readable name for the GUEST object.

This template used to be called Unique.


Constructor & Destructor Documentation

template<typename GUEST>
pqxx::unique< GUEST >::unique  ) 
 


Member Function Documentation

template<typename GUEST>
GUEST* pqxx::unique< GUEST >::get  )  const throw ()
 

template<typename GUEST>
void pqxx::unique< GUEST >::Register GUEST *  G  ) 
 

template<typename GUEST>
void pqxx::unique< GUEST >::Unregister GUEST *  G  ) 
 


The documentation for this class was generated from the following file:
Generated on Sun Oct 5 05:38:10 2003 for libpqxx by doxygen 1.3.2