Logo ROOT   6.10/09
Reference Guide
TGSimpleTableInterface.h
Go to the documentation of this file.
1 // Author: Roel Aaij 21/07/2007
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
6  * *
7  * For the licensing terms see $ROOTSYS/LICENSE. *
8  * For the list of contributors see $ROOTSYS/README/CREDITS. *
9  *************************************************************************/
10 
11 #ifndef ROOT_TGSimpleTableInterface
12 #define ROOT_TGSimpleTableInterface
13 
14 #include "TVirtualTableInterface.h"
15 
17 
18 private:
19  Double_t **fData; // Pointer to 2 dimensional array of Double_t
22 
23 protected:
24 
25 public:
27  UInt_t ncolumns = 2);
28  virtual ~TGSimpleTableInterface();
29 
30  virtual Double_t GetValue(UInt_t row, UInt_t column);
31  virtual const char *GetValueAsString(UInt_t row, UInt_t column);
32  virtual const char *GetRowHeader(UInt_t row);
33  virtual const char *GetColumnHeader(UInt_t column);
34  virtual UInt_t GetNRows() { return fNRows; }
35  virtual UInt_t GetNColumns() { return fNColumns; }
36 
37  ClassDef(TGSimpleTableInterface, 0) // Interface to data in a 2D array of Double_t
38 };
39 
40 #endif
virtual const char * GetRowHeader(UInt_t row)
Return a name for the header at row.
TGSimpleTableInterface(Double_t **data, UInt_t nrows=2, UInt_t ncolumns=2)
TGSimpleTableInterfac constructor.
#define ClassDef(name, id)
Definition: Rtypes.h:297
virtual const char * GetColumnHeader(UInt_t column)
Return a name for the header at column.
virtual ~TGSimpleTableInterface()
TGSimpleTableInterface destructor.
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual Double_t GetValue(UInt_t row, UInt_t column)
Return the value of the double in row,column of the data.
double Double_t
Definition: RtypesCore.h:55
virtual const char * GetValueAsString(UInt_t row, UInt_t column)
Return the value of the double in row,column of the data as a string.