Example of use of the KVBase class
This is the base class of most classes in the KaliVeda framework. It provides information on the version & installation layout of KaliVeda, plus various general "utility" methods.
To execute this function, do:
$ kaliveda
kaliveda[0] .L base_kvbase.C+
kaliveda[1] kvbase_example()
#include "KVBase.h"
#include <iostream>
void kvbase_example()
{
TIter next_obj(&list_obj);
while ((obj_ptr = next_obj())) {
std::cout << "KVBase label = " <<
dynamic_cast<KVBase*
>(obj_ptr)->GetLabel()
<< std::endl;
}
}
TString path_to_kaliveda =
"kaliveda-config";
std::cout << "kaliveda-config executable located at "
<< path_to_kaliveda << std::endl;
}
}
Base class for KaliVeda framework.
void SetLabel(const Char_t *lab)
static Bool_t FindExecutable(TString &exec, const Char_t *path="$(PATH)")
void Add(TObject *obj) override
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const