Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pqxx::internal::connectionpolicy_base Class Reference

Base class for connection policies. More...

#include <connection_base.hxx>

Inheritance diagram for pqxx::internal::connectionpolicy_base:

pqxx::connect_async pqxx::connect_direct pqxx::connect_lazy pqxx::connect_null List of all members.

Public Member Functions

pq::PGconnstart ()
pq::PGconnstart_if_needed (pq::PGconn *)
pq::PGconncomplete (pq::PGconn *)
pq::PGconnfullconnect (pq::PGconn *)
pq::PGconnreset (pq::PGconn *)
void disconnect (pq::PGconn *old) throw ()
void close_and_throw (pq::PGconn *)
 Utility function: close failed connection and throw broken_connection.

Protected Member Functions

 connectionpolicy_base (connection_base &c) throw ()
connection_baseconnection_obj () const throw ()
 Return connection_base object we're mated with.
void wait_read () const
 Wait until connection may have incoming data for us.
void wait_read (long seconds, long microseconds) const
 Wait until connection may have incoming data for us, or timeout expires.
void wait_write () const
 Wait until connection can accept outgoing data.
connection_baseconn () const throw ()

Detailed Description

Base class for connection policies.

This class is fragile. It has virtual functions but no virtual destructor.


Constructor & Destructor Documentation

pqxx::internal::connectionpolicy_base::connectionpolicy_base connection_base c  )  throw () [explicit, protected]
 


Member Function Documentation

void pqxx::internal::connectionpolicy_base::close_and_throw pq::PGconn  ) 
 

Utility function: close failed connection and throw broken_connection.

pq::PGconn * pqxx::internal::connectionpolicy_base::complete pq::PGconn  ) 
 

connection_base& pqxx::internal::connectionpolicy_base::conn  )  const throw () [protected]
 

connection_base& pqxx::internal::connectionpolicy_base::connection_obj  )  const throw () [protected]
 

Return connection_base object we're mated with.

void pqxx::internal::connectionpolicy_base::disconnect pq::PGconn old  )  throw ()
 

pq::PGconn * pqxx::internal::connectionpolicy_base::fullconnect pq::PGconn  ) 
 

pq::PGconn * pqxx::internal::connectionpolicy_base::reset pq::PGconn  ) 
 

pq::PGconn * pqxx::internal::connectionpolicy_base::start  ) 
 

pq::PGconn * pqxx::internal::connectionpolicy_base::start_if_needed pq::PGconn  ) 
 

void pqxx::internal::connectionpolicy_base::wait_read long  seconds,
long  microseconds
const [protected]
 

Wait until connection may have incoming data for us, or timeout expires.

void pqxx::internal::connectionpolicy_base::wait_read  )  const [protected]
 

Wait until connection may have incoming data for us.

void pqxx::internal::connectionpolicy_base::wait_write  )  const [protected]
 

Wait until connection can accept outgoing data.


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 21:56:43 2004 for libpqxx by  doxygen 1.3.9.1