TGSimpleTableInterface.h

Go to the documentation of this file.
00001 // Author: Roel Aaij   21/07/2007
00002 
00003 /*************************************************************************
00004  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00005  * All rights reserved.                                                  *
00006  *                                                                       *
00007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00009  *************************************************************************/
00010 
00011 #ifndef ROOT_TGSimpleTableInterface
00012 #define ROOT_TGSimpleTableInterface
00013 
00014 #ifndef ROOT_TVirtualTableInterface
00015 #include "TVirtualTableInterface.h"
00016 #endif
00017 
00018 class TGSimpleTableInterface : public TVirtualTableInterface {
00019 
00020 private:
00021    Double_t **fData; // Pointer to 2 dimensional array of Double_t
00022    UInt_t fNRows;
00023    UInt_t fNColumns;
00024 
00025 protected:
00026 
00027 public:
00028    TGSimpleTableInterface(Double_t **data, UInt_t nrows = 2, 
00029                           UInt_t ncolumns = 2);
00030    virtual ~TGSimpleTableInterface();
00031 
00032    virtual Double_t    GetValue(UInt_t row, UInt_t column);
00033    virtual const char *GetValueAsString(UInt_t row, UInt_t column);
00034    virtual const char *GetRowHeader(UInt_t row);
00035    virtual const char *GetColumnHeader(UInt_t column); 
00036    virtual UInt_t      GetNRows() { return fNRows; }
00037    virtual UInt_t      GetNColumns() { return fNColumns; }
00038 
00039    ClassDef(TGSimpleTableInterface, 0) // Interface to data in a 2D array of Double_t
00040 };
00041 
00042 #endif

Generated on Tue Jul 5 14:20:07 2011 for ROOT_528-00b_version by  doxygen 1.5.1