44 while ((
m = (
TMethod *)iter()) != 0) {
48 if (
m->Getter() && strlen(
m->Getter()) > 0) {
50 }
else if (strncmp(
m->GetName(),
"Set", 3) == 0) {
51 getter =
TString(
m->GetName())(3, strlen(
m->GetName()) - 3);
53 getter =
TString(
"Has") + getter;
55 getter =
TString(
"Get") + getter;
57 getter =
TString(
"Is") + getter;
71 AddChkMenuItem(
m->GetName(),
m->GetTitle(),
l != 0,
Form(
"%s(%s)",
m->GetName(), (
l != 0) ?
"0" :
"1"));
80 TList *args =
m->GetListOfMethodArgs();
82 if (!args || (args->
GetSize() == 0)) {
83 AddMenuItem(
m->GetName(),
m->GetTitle(),
Form(
"%s()",
m->GetName()));
88 TIter args_iter(args);
91 while ((arg =
dynamic_cast<TMethodArg *
>(args_iter())) != 0) {
107 TClass *cl =
gROOT->GetClass(
"std::vector<ROOT::Experimental::Detail::RMenuItem*>");
char * Form(const char *fmt,...)
static TString ConvertToJSON(const TObject *obj, Int_t compact=0, const char *member_name=nullptr)
Converts object, inherited from TObject class, to JSON string Lower digit of compact parameter define...
TClass instances represent classes, structs and namespaces in the ROOT type system.
void GetMenuItems(TList *listitems)
Returns list of methods accessible by context menu.
TMethod * GetMethodAllAny(const char *method)
Return pointer to method without looking at parameters.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Each ROOT method (see TMethod) has a linked list of its arguments.
const char * GetFullTypeName() const
Get full type description of method argument, e.g.: "class TDirectory*".
const char * GetDefault() const
Get default value of method argument.
Method or function calling interface.
EReturnType ReturnType()
Returns the return type of the method.
static const EReturnType kLong
void Execute(const char *, const char *, int *=0)
Execute method on this object with the given parameter string, e.g.
Each ROOT class (see TClass) has a linked list of methods.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
const char * Data() const
void Add(RHist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const RHist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.