BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrDb


class description - source file - inheritance tree

class BrDb : public TNamed


    protected:
virtual TObject* GetConnection() BrVirtualDb* GetImplementation() public:
BrDb BrDb() BrDb BrDb(BrDb&) virtual void ~BrDb() static Char_t* Addr2String(void* src, Ssiz_t size) static TClass* Class() virtual void Close(Option_t* option) virtual Bool_t Connect(Option_t* option) virtual void CreateSequence() Int_t DebugLevel() const static Char_t* Double2String(void* src, const Int_t length) static Char_t* Float2String(void* src, const Int_t length) const Char_t* GetDbName() const const Char_t* GetHostName() const virtual TSQLResult* GetMultiple(const Char_t* table, const Char_t* condition) const Char_t* GetRdbmType() const virtual TSQLRow* GetSingle(const Char_t* table, const Char_t* condition) const Char_t* GetUserName() const static Float_t Host2net(Float_t x) static Double_t Host2net(Double_t x) virtual Int_t Increment() static Char_t* Int2String(void* src, const Int_t length) virtual TClass* IsA() const virtual Bool_t IsConnected() const virtual void LockTables(const Char_t* writetables, int i = 0) static Char_t* Long2String(void* src, const Int_t length) static Float_t Net2host(Float_t a) static Double_t Net2host(Double_t a) virtual void Print(Option_t* option) const virtual TSQLResult* Query(BrDbQuery* query) void SetDbName(const Char_t* dbName) void SetDebugLevel(Int_t level = 0) void SetHostName(const Char_t* host) void SetRdbmType(const Char_t* type) void SetUserName(const Char_t* name) void SetVerbose(Int_t level = 0) static Char_t* Short2String(void* src, const Int_t length) virtual void ShowMembers(TMemberInspector& insp, char* parent) static TString* SplitList(const Char_t* commalist, const Char_t* extra) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) static Bool_t* String2Bool(const Char_t* str, const Int_t length) static Byte_t* String2Byte(const Char_t* str, const Int_t length) static Double_t* String2Double(const Char_t* str, const Int_t length) static Float_t* String2Float(const Char_t* str, const Int_t length) static Int_t* String2Int(const Char_t* str, const Int_t length) static Long_t* String2Long(const Char_t* str, const Int_t length) static Short_t* String2Short(const Char_t* str, const Int_t length) virtual void UnLockTables() Int_t Verbose() const

Data Members


    protected:
BrVirtualDb* fImplementation Pointer to interface implemetation static const Char_t kHexNumbers[16] Character values for hex numbers Int_t fVerbose ! Int_t fDebugLevel !


See also

BrCalibrationsDb, BrGeometriesDb, BrMainDb, BrPassDb, BrRunsDb

Class Description

 Base 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 Functions


        BrVirtualDb* 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>
Last Update on 2002/03/21 23:35:40 $ by cholm $

Validate HTML
Validate CSS