98 if (newname && strlen(newname)) newobj->
SetName(newname);
147 Int_t nchs = strlen(argstring);
148 char *argstr =
new char[nchs+1];
154 strlcpy(argstr,argstring,nchs+1);
155 ptr2 = strtok(argstr,
"{}");
161 ptr2 = strtok((
char*)0,
"{}");
168 ptr1 = strtok((
char*) (cnt++ ? 0:ptr2),
",;");
171 Int_t nch = strlen(ptr1);
172 tok =
new char[nch+1];
173 strlcpy(tok,ptr1,nch+1);
174 tokens[token_cnt] = tok;
185 for (i=0; i<token_cnt;i++) {
187 ptr1 = strtok(tokens[i],
"=>");
188 ptr2 = strtok((
char*)0,
"=>");
196 if (!strcmp(ptr1,ar->
GetName())) {
223 char dataname[64] =
"";
224 char basename[64] =
"";
225 const char *funcname =
GetName();
226 if ( strncmp(funcname,
"Get",3) == 0 || strncmp(funcname,
"Set",3) == 0 )
227 snprintf(basename,64,
"%s",funcname+3);
228 else if ( strncmp(funcname,
"Is",2) == 0 )
229 snprintf(basename,64,
"%s",funcname+2);
230 else if (strncmp(funcname,
"Has", 3) == 0)
231 snprintf(basename,64,
"%s", funcname+3);
235 snprintf(dataname,64,
"f%s",basename);
243 snprintf(dataname,64,
"fIs%s",basename);
281 MethodInfo_t *info =
gInterpreter->MethodInfo_Factory(newId);
319 if (docstring && strstr(docstring,
"*TOGGLE")) {
322 if ((s = strstr(docstring,
"*GETTER="))) {
327 if (docstring && strstr(docstring,
"*MENU"))
330 if (docstring && strstr(docstring,
"*SUBMENU"))
TMethod(MethodInfo_t *info=0, TClass *cl=0)
Default TMethod ctor.
virtual const char * GetName() const
Returns name of object.
virtual void CreateSignature()
Using the CINT method arg information to create a complete signature string.
Bool_t UpdateInterpreterStateMarker()
the Cling ID of the transaction that last updated the object
All ROOT classes may have RTTI (run time type identification) support added.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * Getter() const
virtual Bool_t IsValid()
Return true if this function object is pointing to a currently loaded function.
void SetMenuItem(const char *docstring)
Set the menu item as prescribed in the doctstring.
Each ROOT method (see TMethod) has a linked list of its arguments.
TMethodCall * fSetterMethod
virtual TDataMember * FindDataMember()
Tries to guess DataMember from comment string and Method's name <==(only if 1 Argument!).
void CreateSignature()
Using the CINT method arg information create a complete signature string.
TFunction & operator=(const TFunction &rhs)
Assignment operator.
The TNamed class is the base class for all named ROOT classes.
TMethod & operator=(const TMethod &rhs)
Assignment operator.
Long_t Property() const
Get property description word. For meaning of bits see EProperty.
ClassInfo_t * GetClassInfo() const
virtual const char * MethodInfo_Title(MethodInfo_t *) const
virtual const char * GetCommentString()
Returns a comment string from the class declaration.
Method or function calling interface.
virtual TMethodCall * SetterMethod()
Return call environment for this method in case this is a *TOGGLE method which takes a single boolean...
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();...
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
The ROOT global object gROOT contains a list of all defined classes.
TClass * GetBaseDataMember(const char *datamember)
Return pointer to (base) class that contains datamember.
virtual TObject * Clone(const char *newname="") const
Clone method.
virtual Bool_t Update(MethodInfo_t *info)
Update the TMethod to reflect the new info.
virtual bool Update(MethodInfo_t *info)
Update the TFunction to reflect the new info.
TList * GetListOfMethodArgs()
Return list containing the TMethodArgs of a TFunction.
Mother of all ROOT objects.
Global functions class (global functions are obtained from CINT).
virtual TMethodCall * GetterMethod()
Return call environment for the getter method in case this is a *TOGGLE method (for the context menu)...
Each ROOT class (see TClass) has a linked list of methods.
TClass * GetClass() const
virtual ~TMethod()
Cleanup.
TDataMember * GetDataMember(const char *datamember) const
Return pointer to datamember object with name "datamember".
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
R__EXTERN TInterpreter * gCling
virtual Int_t GetSize() const
TMethodCall * fGetterMethod
TDataMember * fDataMember