51 KVDBRecord::~KVDBRecord()
53 gROOT->GetListOfCleanups()->Remove(
this);
76 "A key named %s already exists.", key->
GetName());
104 if (check &&
GetKey(name)) {
106 "A key named %s already exists.", name);
130 return key->
LinkTo(rec, linkback);
133 "No key named %s found.", key_name);
152 key->
Unlink(rec, linkback);
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 <<
"_______________________________________________________" <<
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
Cross-reference in a KVDataBase.
virtual void SetParent(KVDBRecord *parent)
virtual KVRList * GetLinks() const
return the list of cross-referenced objects
virtual KVDBRecord * GetLink(const Char_t *link) const
virtual void Unlink(KVDBRecord *rec, Bool_t linkback=kTRUE)
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
virtual const Char_t * GetFullPath() const
Wrapper for TRefArray adding some functionality.
virtual void Add(TObject *obj)
TCollection * GetListOfFolders() const
virtual void SetOwner(Bool_t owner=kTRUE)
virtual TObject * FindObject(const char *name) const
virtual void ls(Option_t *option="") const
virtual const char * GetName() const
virtual const char * GetTitle() const
virtual void Warning(const char *method, const char *msgfmt,...) const
const char * Data() const
TString & Prepend(char c, Ssiz_t rep=1)