Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TSQLDriverInfo.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TSQLDriverInfo.cxx
1 // $Id: TSQLDriverInfo.cxx,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2 //*-- Author : Valeriy Onuchin 14/02/2000
3 //
4 
5 #include <RDBC/TSQLDriverInfo.h>
6 #include <TNamed.h>
7 #include <TList.h>
8 #include <iostream>
9 using std::cout;
10 using std::endl;
11 
13 
14 
15 //___________________________________________________________________
16 TSQLDriverInfo::TSQLDriverInfo( const TString& description,
17  TList* attributes )
18 {
19  // constructor
20 
21  fDescription = description;
22  fAttributes = attributes;
23 }
24 
25 //___________________________________________________________________
27 {
28  // destructor
29 
30  fAttributes->Delete();
31  delete fAttributes;
32 }
33 
34 //___________________________________________________________________
35 void TSQLDriverInfo::Print(const Option_t* /* opt */) const
36 {
37  // print driver info
38 
39  TNamed* obj;
40 
41  cout << "\t" << fDescription << endl;
42 
43  TIter next(fAttributes);
44 
45  while((obj=(TNamed*)next())) {
46  cout << "\t\t " << obj->GetName() << endl;
47  }
48 }