StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
tableAcceptor.hh
1 /***************************************************************************
2  *
3  * $Id: tableAcceptor.hh,v 1.6 2003/09/10 19:47:06 perev Exp $
4  *
5  * Author: R. Jeff Porter
6  ***************************************************************************
7  *
8  * Description: buffer for file I/O for StDbTable (e.g. XmlReader/Writer)
9  *
10  ***************************************************************************
11  *
12  * $Log: tableAcceptor.hh,v $
13  * Revision 1.6 2003/09/10 19:47:06 perev
14  * ansi corrs
15  *
16  * Revision 1.5 2003/09/02 17:57:50 perev
17  * gcc 3.2 updates + WarnOff
18  *
19  * Revision 1.4 2001/02/09 23:06:26 porter
20  * replaced ostrstream into a buffer with ostrstream creating the
21  * buffer. The former somehow clashed on Solaris with CC5 iostream (current .dev)
22  *
23  * Revision 1.3 1999/12/03 22:24:01 porter
24  * expanded functionality used by online, fixed bug in
25  * mysqlAccessor::getElementID(char*), & update StDbDataSet to
26  * conform to changes in Xml reader & writer
27  *
28  * Revision 1.2 1999/09/30 02:06:15 porter
29  * add StDbTime to better handle timestamps, modify SQL content (mysqlAccessor)
30  * allow multiple rows (StDbTable), & Added the comment sections at top of
31  * each header and src file
32  *
33  **************************************************************************/
34 #ifndef TABLEACCEPTOR_HH
35 #define TABLEACCEPTOR_HH
36 
37 
38 #include "typeAcceptor.hh"
39 
40 class StDbTable;
41 
42 class tableAcceptor : public typeAcceptor {
43 
44 public:
45 
46  virtual ~tableAcceptor(){};
47 
48  virtual void streamHeader(const char* name) = 0;
49  virtual void streamTableName(const char* name) = 0;
50  virtual void streamEndTableName() = 0;
51  virtual void streamAccessor() = 0;
52  virtual void endAccessor() = 0;
53  virtual void streamRow(int row) = 0;
54  virtual void streamEndRow() = 0;
55  virtual void streamTail() = 0;
56 
57  virtual void ioTable(StDbTable* table) = 0;
58 
59 };
60 
61 #endif
62 
63