#ifndef HORACONN_H
#define HORACONN_H
#include <string.h>
#include "TObject.h"
class HOraConn : public TObject {
protected:
Char_t dbName[31];
Char_t userName[21];
Bool_t isConnected;
Int_t actRunId;
Int_t runStart;
Char_t expLocation[11];
Char_t historyDate[21];
Int_t alignmentOutVers;
Bool_t needsServerCheck;
public:
HOraConn();
~HOraConn();
Bool_t open();
Bool_t open(Char_t*);
Bool_t open(Char_t*, Char_t*);
Bool_t isOpen() {return isConnected;}
Bool_t reconnect();
void close();
void disconnect();
void print();
void showSqlError(const Char_t*,const Char_t* msg=0);
Int_t getActRunId(void) { return actRunId; }
Int_t getRunStart(Int_t);
Int_t getActRunStart() { return runStart; }
const Char_t* getExpLocation() { return expLocation; }
Bool_t setHistoryDate(const Char_t*);
const Char_t* getHistoryDate() { return historyDate; }
Bool_t setParamRelease(const Char_t*);
Bool_t setParamRelease(Int_t);
Int_t getAlignmentOutputVersion() { return alignmentOutVers; }
void setAlignmentOutputVersion(Int_t v) { alignmentOutVers=v; }
private:
Bool_t openConnection(Char_t*);
Char_t* getPassword();
Int_t checkServerLoad();
ClassDef(HOraConn,0)
};
#endif /* !HORACONN_H */
Last change: Sat May 22 13:05:02 2010
Last generated: 2010-05-22 13:05
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.