Warning, file /include/root/TTreeResult.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TTreeResult
0013 #define ROOT_TTreeResult
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #include "TSQLResult.h"
0029
0030 class TString;
0031 class TObjArray;
0032
0033
0034 class TTreeResult : public TSQLResult {
0035
0036 friend class TTreePlayer;
0037
0038 private:
0039 Int_t fColumnCount;
0040 TString *fFields;
0041 TObjArray *fResult;
0042 Int_t fNextRow;
0043
0044 bool IsValid(Int_t field);
0045 void AddField(Int_t field, const char *fieldname);
0046 void AddRow(TSQLRow *row);
0047
0048 public:
0049 TTreeResult();
0050 TTreeResult(Int_t nfields);
0051 ~TTreeResult() override;
0052
0053 void Close(Option_t *option="") override;
0054 Int_t GetFieldCount() override;
0055 const char *GetFieldName(Int_t field) override;
0056 TObjArray *GetRows() const { return fResult; }
0057 TSQLRow *Next() override;
0058
0059 ClassDefOverride(TTreeResult,1)
0060 };
0061
0062 #endif