Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TSQLDriverManager.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TSQLDriverManager.h
1 // $Id: TSQLDriverManager.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2 
3 #ifndef RDBC_TSQLDriverManager_h
4 #define RDBC_TSQLDriverManager_h
5 
6 //
7 // TSQLDriverManager - "plug-in" loader
8 //
9 
10 #ifndef RDBC_TSQL_h
11 #include <RDBC/TSQL.h>
12 #endif
13 
14 #ifndef ROOT_TObject
15 #include "TObject.h"
16 #endif
17 
18 class TSQLConnection;
20 class TSQLDriverManager: public TObject, public TSQL
21 {
23 
24 private:
26  : TObject(), TSQL() {} // forbid
27  void operator=(const TSQLDriverManager&) {} // forbid
28  TSQLDriverManager(); // forbid
29 
30 public:
32  static TSQLConnection* GetConnection( const TString& connectString );
33  static TSQLConnection* GetConnection( const TString& dsn,
34  const TString& user,
35  const TString& password="");
36  static Int_t GetLoginTimeout();
37  static void SetLoginTimeout( Int_t seconds );
38  static void Shutdown();
39  static TList* GetDataSources();
40  static TList* GetDrivers();
41  static TList* GetConnections();
42  const char* GetName() const { return "gSQLDriverManager"; }
43 
44 ClassDef(TSQLDriverManager,0)//The basic service for managing a set of drivers.
45 };
46 
48 
49 #endif // RDBC_TSQLDriverManager_h