101       snprintf(stringval,
sizeof(stringval),
"%li",val);
   146          Error(
"SetToggledObject", 
"cannot determine getter method for %s", anymethod->
GetName());
 
virtual const char * GetName() const
Returns name of object. 
 
TMethodCall * SetterMethod(TClass *cl)
Return a TMethodCall method responsible for setting the value of data member. 
 
TMethodCall * GetterMethod(TClass *cl=0)
Return a TMethodCall method responsible for getting the value of data member. 
 
This class defines toggling facility for both - object's method or variables. 
 
virtual void SetState(Bool_t state)
Sets the value of toggle to fOnValue or fOffValue according to passed argument. 
 
All ROOT classes may have RTTI (run time type identification) support added. 
 
virtual TDataMember * FindDataMember()
Tries to guess DataMember from comment string and Method's name <==(only if 1 Argument!). 
 
virtual void Toggle()
Toggles the Values and State of this object and connected data! 
 
virtual Bool_t GetState()
Returns the state of Toggle according to its current value and fOnValue, returns true if they match...
 
virtual void SetValue(Long_t val)
Sets the value of toggle and modifies its state according to whether the value is equal to fOnValue...
 
virtual TMethodCall * SetterMethod()
Return call environment for this method in case this is a *TOGGLE method which takes a single boolean...
 
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message. 
 
virtual void SetToggledVariable(Int_t &var)
Initializes object for use with a variable - you pass it via reference so it will be modified by Togg...
 
virtual void SetToggledObject(TObject *obj, TMethod *anymethod)
Initializes it to toggle an object's datamember using this object's method. 
 
Mother of all ROOT objects. 
 
virtual TMethodCall * GetterMethod()
Return call environment for the getter method in case this is a *TOGGLE method (for the context menu)...
 
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.