StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
typeAcceptor.hh
1 /***************************************************************************
2  *
3  * $Id: typeAcceptor.hh,v 1.6 2001/10/24 04:05:20 porter 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: typeAcceptor.hh,v $
13  * Revision 1.6 2001/10/24 04:05:20 porter
14  * added long long type to I/O and got rid of obsolete dataIndex table
15  *
16  * Revision 1.5 2000/01/10 20:37:55 porter
17  * expanded functionality based on planned additions or feedback from Online work.
18  * update includes:
19  * 1. basis for real transaction model with roll-back
20  * 2. limited SQL access via the manager for run-log & tagDb
21  * 3. balance obtained between enumerated & string access to databases
22  * 4. 3-levels of diagnostic output: Quiet, Normal, Verbose
23  * 5. restructured Node model for better XML support
24  *
25  * Revision 1.4 1999/12/03 22:24:01 porter
26  * expanded functionality used by online, fixed bug in
27  * mysqlAccessor::getElementID(char*), & update StDbDataSet to
28  * conform to changes in Xml reader & writer
29  *
30  * Revision 1.3 1999/09/30 02:06:16 porter
31  * add StDbTime to better handle timestamps, modify SQL content (mysqlAccessor)
32  * allow multiple rows (StDbTable), & Added the comment sections at top of
33  * each header and src file
34  *
35  **************************************************************************/
36 #ifndef TYPEACCEPTOR_HH
37 #define TYPEACCEPTOR_HH
38 
39 
40 class typeAcceptor {
41 
42 public:
43 
44  virtual ~typeAcceptor(){};
45  virtual void pass(char* name, short& i, int& len) = 0;
46  virtual void pass(char* name, int& i, int& len) = 0;
47  virtual void pass(char* name, long& i, int& len) = 0;
48  virtual void pass(char* name, unsigned short& i, int& len) = 0;
49  virtual void pass(char* name, unsigned int& i, int& len) = 0;
50  virtual void pass(char* name, unsigned long& i, int& len) = 0;
51  virtual void pass(char* name, long long& i, int& len) = 0;
52  virtual void pass(char* name, float& i, int& len) = 0;
53  virtual void pass(char* name, double& i, int& len) = 0;
54 
55  virtual void pass(char* name, char*& i, int& len) = 0;
56  virtual void pass(char* name, unsigned char& i, int& len) = 0;
57  virtual void pass(char* name, unsigned char*& i, int& len) = 0;
58 
59  virtual void pass(char* name, short*& i, int& len) = 0;
60  virtual void pass(char* name, int*& i, int& len) = 0;
61  virtual void pass(char* name, long*& i, int& len) = 0;
62  virtual void pass(char* name, unsigned short*& i, int& len) = 0;
63  virtual void pass(char* name, unsigned int*& i, int& len) = 0;
64  virtual void pass(char* name, unsigned long*& i, int& len) = 0;
65  virtual void pass(char* name, long long*& i, int& len) = 0;
66  virtual void pass(char* name, float*& i, int& len) = 0;
67  virtual void pass(char* name, double*& i, int& len) = 0;
68 
69 };
70 
71 #endif
72 
73 
74 
75 
76 
77 
78