1    	//*-- Author :    Valery Fine(fine@bnl.gov)   23/03/00
2    	// $Id: St_table_header_Table.h,v 1.5 2000/05/15 18:54:48 fine Exp $
3    	//
4    	#ifndef STAF_St_table_header_Table
5    	#define STAF_St_table_header_Table
6    	
7    	#include "TTable.h"
8    	
9    	#include "table_header.h"
10   	
11   	extern "C" {
12   	   void *ReAllocate(table_head_st *h, Int_t newsize);
13   	}
14   	
15   	class St_table_header : public TTable
16   	{ 
17   	 public:
18   	    St_table_header(const TTable *table);
19   	    static TTable *Object(TTable *&table,const table_head_st *h);
20   	    ClassDefTable(St_table_header,table_head_st)
21   	    ClassDef(St_table_header,0) //C++ wrapper for <table_header> 
22   	};
23   	
24   	//______________________________________________________________________________
25   	inline TTable *St_table_header::Object(TTable *&table,const table_head_st *header)
26   	{
27   	  // return a pointer to the C++ object by table header provided
28   	  assert(header); 
29   	  table = (TTable *)header->dsl_pointer;
30   	  return table;
31   	}
32   	//______________________________________________________________________________
33   	// $Log: St_table_header_Table.h,v $
34   	// Revision 1.5  2000/05/15 18:54:48  fine
35   	// ClassDefTable macro in use here
36   	//
37   	// Revision 1.4  2000/03/30 05:20:52  fine
38   	// bug fixed
39   	//
40   	// Revision 1.3  2000/03/27 02:19:45  fine
41   	// bug fix
42   	//
43   	// Revision 1.2  2000/03/27 00:34:04  fine
44   	// function ReAllocate and method TTable::Object have been move to St_table_head class
45   	//
46   	// Revision 1.1  2000/03/23 17:58:13  fine
47   	// new class to hold STAF table header aside
48   	// 
49   	//______________________________________________________________________________
50   	#endif
51