84 Error(
"IsValid",
"result set closed");
88 Error(
"IsValid",
"field index out of bounds");
100 Error(
"GetFieldCount",
"result set closed");
125 Error(
"Next",
"result set closed");
157 Error(
"AddRow",
"result set closed");
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
TObject * At(Int_t idx) const override
void Add(TObject *obj) override
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * Data() const
Class defining interface to a TTree query result with the same interface as for SQL databases.
void Close(Option_t *option="") override
Close query result.
Int_t fColumnCount
number of columns in result
TTreeResult()
Create a query result object.
TSQLRow * Next() override
Get next query result row.
Int_t fNextRow
row iterator
const char * GetFieldName(Int_t field) override
Get name of specified field.
Int_t GetFieldCount() override
Get number of fields in result.
TString * fFields
[fColumnCount] array containing field strings
virtual ~TTreeResult()
Cleanup result object.
Bool_t IsValid(Int_t field)
Check if result set is open and field index within range.
void AddRow(TSQLRow *row)
Adopt a row to result set.
TObjArray * fResult
query result (TTreeRow objects)
void AddField(Int_t field, const char *fieldname)
Add field name to result set.
Class defining interface to a row of a TTree query result.