ROOT  6.06/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 #ifndef ROOT_TVirtualTableInterface
15 #include "TVirtualTableInterface.h"
16 #endif
17 
19 
20 private:
21  Double_t **fData; // Pointer to 2 dimensional array of Double_t
24 
25 protected:
26 
27 public:
28  TGSimpleTableInterface(Double_t **data, UInt_t nrows = 2,
29  UInt_t ncolumns = 2);
30  virtual ~TGSimpleTableInterface();
31 
32  virtual Double_t GetValue(UInt_t row, UInt_t column);
33  virtual const char *GetValueAsString(UInt_t row, UInt_t column);
34  virtual const char *GetRowHeader(UInt_t row);
35  virtual const char *GetColumnHeader(UInt_t column);
36  virtual UInt_t GetNRows() { return fNRows; }
37  virtual UInt_t GetNColumns() { return fNColumns; }
38 
39  ClassDef(TGSimpleTableInterface, 0) // Interface to data in a 2D array of Double_t
40 };
41 
42 #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)
#define ClassDef(name, id)
Definition: Rtypes.h:254
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.