Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
16 class TGSimpleTableInterface : public TVirtualTableInterface {
17 
18 private:
19  Double_t **fData; // Pointer to 2 dimensional array of Double_t
20  UInt_t fNRows;
21  UInt_t fNColumns;
22 
23 protected:
24 
25 public:
26  TGSimpleTableInterface(Double_t **data, UInt_t nrows = 2,
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