TDVCSDB
class description - source file - inheritance tree (.ps)
private:
void ClearLatest(char* date, char* shift, char* job)
void UpdateLatest(char* name, char* username, char* date, char* shift, char* job)
public:
TDVCSDB(char* db, char* host, Int_t port, char* user)
TDVCSDB(char* db, char* host, Int_t port, char* user, char* passwd)
TDVCSDB(char* host, Int_t port, char* user)
TDVCSDB(const TDVCSDB&)
virtual ~TDVCSDB()
Int_t AddEntry(char* tablename, Int_t runmin, Int_t runmax, Int_t col, Double_t val, char* comment)
Int_t AddEntry(char* tablename, Int_t run, Int_t runmin, Int_t runmax, Int_t col, Double_t val, char* comment)
Int_t AddEntry(char* tablename, Int_t runmin, Int_t runmax, char* filename, char* comment)
void AddEntry_d(char* tablename, Int_t runmin, Int_t runmax, Double_t* val, char* comment)
void AddEntry_f(char* tablename, Int_t runmin, Int_t runmax, Float_t* val, char* comment)
void AddEntry_i(char* tablename, Int_t runmin, Int_t runmax, Int_t* val, char* comment)
void AddNewShift(char* date, char* shift, char* job)
Int_t AddOneEntry(char* tablename, Int_t runmin, Int_t runmax, Double_t val, char* comment)
void AddShift(char* name, char* username, char* date, char* shift, char* job)
static TClass* Class()
void ClearShift(char* date, char* shift, char* job)
Int_t CopyEntry(char* tablename, Int_t run, Int_t runmin, Int_t runmax, char* comment)
Int_t CreateTable(char* nametable, char* type, Int_t number)
void GetEntry(const char* tablename, Int_t run, const char* filename)
TString GetEntry_c(const char* tablename, Int_t run, Int_t col)
Double_t* GetEntry_d(const char* tablename, Int_t run)
Double_t GetEntry_d(const char* tablename, Int_t run, Int_t col)
Float_t* GetEntry_f(const char* tablename, Int_t run)
Float_t GetEntry_f(const char* tablename, Int_t run, Int_t col)
Int_t* GetEntry_i(const char* tablename, Int_t run)
Int_t GetEntry_i(const char* tablename, Int_t run, Int_t col)
Int_t GetLastValueId(const char* nametable, Int_t run)
TSQLServer* GetServer()
virtual TClass* IsA() const
TDVCSDB& operator=(const TDVCSDB&)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
TSQLServer* fServer
TString fUser
DVCS database class
TDVCSDB(char* host, Int_t port, char* user)
TDVCSDB(char* db, char* host, Int_t port, char* user)
TDVCSDB(char* db, char* host, Int_t port, char* user, char* passwd)
Int_t GetLastValueId(const char* nametable, Int_t run)
Returns the ValueId (primary key) of the last entry corresponding to run
'run'. If there is not such an entry it returns -1 and prints an error
message.
Int_t CreateTable(char* nametable, char* type, Int_t number)
Comments
Int_t CopyEntry(char* tablename, Int_t run, Int_t runmin, Int_t runmax, char* comment)
Copy values of run 'run' for runs between 'runmin' and 'runmax'
Int_t AddEntry(char* tablename, Int_t runmin, Int_t runmax, Int_t col, Double_t val, char* comment)
It adds an entry to table 'tablename' with value 'val' to column 'col'.
Values for other columns are copied from the precedent entry. This method
is to be use when only a parameter of a block is changed.
Int_t AddOneEntry(char* tablename, Int_t runmin, Int_t runmax, Double_t val, char* comment)
It adds an entry to one-column table 'tablename' with value 'val'.
Int_t AddEntry(char* tablename, Int_t run, Int_t runmin, Int_t runmax, Int_t col, Double_t val, char* comment)
It adds an entry to table 'tablename' with value 'val' to column 'col'.
Values for other columns are copied from run 'run'. This method
is to be use when only a parameter of a block is changed.
Int_t AddEntry(char* tablename, Int_t runmin, Int_t runmax, char* filename, char* comment)
It adds an entry to table 'tablename' reading values from 'filename;
void AddEntry_f(char* tablename, Int_t runmin, Int_t runmax, Float_t * val, char* comment)
It adds an entry to table 'tablename' reading values from 'filename;
void AddEntry_i(char* tablename, Int_t runmin, Int_t runmax, Int_t * val, char* comment)
It adds an entry to table 'tablename' reading values from 'filename;
void AddEntry_d(char* tablename, Int_t runmin, Int_t runmax, Double_t * val, char* comment)
It adds an entry to table 'tablename' reading values from 'filename;
void GetEntry(const char* tablename, Int_t run, const char* filename)
Float_t* GetEntry_f(const char* tablename, Int_t run)
Returns the whole entry as an array.
Warning : This method allocates dynamically a new array in memory.
YOU'RE RESPONSIBLE of deleting this array when you don't need it anymore
Double_t* GetEntry_d(const char* tablename, Int_t run)
Returns the whole entry as an array.
Warning : This method allocates dynamically a new array in memory.
YOU'RE RESPONSIBLE of deleting this array when you don't need it anymore
Int_t* GetEntry_i(const char* tablename, Int_t run)
Returns the whole entry as an array.
Warning : This method allocates dynamically a new array in memory.
YOU'RE RESPONSIBLE of deleting this array when you don't need it anymore
Double_t GetEntry_d(const char* tablename, Int_t run, Int_t col)
It returns the last entry of the column 'col' for run 'run' in the table
'tablename'.
Float_t GetEntry_f(const char* tablename, Int_t run, Int_t col)
It returns the last entry of the column 'col' for run 'run' in the table
'tablename'.
Int_t GetEntry_i(const char* tablename, Int_t run, Int_t col)
It returns the last entry of the column 'col' for run 'run' in the table
'tablename'.
TString GetEntry_c(const char* tablename, Int_t run, Int_t col)
It returns the last entry of the column 'col' for run 'run' in the table
'tablename'.
TDVCSDB(const TDVCSDB& block)
Copy constructor
void AddNewShift(char* date, char* shift, char* job)
Adds a new slot
void ClearLatest(char* date, char* shift, char* job)
Clears a shift in the latestshifts table
void UpdateLatest(char* name, char * username, char* date, char* shift, char* job)
Updates the latestshift table
void AddShift(char* name, char * username, char* date, char* shift, char* job)
Assocites someone to a shift slot
void ClearShift(char* date, char* shift, char* job)
Makes a shift slot available again
~TDVCSDB()
Default destructor
Inline Functions
TSQLServer* GetServer()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TDVCSDB& operator=(const TDVCSDB&)
Author: C. Muņoz
Last update: Fri May 6 17:56:58 2005
ROOT page - Class index - Class Hierarchy - Top of the page
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.