StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dbNodeArray.h
1 /***************************************************************************
2  *
3  * $Id: dbNodeArray.h,v 1.2 2000/01/14 14:49:10 porter Exp $
4  *
5  * Author: R. Jeff Porter
6  ***************************************************************************
7  *
8  * Description: Abstract class to hide stl of a simple list of nodes (objects)
9  *
10  ***************************************************************************
11  *
12  * $Log: dbNodeArray.h,v $
13  * Revision 1.2 2000/01/14 14:49:10 porter
14  * set verbose level for checking, added $Id & $Logs, & made node container
15  * more robust for interactions with StDbLib
16  *
17  * Revision 1.1 2000/01/10 20:31:17 porter
18  * modified StDbBroker to be an interface to the DB-interface, StDbLib.
19  * - old functionality is retained for the short-term & modifications
20  * are extensions
21  *
22  *
23  **************************************************************************/
24 #ifndef DBNODEARRAY_HH
25 #define DBNODEARRAY_HH
26 
27 class StDbNode;
28 
29 class dbNodeArray {
30 
31 public:
32 
33  virtual ~dbNodeArray(){};
34 
35  virtual int addNode(StDbNode* node, int parentID) = 0;
36  virtual StDbNode* getNode(int index) = 0;
37 
38  virtual int getParentID(int index) = 0;
39  virtual StDbNode* getParent(int index) = 0;
40 
41  virtual int getNumNodes() = 0;
42  virtual void reset() = 0;
43  virtual StDbNode* next() = 0;
44 
45 };
46 
47 #endif
48 
49 
50 
51 
52