|
BrRdbmCalibrationsDbclass description - source file - inheritance tree class BrRdbmCalibrationsDb : public BrCalibrationsDbpublic: Data MembersClass DescriptionThis is a realisation for connectivity to a Relation Database Manager (RDBM) like MySQL or PostGreSQL BrRdbmCalibrationsDb(const Char_t* name, const Char_t* title) Normal constructor. Singleton. BrCalibrationsDb* Instance(void) Returns an instance of the Calibration Database connection. Connection _must_ be constructed somewhere previous to calling this static method. void AddRevision(BrDbRevision* revision) void AddRevisionType(BrDbRevisionType* type) Add a Revision Type to the database. Fails if it allready exists in the database (throws a BrExcpetion) void AddParameter(BrDbParameter* param) Add a parameter to the database. Fails if it allready exists in the database (throws a BrExcpetion) TObjArray* GetXParameter(const Char_t* condition) Find Parameters that matches condition <condition> TObjArray* GetXRevision(const Char_t* condition) Find Revisions that matches condition <condition> TObjArray* GetXRevisionType(const Char_t* condition) Find Revision Types that matches condition <condition> BrDbParameter* GetParameter(const Char_t* condition) Find a parameter that matches condition <condition> BrDbParameter* GetParameter(const Char_t* name, Int_t detectorId) Find a parameter with name <name> belonging to detector <detectorId> BrDbRevision* GetRevision(const Char_t* condition) Find a single Revision macthing condition. BrDbRevision* GetRevision(Int_t parameterId, Int_t start, Int_t stop, Int_t typeId, Int_t parameterPolicy) Find a single Revision in the database belonging to Parameter parameterId, inside the time period from start (inclusive) to stop (exclusive), and having type typeId. stop may be negative, in which case the database is serached for time preiod containg start. typeId, may be less then or equal to -1, in which case only standard Revision Types are searched. If typeId is zero, any revision will be searched. Default is to only search standard revisions. GetRevisionType(const Char_t* condition) Find a single Revision Type macthing <condition>. GetRevisionType(const Char_t* name, const Char_t* inComment) Query the database for a single Revision Type. The first argument is the name of the revision (mandetory), and the second is a string to search for in the comment field. The second arguement may by "", NULL, or 0, in which case no query is perfomed on the comment field. If a second argument is specified, the first argument is a substring to search for. Inline FunctionsTClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrRdbmCalibrationsDb BrRdbmCalibrationsDb(BrRdbmCalibrationsDb&) void ~BrRdbmCalibrationsDb() |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|