|
BrDbclass description - source file - inheritance tree class BrDb : public TNamedprotected: Data Membersprotected: See alsoClass DescriptionBase class for BRAHMS databases. Individual database classes can inherit from this and then define the mathods in needs. E.g., a calibration databse classs, can define the methods "BrCalibObj* GetAround(time_t t)" to get calibration valid around the unix_timestamp t, and a run database could define "BrRunInfo* GetRun(int no)" etc. The actual database name is stored on the TNamed::fTitle, while the symbolic name is stored in TNamed::fName BrDb() Default constructor Char_t* Addr2String(void* addr, Ssiz_t size) Converts an array of size bytes at address addr, to a C string 2*size+1 long, conytaining a character representation of the hexadecimail numbers at the address. Char_t* Short2String(void* addr, const Int_t size) Converts an array of size bytes at address addr, to a C string 2*size+1 long, conytaining a character representation of the hexadecimail numbers at the address. Char_t* Int2String(void* addr, const Int_t size) Converts an array of size bytes at address addr, to a C string 2*size+1 long, conytaining a character representation of the hexadecimail numbers at the address. Char_t* Long2String(void* addr, const Int_t size) Converts an array of size bytes at address addr, to a C string 2*size+1 long, containing a character representation of the hexadecimail numbers at the address properly swapped according to the net representation of the Root datatypes. Char_t* Float2String(void* addr, const Int_t size) Converts an array of size bytes at address addr, to a C string 2*size+1 long, conytaining a character representation of the hexadecimail numbers at the address. Char_t* Double2String(void* addr, const Int_t size) Converts an array of size bytes at address addr, to a C string 2*size+1 long, conytaining a character representation of the hexadecimail numbers at the address. Byte_t* String2Byte(const Char_t* str, const Int_t length) Converts a character representation of Hexadecimal numbers in str, length long, to an array of Byte_t's, (length+1)/2 long. Int_t* String2Int(const Char_t* str, const Int_t length) All of these should go in two steps a) String2Byte b) convert 'bytes into proper type using the net2host routines; Long_t* String2Long(const Char_t* str, const Int_t length) All of these should go in two steps a) String2Byte b) convert 'bytes into proper type using the net2host routines; Short_t* String2Short(const Char_t* str, const Int_t length) All of these should go in two steps a) String2Byte b) convert 'bytes into proper type using the net2host routines; Float_t* String2Float(const Char_t* str, const Int_t length) All of these should go in two steps a) String2Byte b) convert 'bytes into proper type using the net2host routines; Double_t* String2Double(const Char_t* str, const Int_t length) All of these should go in two steps a) String2Byte b) convert 'bytes into proper type using the net2host routines; Bool_t* String2Bool(const Char_t* str, const Int_t length) Converts a character representation of Hexadecimal numbers in str, length long, to an array of Bool_t's, (length-1)/2 long. TString* SplitList(const Char_t* commalist, const Char_t* extra) Split a list of comma seperated names in a string. void Print(Option_t* option) const Print infortmation on this database TObject* GetConnection() const Char_t* GetDbName() const Forward to implementation if it exists const Char_t* GetUserName() const Forward to implementation if it exists const Char_t* GetHostName() const Forward to implementation if it exists const Char_t* GetRdbmType() const Forward to implementation if it exists void SetDbName(const Char_t* dbName) Forward to implementation if it exists void SetUserName(const Char_t* name) Forward to implementation if it exists void SetHostName(const Char_t* host) Forward to implementation if it exists void SetRdbmType(const Char_t* type) Forward to implementation if it exists Bool_t Connect(Option_t* option="") Forward to implementation if it exists void Close(Option_t* option="") Forward to implementation if it exists TSQLResult* Query(BrDbQuery* query) Forward to implementation if it exists TSQLRow* GetSingle(const Char_t* table, const Char_t* condition) Forward to implementation if it exists TSQLResult* GetMultiple(const Char_t* table, const Char_t* condition) Forward to implementation if it exists Bool_t IsConnected() const Forward to implementation if it exists void LockTables(const Char_t* writetables,int i=0) Forward to implementation if it exists void UnLockTables() Forward to implementation if it exists Int_t Increment() Forward to implementation if it exists void CreateSequence() Forward to implementation if it exists Inline FunctionsBrVirtualDb* GetImplementation() void SetDebugLevel(Int_t level = 0) void SetVerbose(Int_t level = 0) Int_t DebugLevel() const Int_t Verbose() const Float_t Host2net(Float_t x) Double_t Host2net(Double_t x) Float_t Net2host(Float_t a) Double_t Net2host(Double_t a) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrDb BrDb(BrDb&) void ~BrDb() |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|