KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
Utility class describing the data used to fill each column of the list view container.
Created by KVClassFactory on Wed Apr 9 13:54:31 2008 Author: franklan
Definition at line 31 of file KVLVContainer.h.
Public Member Functions | |
KVLVColumnData (TClass *cl, const Char_t *name, const Char_t *method="") | |
virtual | ~KVLVColumnData () |
Int_t | Compare (TObject *ob1, TObject *ob2) |
void | GetData (TObject *, Double_t &) |
void | GetData (TObject *, KVDatime &) |
void | GetData (TObject *, Long_t &) |
void | GetData (TObject *, TString &) |
const Char_t * | GetDataString (TObject *) |
Format string with column data for object. More... | |
virtual Bool_t | IsBoolean () const |
virtual void | SetDataFormat (const Char_t *fmt) |
virtual void | SetIsBoolean (Bool_t isit=kTRUE) |
virtual void | SetIsDateTime (KVDatime::EKVDateFormat fmt=KVDatime::kCTIME, Bool_t with_reference=kTRUE) |
Private Types | |
enum | { kDatimeRef = (Int_t)TMethodCall::kNone + 1 , kDatimeInt , kTString } |
Private Member Functions | |
Int_t | Compare_date (TObject *o1, TObject *o2) |
Int_t | Compare_double (TObject *o1, TObject *o2) |
Int_t | Compare_long (TObject *o1, TObject *o2) |
Int_t | Compare_string (TObject *o1, TObject *o2) |
Private Attributes | |
TString | fDataFormat |
format for displaying numerical data More... | |
Bool_t | fDate |
kTRUE if column contains TDatime date & time info More... | |
KVDatime::EKVDateFormat | fFmt |
format for presenting date & time More... | |
Bool_t | fIsBoolean |
kTRUE if column data is a boolean (i.e. 1 or 0, kTRUE or kFALSE) More... | |
Bool_t | fIsKVDatime |
kTRUE if date & time is in KVDatime object, TDatime if not More... | |
TMethodCall | fMethCall |
method call object More... | |
TString | fMethod |
method used to retrieve data from objects More... | |
TString | fName |
name used on button at top of column More... | |
Int_t | fRetType |
return type of data retrieval method More... | |
TString | result |
string used to store object data More... | |
#include <KVLVContainer.h>
|
private |
Enumerator | |
---|---|
kDatimeRef | |
kDatimeInt | |
kTString |
Definition at line 44 of file KVLVContainer.h.
|
inline |
Definition at line 55 of file KVLVContainer.h.
|
inlinevirtual |
Definition at line 83 of file KVLVContainer.h.
Compare (for sorting) the two objects based on the type of data stored in this column. The sorting depends on the return type of the data. for integers: return 1 if ob1->data < ob2->data etc. for floats: return 1 if ob1->data < ob2->data etc. for strings: alphabetical sorting using TString::CompareTo for dates: chronological order (earliest first)
Definition at line 265 of file KVLVContainer.cpp.
Definition at line 210 of file KVLVContainer.cpp.
Definition at line 246 of file KVLVContainer.cpp.
Definition at line 234 of file KVLVContainer.cpp.
Definition at line 222 of file KVLVContainer.cpp.
Definition at line 78 of file KVLVContainer.cpp.
Definition at line 104 of file KVLVContainer.cpp.
Definition at line 69 of file KVLVContainer.cpp.
Definition at line 87 of file KVLVContainer.cpp.
Format string with column data for object.
Definition at line 123 of file KVLVContainer.cpp.
|
inlinevirtual |
Definition at line 97 of file KVLVContainer.h.
Override default formatting for integer ("%ld") or double ("%lf") data types
Definition at line 91 of file KVLVContainer.h.
Definition at line 87 of file KVLVContainer.h.
|
virtual |
If data in column is date & time info, use this method to
Definition at line 179 of file KVLVContainer.cpp.
|
private |
format for displaying numerical data
Definition at line 42 of file KVLVContainer.h.
|
private |
kTRUE if column contains TDatime date & time info
Definition at line 38 of file KVLVContainer.h.
|
private |
format for presenting date & time
Definition at line 39 of file KVLVContainer.h.
|
private |
kTRUE if column data is a boolean (i.e. 1 or 0, kTRUE or kFALSE)
Definition at line 41 of file KVLVContainer.h.
|
private |
kTRUE if date & time is in KVDatime object, TDatime if not
Definition at line 40 of file KVLVContainer.h.
|
private |
method call object
Definition at line 35 of file KVLVContainer.h.
|
private |
method used to retrieve data from objects
Definition at line 34 of file KVLVContainer.h.
|
private |
name used on button at top of column
Definition at line 33 of file KVLVContainer.h.
|
private |
return type of data retrieval method
Definition at line 36 of file KVLVContainer.h.
|
private |
string used to store object data
Definition at line 37 of file KVLVContainer.h.