File indexing completed on 2025-08-03 08:22:06
0001
0002
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
0020
0021 fDescription = description;
0022 fAttributes = attributes;
0023 }
0024
0025
0026 TSQLDriverInfo::~TSQLDriverInfo()
0027 {
0028
0029
0030 fAttributes->Delete();
0031 delete fAttributes;
0032 }
0033
0034
0035 void TSQLDriverInfo::Print(const Option_t* ) const
0036 {
0037
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 }