Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:22:06

0001 // $Id: TSQLDriverInfo.cxx,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
0002 //*-- Author : Valeriy Onuchin 14/02/2000
0003 //
0004 
0005 #include <RDBC/TSQLDriverInfo.h>
0006 #include <TNamed.h>
0007 #include <TList.h>
0008 #include <iostream>
0009 using std::cout;
0010 using std::endl;
0011 
0012 ClassImpQ(TSQLDriverInfo)
0013 
0014 /////////////////////////////////////////////////////////////////////
0015 //___________________________________________________________________
0016 TSQLDriverInfo::TSQLDriverInfo( const TString& description, 
0017                                 TList* attributes )
0018 {
0019    // constructor   
0020 
0021    fDescription = description;
0022    fAttributes = attributes;
0023 } 
0024 
0025 //___________________________________________________________________
0026 TSQLDriverInfo::~TSQLDriverInfo()
0027 {
0028    // destructor
0029 
0030    fAttributes->Delete();
0031    delete fAttributes;
0032 }
0033       
0034 //___________________________________________________________________
0035 void TSQLDriverInfo::Print(const Option_t* /* opt */) const
0036 {
0037    // print driver info
0038 
0039    TNamed* obj;
0040 
0041    cout << "\t" << fDescription << endl;
0042    
0043    TIter next(fAttributes);
0044    
0045    while((obj=(TNamed*)next())) {
0046       cout << "\t\t " << obj->GetName() << endl;
0047    }
0048 }