Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

connection.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/connection.h
00005  *
00006  *   DESCRIPTION
00007  *      definition of the pqxx::connection and pqxx::lazyconnection classes.
00008  *   Different ways of setting up a backend connection.
00009  *
00010  * Copyright (c) 2001-2003, Jeroen T. Vermeulen <jtv@xs4all.nl>
00011  *
00012  * See COPYING for copyright license.  If you did not receive a file called
00013  * COPYING with this source code, please notify the distributor of this mistake,
00014  * or contact the author.
00015  *
00016  *-------------------------------------------------------------------------
00017  */
00018 #ifndef PQXX_CONNECTION_H
00019 #define PQXX_CONNECTION_H
00020 
00021 #include "pqxx/connection_base.h"
00022 
00023 
00024 /* Methods tested in eg. self-test program test1 are marked with "//[t1]"
00025  */
00026 
00027 namespace pqxx
00028 {
00029 
00031 
00047 class PQXX_LIBEXPORT connection : public connection_base
00048 {
00049 public:
00051 
00055   connection();                                                         //[t1]
00056 
00058 
00063   explicit connection(const PGSTD::string &ConnInfo);                   //[t2]
00064 
00066 
00070   explicit connection(const char ConnInfo[]);                           //[t3]
00071 
00072   virtual ~connection();
00073 };
00074 
00076 typedef connection Connection;
00077 
00078 
00080 
00088 class PQXX_LIBEXPORT lazyconnection : public connection_base
00089 {
00090 public:
00092   lazyconnection() : connection_base(0) {}                              //[t23]
00093 
00095 
00098   explicit lazyconnection(const PGSTD::string &ConnInfo) :              //[t21]
00099     connection_base(ConnInfo) {}
00100 
00102 
00106   explicit lazyconnection(const char ConnInfo[]) :                      //[t22]
00107     connection_base(ConnInfo) {}
00108 
00109   virtual ~lazyconnection();
00110 };
00111 
00113 typedef lazyconnection LazyConnection;
00114 
00115 }
00116 
00117 #endif
00118 

Generated on Sat Jun 7 00:49:33 2003 for libpqxx by doxygen1.3-rc3