Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:05

0001 // Author: Roel Aaij   21/07/2007
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
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; // Pointer to 2 dimensional array of Double_t
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) // Interface to data in a 2D array of Double_t
0041 };
0042 
0043 #endif