//*-- AUTHOR : Ilse Koenig //*-- Modified : 05/07/2001 //_HADES_CLASS_DESCRIPTION ///////////////////////////////////////////////////////////// // HDbConn // // Oracle connection class (used for Oracle utility programs) // (uses the Oracle C/C++ precompiler) // ///////////////////////////////////////////////////////////// using namespace std; #include "hdbconn.h" #include #include #include #include #include #include #include #include #include #include // Oracle communication area #include // SQL Communications Area #include // SQL prototype routines #include ClassImp(HDbConn) HDbConn::HDbConn() { // Default constructor (Connection not yet open) dbIsOpen=kFALSE; noDDL=kTRUE; } HDbConn::~HDbConn() { // Destructor closeDbConn(); } Bool_t HDbConn::connectDb(TString userName, TString dbName) { // Opens an Oracle connection (e.g.with: "hades","db-hades") // Asks for a password. uName=userName; uName.ToUpper(); if (uName.CompareTo("SCOTT")==0) { cout<<"User SCOTT is not allowed to use this program!"< "; Int_t n=scanf("%[^\n]%*c",passwd); if(n==0)cout<<"no password found!"< "; Bool_t res=fgets(buf, 19, stdin); if(!res)cout<<"could not retrieve next buffer!"<