30 while ((
m = (
TMethod *)iter()) !=
nullptr) {
34 if (
m->Getter() && strlen(
m->Getter()) > 0) {
36 }
else if (strncmp(
m->GetName(),
"Set", 3) == 0) {
37 getter =
TString(
m->GetName())(3, strlen(
m->GetName()) - 3);
39 getter =
TString(
"Has") + getter;
41 getter =
TString(
"Get") + getter;
43 getter =
TString(
"Is") + getter;
51 auto call = std::make_unique<TMethodCall>(cl, getter,
"");
55 call->Execute(obj,
l);
64 TList *args =
m->GetListOfMethodArgs();
66 if (!args || (args->
GetSize() == 0)) {
69 auto item = std::make_unique<Detail::RArgsMenuItem>(
m->GetName(),
m->GetTitle());
70 item->SetExec(
Form(
"%s()",
m->GetName()));
72 TIter args_iter(args);
75 while ((arg =
dynamic_cast<TMethodArg *
>(args_iter())) !=
nullptr) {
78 item->AddArg(menu_arg);
char * Form(const char *fmt,...)
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.
static const EReturnType kLong
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.