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());
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
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)
virtual KVRList * GetLinks() const
return the list of cross-referenced objects
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
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 KVDBKey * GetKey(const Char_t *key) const
virtual Bool_t AddKey(KVDBKey *key, Bool_t check=kTRUE)
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 const char * GetName() const
virtual void SetTitle(const char *title="")
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
virtual void Clear(Option_t *option="")
virtual TObject * Remove(TObject *obj)
TObject * GetObject() const
const char * Data() const
TString & Prepend(char c, Ssiz_t rep=1)