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  *-------------------------------------------------------------------------
00013  */
00014 #ifndef PQXX_CONNECTION_H
00015 #define PQXX_CONNECTION_H
00016 
00017 #include "pqxx/connection_base.h"
00018 
00019 
00020 /* Methods tested in eg. self-test program test1 are marked with "//[t1]"
00021  */
00022 
00023 namespace pqxx
00024 {
00025 
00027 
00043 class PQXX_LIBEXPORT Connection : public Connection_base
00044 {
00045 public:
00047   Connection();                                                         //[t1]
00048 
00050 
00053   explicit Connection(const PGSTD::string &ConnInfo);                   //[t2]
00054 
00056 
00060   explicit Connection(const char ConnInfo[]);                           //[t3]
00061 
00062   virtual ~Connection();
00063 };
00064 
00065 
00067 
00075 class PQXX_LIBEXPORT LazyConnection : public Connection_base
00076 {
00077 public:
00079   LazyConnection() : Connection_base(0) {}                              //[t23]
00080 
00082 
00085   explicit LazyConnection(const PGSTD::string &ConnInfo) :              //[t21]
00086     Connection_base(ConnInfo) {}
00087 
00089 
00093   explicit LazyConnection(const char ConnInfo[]) :                      //[t22]
00094     Connection_base(ConnInfo) {}
00095 
00096   virtual ~LazyConnection();
00097 };
00098 
00099 }
00100 
00101 #endif
00102 

Generated on Sat May 10 18:53:38 2003 for libpqxx by doxygen1.3-rc3