File indexing completed on 2025-01-18 10:12:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_TGSimpleTableInterface
0012 #define ROOT_TGSimpleTableInterface
0013
0014 #include "TVirtualTableInterface.h"
0015
0016 #include "TString.h"
0017
0018 class TGSimpleTableInterface : public TVirtualTableInterface {
0019
0020 private:
0021 Double_t **fData;
0022 UInt_t fNRows;
0023 UInt_t fNColumns;
0024 TString fBuffer;
0025
0026 protected:
0027
0028 public:
0029 TGSimpleTableInterface(Double_t **data, UInt_t nrows = 2,
0030 UInt_t ncolumns = 2);
0031 ~TGSimpleTableInterface() override;
0032
0033 Double_t GetValue(UInt_t row, UInt_t column) override;
0034 const char *GetValueAsString(UInt_t row, UInt_t column) override;
0035 const char *GetRowHeader(UInt_t row) override;
0036 const char *GetColumnHeader(UInt_t column) override;
0037 UInt_t GetNRows() override { return fNRows; }
0038 UInt_t GetNColumns() override { return fNColumns; }
0039
0040 ClassDefOverride(TGSimpleTableInterface, 0)
0041 };
0042
0043 #endif