19#include "KVDBRecord.h"
34 fIsUnique = fSingle =
kFALSE;
92 "%s : Only one cross-reference allowed.\nCurrent cross-reference is:%s\nCan't add new record \"%s\" in list",
100 "%s : Cross-references must have different names.\nA record named %s already exists.\nCan't add new record \"%s\" in list",
115 Error(
"LinkTo",
"Parent table not set for key %s",
GetName());
146 Error(
"Unlink",
"Parent not set for key %s",
GetName());
Base class for KaliVeda framework.
Cross-reference in a KVDataBase.
virtual void SetParent(KVDBRecord *parent)
virtual KVDBRecord * GetParent()
virtual void RemoveLink(KVDBRecord *rec)
Remove a link from the list of links.
virtual void SetRecord(KVDBRecord *parent)
KVRList * fLinks
list of cross-referenced records
virtual KVDBRecord * GetLink(const Char_t *link) const
virtual void Unlink(KVDBRecord *rec, Bool_t linkback=kTRUE)
virtual KVDBRecord * GetRecord()
Bool_t fIsUnique
Can the list contains more than 1 object the same name.
TRef fRecord
direct pointer to parent record
virtual KVRList * GetLinks() const
return the list of cross-referenced objects
Bool_t fSingle
Can the list contain more than 1 object in the list.
virtual void AddLink(KVDBRecord *rec)
Add a link to the list of links.
virtual Bool_t LinkTo(KVDBRecord *rec, Bool_t linkback=kTRUE)
Record folder for the database.
virtual KVDBTable * GetTable() const
Wrapper for TRefArray adding some functionality.
virtual KVBase * FindObjectByName(const Char_t *) const
Look for object with name "name" in the list.
virtual KVBase * FindObject(const Char_t *name, const Char_t *type) const
virtual void SetTitle(const char *title="")
const char * GetName() const override
virtual void SetName(const char *name)
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Error(const char *method, const char *msgfmt,...) const
void Add(TObject *obj) override
void Clear(Option_t *option="") override
TObject * Remove(TObject *obj) override
TObject * Last() const override
TObject * GetObject() const
const char * Data() const
TString & Prepend(char c, Ssiz_t rep=1)