Logo ROOT   6.16/01
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
15
17
18private:
19 Double_t **fData; // Pointer to 2 dimensional array of Double_t
22
23protected:
24
25public:
27 UInt_t ncolumns = 2);
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
unsigned int UInt_t
Definition: RtypesCore.h:42
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
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.
virtual ~TGSimpleTableInterface()
TGSimpleTableInterface destructor.
virtual Double_t GetValue(UInt_t row, UInt_t column)
Return the value of the double in row,column of the data.
TGSimpleTableInterface(Double_t **data, UInt_t nrows=2, UInt_t ncolumns=2)
TGSimpleTableInterfac constructor.
virtual const char * GetColumnHeader(UInt_t column)
Return a name for the header at column.
virtual const char * GetRowHeader(UInt_t row)
Return a name for the header at row.