22 #include "Riostream.h"
34 return (
KVBase*) TRefArray::FindObject(name);
56 for (Int_t i = 0; i <
GetSize(); i++) {
86 for (Int_t i = 0; i <
GetSize(); i++) {
116 for (Int_t i = 0; i <
GetSize(); i++) {
118 if (!strcmp(type, obj->
GetType())
119 && !strcmp(name, obj->GetName()))
130 #if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
150 if (this->GetSize()) {
151 for (Int_t i = 0; i < this->GetSize(); i++) {
152 ((
KVRList&) obj).Add(this->At(i));
166 Info(
"Print",
"List size: %d elements", this->
GetSize());
169 for (Int_t i = 0; i < this->
GetSize(); i++) {
173 Error(
"Print",
"Object %d does not exist", i);
193 while ((obj = next())) {
194 obj->Execute(method, params, error);
205 return (
KVBase*) TRefArray::FindObject(obj);
Base class for KaliVeda framework.
virtual const Char_t * GetType() const
const Char_t * GetLabel() const
Wrapper for TRefArray adding some functionality.
virtual Int_t GetSize() const
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 KVBase * FindObjectByType(const Char_t *) const
virtual void Execute(const char *method, const char *params, Int_t *error=0)
virtual KVBase * FindObjectByLabel(const Char_t *) const
virtual void Print(Option_t *opt="") const
Print description of all objects in list.
virtual void Copy(TObject &obj) const