102 snprintf(stringval,
sizeof(stringval),
"%li",val);
147 Error(
"SetToggledObject",
"cannot determine getter method for %s", anymethod->
GetName());
149 fGetter =
m->GetterMethod(obj->IsA());
150 fSetter =
m->SetterMethod(obj->IsA());
All ROOT classes may have RTTI (run time type identification) support added.
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 TDataMember * FindDataMember()
Tries to guess DataMember from comment string and Method's name <==(only if 1 Argument!...
virtual TMethodCall * SetterMethod()
Return call environment for this method in case this is a *TOGGLE method which takes a single boolean...
virtual TMethodCall * GetterMethod()
Return call environment for the getter method in case this is a *TOGGLE method (for the context menu)...
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
This class defines toggling facility for both - object's method or variables.
TToggle()
TToggle default constructor.
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 SetValue(Long_t val)
Sets the value of toggle and modifies its state according to whether the value is equal to fOnValue.
virtual void Toggle()
Toggles the Values and State of this object and connected data!
virtual void SetToggledObject(TObject *obj, TMethod *anymethod)
Initializes it to toggle an object's datamember using this object's method.
virtual void SetState(Bool_t state)
Sets the value of toggle to fOnValue or fOffValue according to passed argument.
virtual Bool_t GetState()
Returns the state of Toggle according to its current value and fOnValue, returns true if they match.