KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Attributes | List of all members
KVDBRecord Class Reference

Record folder for the database.

it's a base class, which suppose that it must be derived to have the proper caracteristics for each type of record it holds a list of keys. Each key must have the name of a table of the data base The folder owns the list of keys.

Definition at line 42 of file KVDBRecord.h.

Public Member Functions

 KVDBRecord ()
 
 KVDBRecord (const Char_t *name, const Char_t *title="")
 
virtual ~ KVDBRecord ()
 
virtual KVDBKeyAddKey (const Char_t *name, const Char_t *title, Bool_t check=kTRUE)
 
virtual Bool_t AddKey (KVDBKey *key, Bool_t check=kTRUE)
 
virtual Bool_t AddLink (const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE)
 
virtual Int_t Compare (const TObject *obj) const
 
virtual KVDBKeyGetKey (const Char_t *key) const
 
virtual TListGetKeys () const
 
virtual KVDBRecordGetLink (const Char_t *key, const Char_t *link) const
 Returns the record named "link" in the table named "key". More...
 
virtual KVRListGetLinks (const Char_t *key) const
 Returns the list of records linked to this record in table "key". More...
 
virtual Int_t GetNumber () const
 
virtual KVDBTableGetTable () const
 
virtual void ls (Option_t *option="*") const
 
virtual void Print (Option_t *option="") const
 
virtual void RemoveAllLinks (const Char_t *key)
 Remove all links between this record and the records in the DB table"key_name". More...
 
virtual void RemoveLink (const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE)
 Remove the link between this record and the record "rec" in the DB table"key_name". More...
 
virtual void SetNumber (Int_t n)
 
virtual void SetTable (const KVDBTable *table)
 
- Public Member Functions inherited from TFolder
 TFolder ()
 
 TFolder (const char *name, const char *title)
 
virtual ~TFolder ()
 
virtual void Add (TObject *obj)
 
TFolderAddFolder (const char *name, const char *title, TCollection *collection=0)
 
virtual void Browse (TBrowser *b)
 
virtual void Clear (Option_t *option="")
 
virtual void Copy (TObject &) const
 
virtual const char * FindFullPathName (const char *name) const
 
virtual const char * FindFullPathName (const TObject *obj) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual TObjectFindObjectAny (const char *name) const
 
TCollectionGetListOfFolders () const
 
Bool_t IsFolder () const
 
Bool_t IsOwner () const
 
virtual Int_t Occurence (const TObject *obj) const
 
virtual void RecursiveRemove (TObject *obj)
 
virtual void Remove (TObject *obj)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SetOwner (Bool_t owner=kTRUE)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
virtual TObjectClone (const char *newname="") const
 
virtual void FillBuffer (char *&buffer)
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual ULong_t Hash () const
 
virtual Bool_t IsSortable () const
 
TNamedoperator= (const TNamed &rhs)
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual void SetTitle (const char *title="")
 
virtual Int_t Sizeof () const
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
void ResetBit (UInt_t f)
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Protected Attributes

TString fFullPathTable
 full path to parent table in folder structure More...
 
Int_t fNumber
 number which can be used to identify/sort record More...
 
- Protected Attributes inherited from TFolder
TCollectionfFolders
 
Bool_t fIsOwner
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 

#include <KVDBRecord.h>

Inheritance diagram for KVDBRecord:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVDBRecord() [1/2]

KVDBRecord::KVDBRecord ( )

Definition at line 32 of file KVDBRecord.cpp.

◆ KVDBRecord() [2/2]

KVDBRecord::KVDBRecord ( const Char_t name,
const Char_t title = "" 
)

Definition at line 41 of file KVDBRecord.cpp.

◆ ~ KVDBRecord()

virtual KVDBRecord::~ KVDBRecord ( )
virtual

Member Function Documentation

◆ AddKey() [1/2]

KVDBKey * KVDBRecord::AddKey ( const Char_t name,
const Char_t title,
Bool_t  check = kTRUE 
)
virtual

Add a key to the list of available keys and return kTRUE it's added. If "check" is kTRUE , we check if the new key's name already exists, if not the key is added otherwise it's not added and the method return kFALSE.

Definition at line 95 of file KVDBRecord.cpp.

◆ AddKey() [2/2]

Bool_t KVDBRecord::AddKey ( KVDBKey key,
Bool_t  check = kTRUE 
)
virtual

Add a key to the list of available keys and return kTRUE if it is added. If "check" is kTRUE , we check if the new key's name already exists, if not the key is added otherwise it's not added and the method return kFALSE.

Definition at line 65 of file KVDBRecord.cpp.

◆ AddLink()

Bool_t KVDBRecord::AddLink ( const Char_t key_name,
KVDBRecord rec,
Bool_t  linkback = kTRUE 
)
virtual

Link this record to the record "rec" in the DB table with name "key_name" The record will be added to the list of records in KVDBKey "key_name"

Definition at line 122 of file KVDBRecord.cpp.

◆ Compare()

Int_t KVDBRecord::Compare ( const TObject obj) const
virtual

Compare two record numbers for sorting lists. Lists will be sorted in ascending order.

Reimplemented from TNamed.

Reimplemented in KVDBSystem.

Definition at line 256 of file KVDBRecord.cpp.

◆ GetKey()

KVDBKey * KVDBRecord::GetKey ( const Char_t key) const
virtual

Definition at line 290 of file KVDBRecord.cpp.

◆ GetKeys()

TList * KVDBRecord::GetKeys ( ) const
virtual

Definition at line 301 of file KVDBRecord.cpp.

◆ GetLink()

KVDBRecord * KVDBRecord::GetLink ( const Char_t key,
const Char_t link 
) const
virtual

Returns the record named "link" in the table named "key".

Definition at line 186 of file KVDBRecord.cpp.

◆ GetLinks()

KVRList * KVDBRecord::GetLinks ( const Char_t key) const
virtual

Returns the list of records linked to this record in table "key".

Definition at line 206 of file KVDBRecord.cpp.

◆ GetNumber()

virtual Int_t KVDBRecord::GetNumber ( ) const
inlinevirtual

Definition at line 72 of file KVDBRecord.h.

◆ GetTable()

KVDBTable * KVDBRecord::GetTable ( ) const
virtual

Definition at line 271 of file KVDBRecord.cpp.

◆ ls()

void KVDBRecord::ls ( Option_t option = "*") const
virtual

Reimplemented from TFolder.

Reimplemented in KVDBSystem.

Definition at line 243 of file KVDBRecord.cpp.

◆ Print()

void KVDBRecord::Print ( Option_t option = "") const
virtual

Reimplemented from TNamed.

Reimplemented in KVDBSystem, KVDBRun, KVDBParameterSet, KVDBParameterList, KVDBChIoPressures, and KVDB_BIC_Pressures.

Definition at line 222 of file KVDBRecord.cpp.

◆ RemoveAllLinks()

void KVDBRecord::RemoveAllLinks ( const Char_t key)
virtual

Remove all links between this record and the records in the DB table"key_name".

Definition at line 166 of file KVDBRecord.cpp.

◆ RemoveLink()

void KVDBRecord::RemoveLink ( const Char_t key_name,
KVDBRecord rec,
Bool_t  linkback = kTRUE 
)
virtual

Remove the link between this record and the record "rec" in the DB table"key_name".

Definition at line 145 of file KVDBRecord.cpp.

◆ SetNumber()

virtual void KVDBRecord::SetNumber ( Int_t  n)
inlinevirtual

Reimplemented in KVDBRun.

Definition at line 76 of file KVDBRecord.h.

◆ SetTable()

void KVDBRecord::SetTable ( const KVDBTable table)
virtual

Definition at line 280 of file KVDBRecord.cpp.

Member Data Documentation

◆ fFullPathTable

TString KVDBRecord::fFullPathTable
protected

full path to parent table in folder structure

Definition at line 46 of file KVDBRecord.h.

◆ fNumber

Int_t KVDBRecord::fNumber
protected

number which can be used to identify/sort record

Definition at line 47 of file KVDBRecord.h.


The documentation for this class was generated from the following files: