00001 /*************************************************************************** 00002 * 00003 * $Id: dbNodeArray.h,v 1.2 2000/01/14 14:49:10 porter Exp $ 00004 * 00005 * Author: R. Jeff Porter 00006 *************************************************************************** 00007 * 00008 * Description: Abstract class to hide stl of a simple list of nodes (objects) 00009 * 00010 *************************************************************************** 00011 * 00012 * $Log: dbNodeArray.h,v $ 00013 * Revision 1.2 2000/01/14 14:49:10 porter 00014 * set verbose level for checking, added $Id & $Logs, & made node container 00015 * more robust for interactions with StDbLib 00016 * 00017 * Revision 1.1 2000/01/10 20:31:17 porter 00018 * modified StDbBroker to be an interface to the DB-interface, StDbLib. 00019 * - old functionality is retained for the short-term & modifications 00020 * are extensions 00021 * 00022 * 00023 **************************************************************************/ 00024 #ifndef DBNODEARRAY_HH 00025 #define DBNODEARRAY_HH 00026 00027 class StDbNode; 00028 00029 class dbNodeArray { 00030 00031 public: 00032 00033 virtual ~dbNodeArray(){}; 00034 00035 virtual int addNode(StDbNode* node, int parentID) = 0; 00036 virtual StDbNode* getNode(int index) = 0; 00037 00038 virtual int getParentID(int index) = 0; 00039 virtual StDbNode* getParent(int index) = 0; 00040 00041 virtual int getNumNodes() = 0; 00042 virtual void reset() = 0; 00043 virtual StDbNode* next() = 0; 00044 00045 }; 00046 00047 #endif 00048 00049 00050 00051 00052
1.5.9