100 if (newname && strlen(newname)) newobj->
SetName(newname);
149 Int_t nchs = strlen(argstring);
150 char *argstr =
new char[nchs+1];
151 char *
ptr1 =
nullptr;
153 char *
ptr2 =
nullptr;
156 strlcpy(argstr,argstring,nchs+1);
158 ptr2 = R__STRTOK_R(argstr,
"{}", &rest);
159 if (
ptr2 ==
nullptr) {
164 ptr2 = R__STRTOK_R((
char *)
nullptr,
"{}", &rest);
171 ptr1 = R__STRTOK_R((
char *)(cnt++ ?
nullptr :
ptr2),
",;", &rest);
175 tok =
new char[nch+1];
176 strlcpy(tok,
ptr1,nch+1);
177 tokens[token_cnt] = tok;
188 for (i=0; i<token_cnt;i++) {
189 ptr1 = R__STRTOK_R(tokens[i],
"=>", &rest);
190 ptr2 = R__STRTOK_R((
char *)
nullptr,
"=>", &rest);
208 if (
a)
a->fDataMember = member;
225 char dataname[67] =
"";
226 char basename[64] =
"";
227 const char *funcname =
GetName();
228 if ( strncmp(funcname,
"Get",3) == 0 || strncmp(funcname,
"Set",3) == 0 )
229 snprintf(basename,64,
"%s",funcname+3);
230 else if ( strncmp(funcname,
"Is",2) == 0 )
231 snprintf(basename,64,
"%s",funcname+2);
232 else if (strncmp(funcname,
"Has", 3) == 0)
233 snprintf(basename,64,
"%s", funcname+3);
237 snprintf(dataname,67,
"f%s",basename);
242 if (
a)
a->fDataMember = member;
245 snprintf(dataname,67,
"fIs%s",basename);
250 if (
a)
a->fDataMember = member;
283 MethodInfo_t *info =
gInterpreter->MethodInfo_Factory(newId);
286 return newId !=
nullptr;
288 return fInfo !=
nullptr;
321 if (docstring && strstr(docstring,
"*TOGGLE")) {
324 if ((s = strstr(docstring,
"*GETTER="))) {
329 if (docstring && strstr(docstring,
"*MENU"))
332 if (docstring && strstr(docstring,
"*SUBMENU"))
R__EXTERN TInterpreter * gCling
TClass instances represent classes, structs and namespaces in the ROOT type system.
TDataMember * GetDataMember(const char *datamember) const
Return pointer to datamember object with name "datamember".
ClassInfo_t * GetClassInfo() const
TClass * GetBaseDataMember(const char *datamember)
Return pointer to (base) class that contains datamember.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
All ROOT classes may have RTTI (run time type identification) support added.
Bool_t UpdateInterpreterStateMarker()
the Cling ID of the transaction that last updated the object
Global functions class (global functions are obtained from CINT).
virtual void CreateSignature()
Using the CINT method arg information to create a complete signature string.
Long_t Property() const
Get property description word. For meaning of bits see EProperty.
virtual bool Update(MethodInfo_t *info)
Update the TFunction to reflect the new info.
TList * GetListOfMethodArgs()
Return list containing the TMethodArgs of a TFunction.
TFunction & operator=(const TFunction &rhs)
Assignment operator.
virtual const char * MethodInfo_Title(MethodInfo_t *) const
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Each ROOT method (see TMethod) has a linked list of its arguments.
Method or function calling interface.
Each ROOT class (see TClass) has a linked list of methods.
TMethodCall * fSetterMethod
virtual const char * GetCommentString()
Returns a comment string from the class declaration.
TMethod & operator=(const TMethod &rhs)
Assignment operator.
virtual const char * Getter() const
virtual TDataMember * FindDataMember()
Tries to guess DataMember from comment string and Method's name <==(only if 1 Argument!...
TClass * GetClass() const
void CreateSignature()
Using the CINT method arg information create a complete signature string.
void SetMenuItem(const char *docstring)
Set the menu item as prescribed in the doctstring.
virtual ~TMethod()
Cleanup.
virtual TMethodCall * SetterMethod()
Return call environment for this method in case this is a *TOGGLE method which takes a single boolean...
virtual Bool_t Update(MethodInfo_t *info)
Update the TMethod to reflect the new info.
TMethod(MethodInfo_t *info=0, TClass *cl=0)
Default TMethod ctor.
TMethodCall * fGetterMethod
virtual TObject * Clone(const char *newname="") const
Clone method.
virtual Bool_t IsValid()
Return true if this function object is pointing to a currently loaded function.
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();.
virtual TMethodCall * GetterMethod()
Return call environment for the getter method in case this is a *TOGGLE method (for the context menu)...
The TNamed class is the base class for all named ROOT classes.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.