19#include "KVDBRecord.h"
53 gROOT->GetListOfCleanups()->Remove(
this);
76 "A key named %s already exists.", key->
GetName());
106 "A key named %s already exists.",
name);
133 "No key named %s found.", key_name);
155 "No key named %s found.", key_name);
175 "No key named %s found.", key_name);
195 "No key named %s found.", key);
225 cout <<
"_______________________________________________________" <<
228 cout <<
"Available Keys :" << endl;
231 while ((key = (
KVDBKey*) next())) {
232 cout <<
" " << key->
GetName() << endl;
234 cout <<
"_______________________________________________________" <<
Cross-reference in a KVDataBase.
virtual void SetParent(KVDBRecord *parent)
virtual KVDBRecord * GetLink(const Char_t *link) const
virtual void Unlink(KVDBRecord *rec, Bool_t linkback=kTRUE)
virtual KVRList * GetLinks() const
return the list of cross-referenced objects
virtual Bool_t LinkTo(KVDBRecord *rec, Bool_t linkback=kTRUE)
Record folder for the database.
virtual void SetTable(const KVDBTable *table)
virtual void Print(Option_t *option="") const
virtual KVDBKey * GetKey(const Char_t *key) const
virtual void ls(Option_t *option="*") const
virtual Bool_t AddKey(KVDBKey *key, Bool_t check=kTRUE)
virtual KVDBRecord * GetLink(const Char_t *key, const Char_t *link) const
Returns the record named "link" in the table named "key".
virtual Int_t Compare(const TObject *obj) const
TString fFullPathTable
full path to parent table in folder structure
virtual Bool_t AddLink(const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE)
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".
virtual KVRList * GetLinks(const Char_t *key) const
Returns the list of records linked to this record in table "key".
virtual void RemoveAllLinks(const Char_t *key)
Remove all links between this record and the records in the DB table"key_name".
virtual Int_t GetNumber() const
virtual TList * GetKeys() const
virtual KVDBTable * GetTable() const
Wrapper for TRefArray adding some functionality.
TCollection * GetListOfFolders() const
virtual void Add(TObject *obj)
TObject * FindObject(const char *name) const override
virtual void SetOwner(Bool_t owner=kTRUE)
const char * GetName() const override
const char * GetTitle() const override
void ls(Option_t *option="") const override
virtual void Warning(const char *method, const char *msgfmt,...) const
const char * Data() const
TString & Prepend(char c, Ssiz_t rep=1)
Table in an SQLite database.