#include <TGo4ParaEditStatus.h>
Inheritance diagram for TGo4ParaEditStatus:
Public Methods | |
TGo4ParaEditStatus (const char *name, const char *title) | |
virtual | ~TGo4ParaEditStatus () |
void | UpdateParameter (TGo4Parameter *source) |
Bool_t | LoadParameter (const Text_t *filename, const Text_t *parname=0) |
Exchange current parameter by object parname taken from root file filename. More... | |
TGo4Parameter * | GetParameter () |
Save current parameter to root file filename. More... | |
Int_t | GetMemNumber () |
Long_t | GetMemberAddress (Int_t i) |
Access to the absolute address of datamember. More... | |
void | SetParaName (const Text_t *name) |
New mode only: specify name of the new parameter. More... | |
void | SetParaClass (const Text_t *name) |
New mode only: create parameter of this class. More... | |
const Text_t * | GetParaName () |
Deliver name of parameter object. More... | |
const Text_t * | GetParaClass () |
Deliver class of parameter object. More... | |
const Text_t * | GetParaMember (Int_t i) |
Name of the parameter member at index i. More... | |
const Text_t * | GetParaMemType (Int_t i) |
Classname of the parameter member at index i. More... | |
const Text_t * | GetParaMemVal (Int_t i) |
String expression of the member value at index i. More... | |
const Text_t * | GetParaMemComment (Int_t i) |
Comments for parameter class member at index i. More... | |
void | SetParaMemVal (Int_t i, const Text_t *val) |
Set member value at index i to the string expression val. More... | |
void | SetFitPointerAddress (Long_t add) |
When opening fit editor, keep member address of edited fitter pointer. More... | |
TGo4Fitter * | GetLastFitter () |
void | UpdateLastFitter (TGo4Fitter *source) |
If parameter contains fitter reference, we update the last edited one. More... | |
const Int_t | GetParaMemArrIndex (Int_t i) |
If member is an array, this delivers the index of the array entry which is at position i in our member list. More... | |
const Int_t | GetParaMemArrIndey (Int_t i) |
Index in case of 2d array. More... | |
Bool_t | IsParaMemVisible (Int_t i) |
is kTRUE if this member shall be visible to the editor. More... | |
void | SetParaMemVisible (Int_t i, Bool_t on) |
update the visibility state depending on gui actions. More... | |
void | ResetParameterList () |
Reset iterator of TGo4Parameter subclass list. More... | |
const Text_t * | NextParameterClass () |
Get next classname in TGo4Parameter subclass list. More... | |
Private Methods | |
void | UpdateMemberLists () |
Recreate the list of datamembers, types and values. More... | |
void | EvalMembers (TClass *cl, Long_t baseoffset=0) |
Add member info of (base-) class cl to the list In case of baseclass, the offset relative to thispointer of inherited class is passed. More... | |
const Text_t * | ValueString (const Text_t *type, Long_t address) |
Deliver string representation of data member from offset and full address (thispointer+memberoffset). More... | |
void | SetCast (const Text_t *memtype, Long_t address) |
Set the correct downcasted pointer of data at address. More... | |
void | SetValue (const Text_t *memtype, const Text_t *expression, Long_t address) |
Set value from string expression to a certain memory address. More... | |
void | BuildParameterList () |
Setup list of all known TGo4Parameter subclasses from gROOT. More... | |
Private Attributes | |
TGo4Parameter * | fxPara |
TClass * | fxParaClass |
reference to parameter class. More... | |
TList * | fxDatamembers |
reference to TClass list of datamembers. More... | |
Int_t | fiMemNum |
Number of members in parameter class. More... | |
TObjArray | fxNames |
Array with strings of member names. More... | |
TObjArray | fxTypes |
Array with strings of member types. More... | |
TObjArray | fxVals |
Array with member values in string representation. More... | |
TObjArray | fxComments |
Array with comments to member field. More... | |
vector< Long_t > | fxAddress |
This holds the complete address pointer of member i. More... | |
vector< Int_t > | fxArrayIndex |
If datamember i is part of an array, this keeps the index. More... | |
vector< Int_t > | fxArrayIndey |
If datamember i is part of a 2d array, this keeps the y-index. More... | |
vector< Bool_t > | fbMemberVisible |
this flag defines whether the member should be displayed. More... | |
Float_t * | fxDataFloat |
Pointers to current member if matching the type. More... | |
Double_t * | fxDataDouble |
Int_t * | fxDataInt |
UInt_t * | fxDataUInt |
Short_t * | fxDataShort |
Char_t * | fxDataChar |
Long_t * | fxDataLong |
Bool_t * | fxDataBool |
UShort_t * | fxDataUShort |
UChar_t * | fxDataUChar |
ULong_t * | fxDataULong |
TString * | fxDataString |
TGo4Fitter ** | fxFitPointer |
If parameter contains fitter aggregates, this points to the last active. More... | |
Int_t | fiDatatypeSize |
sizeof the current data type in byte. More... | |
Text_t | fcTextBuffer [256] |
general textbuffer for passing strings to qt. More... | |
TList | fxParaClassList |
list of all available subclasses of TGo4Parameter. More... | |
TIterator * | fxNextParaClass |
iterator for list of parameter classes. More... |
Definition at line 32 of file TGo4ParaEditStatus.h.
|
Definition at line 31 of file TGo4ParaEditStatus.cxx. References BuildParameterList(), fxPara, and UpdateMemberLists(). |
|
Definition at line 43 of file TGo4ParaEditStatus.cxx. References fxNextParaClass, and fxPara. |
|
Definition at line 50 of file TGo4ParaEditStatus.cxx. References fxPara, and UpdateMemberLists(). Referenced by TGo4ParaEditSlots::AddObject(), and LoadParameter(). |
|
Exchange current parameter by object parname taken from root file filename. Default is current parname Definition at line 531 of file TGo4ParaEditStatus.cxx. References fxPara, and UpdateParameter(). |
|
Save current parameter to root file filename. saved parameter may have different name parname later Definition at line 49 of file TGo4ParaEditStatus.h. References fxPara. Referenced by TGo4ParaEditSlots::SendApplyCommand(), and TGo4ParaEditSlots::SendRefreshCommand(). |
|
Definition at line 51 of file TGo4ParaEditStatus.h. References fiMemNum. |
|
Access to the absolute address of datamember.
Definition at line 218 of file TGo4ParaEditStatus.cxx. |
|
New mode only: specify name of the new parameter.
Definition at line 73 of file TGo4ParaEditStatus.cxx. References fxPara. |
|
New mode only: create parameter of this class.
Definition at line 83 of file TGo4ParaEditStatus.cxx. References fcTextBuffer, fxPara, and UpdateMemberLists(). |
|
Deliver name of parameter object.
Definition at line 104 of file TGo4ParaEditStatus.cxx. References fxPara. |
|
Deliver class of parameter object.
Definition at line 110 of file TGo4ParaEditStatus.cxx. References fxParaClass. |
|
Name of the parameter member at index i.
Definition at line 116 of file TGo4ParaEditStatus.cxx. |
|
Classname of the parameter member at index i.
Definition at line 133 of file TGo4ParaEditStatus.cxx. References fiMemNum, fxTypes, and i. Referenced by GetParaMemVal(), and SetParaMemVal(). |
|
String expression of the member value at index i.
Definition at line 150 of file TGo4ParaEditStatus.cxx. References fiMemNum, fxAddress, GetParaMemType(), i, and ValueString(). |
|
Comments for parameter class member at index i.
Definition at line 161 of file TGo4ParaEditStatus.cxx. References fiMemNum, fxComments, and i. |
|
Set member value at index i to the string expression val. String will be converted into correct member type according GetParaMemType Definition at line 177 of file TGo4ParaEditStatus.cxx. References fiMemNum, fxAddress, GetParaMemType(), i, and SetValue(). |
|
When opening fit editor, keep member address of edited fitter pointer.
Definition at line 86 of file TGo4ParaEditStatus.h. References fxFitPointer. |
|
Definition at line 90 of file TGo4ParaEditStatus.h. |
|
If parameter contains fitter reference, we update the last edited one.
Definition at line 61 of file TGo4ParaEditStatus.cxx. References fxFitPointer. |
|
If member is an array, this delivers the index of the array entry which is at position i in our member list. Will be <0 if member is not an array. Note that this index is different from our general bookkeeping index i of _all_ members. Definition at line 186 of file TGo4ParaEditStatus.cxx. References fiMemNum, fxArrayIndex, and i. |
|
Index in case of 2d array.
Definition at line 194 of file TGo4ParaEditStatus.cxx. References fiMemNum, fxArrayIndey, and i. |
|
is kTRUE if this member shall be visible to the editor.
Definition at line 203 of file TGo4ParaEditStatus.cxx. References fbMemberVisible, fiMemNum, and i. |
|
update the visibility state depending on gui actions.
Definition at line 211 of file TGo4ParaEditStatus.cxx. References fbMemberVisible, fiMemNum, and i. |
|
Reset iterator of TGo4Parameter subclass list.
Definition at line 589 of file TGo4ParaEditStatus.cxx. References fxNextParaClass. |
|
Get next classname in TGo4Parameter subclass list. Returns 0 if list is at end. Definition at line 599 of file TGo4ParaEditStatus.cxx. References fxNextParaClass. |
|
Recreate the list of datamembers, types and values.
Definition at line 225 of file TGo4ParaEditStatus.cxx. References EvalMembers(), fbMemberVisible, fiMemNum, fxAddress, fxArrayIndex, fxArrayIndey, fxComments, fxNames, fxPara, fxParaClass, fxTypes, and fxVals. Referenced by SetParaClass(), TGo4ParaEditStatus(), and UpdateParameter(). |
|
Add member info of (base-) class cl to the list In case of baseclass, the offset relative to thispointer of inherited class is passed.
Definition at line 254 of file TGo4ParaEditStatus.cxx. References fbMemberVisible, fcTextBuffer, fiDatatypeSize, fiMemNum, fxAddress, fxArrayIndex, fxArrayIndey, fxComments, fxNames, fxPara, fxTypes, fxVals, SetCast(), and ValueString(). Referenced by UpdateMemberLists(). |
|
Deliver string representation of data member from offset and full address (thispointer+memberoffset).
Definition at line 381 of file TGo4ParaEditStatus.cxx. References fcTextBuffer, fxDataBool, fxDataChar, fxDataDouble, fxDataFloat, fxDataInt, fxDataLong, fxDataShort, fxDataUChar, fxDataUInt, fxDataULong, fxDataUShort, and SetCast(). Referenced by EvalMembers(), and GetParaMemVal(). |
|
Set the correct downcasted pointer of data at address. Pointer for type memtype is set, other pointers reset to zero Definition at line 403 of file TGo4ParaEditStatus.cxx. References fiDatatypeSize, fxDataBool, fxDataChar, fxDataDouble, fxDataFloat, fxDataInt, fxDataLong, fxDataShort, fxDataString, fxDataUChar, fxDataUInt, fxDataULong, and fxDataUShort. Referenced by EvalMembers(), SetValue(), and ValueString(). |
|
Set value from string expression to a certain memory address. expression will be converted according the memtype, and then copied to the location at address. Definition at line 510 of file TGo4ParaEditStatus.cxx. References fxDataBool, fxDataChar, fxDataDouble, fxDataFloat, fxDataInt, fxDataLong, fxDataShort, fxDataString, fxDataUChar, fxDataUInt, fxDataULong, fxDataUShort, and SetCast(). Referenced by SetParaMemVal(). |
|
Setup list of all known TGo4Parameter subclasses from gROOT.
Definition at line 568 of file TGo4ParaEditStatus.cxx. References fxNextParaClass, and fxParaClassList. Referenced by TGo4ParaEditStatus(). |
|
Definition at line 152 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetParameter(), GetParaName(), LoadParameter(), SetParaClass(), SetParaName(), TGo4ParaEditStatus(), UpdateMemberLists(), UpdateParameter(), and ~TGo4ParaEditStatus(). |
|
reference to parameter class.
Definition at line 155 of file TGo4ParaEditStatus.h. Referenced by GetParaClass(), and UpdateMemberLists(). |
|
reference to TClass list of datamembers.
Definition at line 158 of file TGo4ParaEditStatus.h. |
|
Number of members in parameter class.
Definition at line 161 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetMemberAddress(), GetMemNumber(), GetParaMemArrIndex(), GetParaMemArrIndey(), GetParaMember(), GetParaMemComment(), GetParaMemType(), GetParaMemVal(), IsParaMemVisible(), SetParaMemVal(), SetParaMemVisible(), and UpdateMemberLists(). |
|
Array with strings of member names.
Definition at line 164 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetParaMember(), and UpdateMemberLists(). |
|
Array with strings of member types.
Definition at line 167 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetParaMemType(), and UpdateMemberLists(). |
|
Array with member values in string representation.
Definition at line 170 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), and UpdateMemberLists(). |
|
Array with comments to member field.
Definition at line 173 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetParaMemComment(), and UpdateMemberLists(). |
|
This holds the complete address pointer of member i.
Definition at line 176 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetMemberAddress(), GetParaMemVal(), SetParaMemVal(), and UpdateMemberLists(). |
|
If datamember i is part of an array, this keeps the index. Is negative in case of no array Definition at line 180 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetParaMemArrIndex(), and UpdateMemberLists(). |
|
If datamember i is part of a 2d array, this keeps the y-index. Is negative in case of no array Definition at line 184 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), GetParaMemArrIndey(), and UpdateMemberLists(). |
|
this flag defines whether the member should be displayed.
Definition at line 187 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), IsParaMemVisible(), SetParaMemVisible(), and UpdateMemberLists(). |
|
Pointers to current member if matching the type. Otherwise zero. Definition at line 190 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 191 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 192 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 193 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 194 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 195 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 196 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 197 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 198 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 199 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 200 of file TGo4ParaEditStatus.h. Referenced by SetCast(), SetValue(), and ValueString(). |
|
Definition at line 201 of file TGo4ParaEditStatus.h. |
|
If parameter contains fitter aggregates, this points to the last active.
Definition at line 204 of file TGo4ParaEditStatus.h. Referenced by SetFitPointerAddress(), and UpdateLastFitter(). |
|
sizeof the current data type in byte. For array evaluation. Definition at line 207 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), and SetCast(). |
|
general textbuffer for passing strings to qt.
Definition at line 209 of file TGo4ParaEditStatus.h. Referenced by EvalMembers(), SetParaClass(), and ValueString(). |
|
list of all available subclasses of TGo4Parameter.
Definition at line 212 of file TGo4ParaEditStatus.h. Referenced by BuildParameterList(). |
|
iterator for list of parameter classes.
Definition at line 215 of file TGo4ParaEditStatus.h. Referenced by BuildParameterList(), NextParameterClass(), ResetParameterList(), and ~TGo4ParaEditStatus(). |