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

connection.hxx

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/connection.hxx
00005  *
00006  *   DESCRIPTION
00007  *      definition of the pqxx::connection and pqxx::lazyconnection classes.
00008  *   Different ways of setting up a backend connection.  
00009  *   DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/connection instead.
00010  *
00011  * Copyright (c) 2001-2003, Jeroen T. Vermeulen <jtv@xs4all.nl>
00012  *
00013  * See COPYING for copyright license.  If you did not receive a file called
00014  * COPYING with this source code, please notify the distributor of this mistake,
00015  * or contact the author.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #include "pqxx/connection_base"
00020 
00021 
00022 /* Methods tested in eg. self-test program test1 are marked with "//[t1]"
00023  */
00024 
00025 namespace pqxx
00026 {
00027 
00029 
00045 class PQXX_LIBEXPORT connection : public connection_base
00046 {
00047 public:
00049 
00053   connection();                                                         //[t1]
00054 
00056 
00061   explicit connection(const PGSTD::string &ConnInfo);                   //[t2]
00062 
00064 
00068   explicit connection(const char ConnInfo[]);                           //[t3]
00069 
00070   virtual ~connection();
00071 };
00072 
00073 
00075 
00083 class PQXX_LIBEXPORT lazyconnection : public connection_base
00084 {
00085 public:
00087   lazyconnection() : connection_base(0) {}                              //[t23]
00088 
00090 
00093   explicit lazyconnection(const PGSTD::string &ConnInfo) :              //[t21]
00094     connection_base(ConnInfo) {}
00095 
00097 
00101   explicit lazyconnection(const char ConnInfo[]) :                      //[t22]
00102     connection_base(ConnInfo) {}
00103 
00104   virtual ~lazyconnection();
00105 };
00106 
00107 }
00108 
00109 

Generated on Mon Oct 13 13:20:13 2003 for libpqxx by doxygen 1.3.4