88 #ifndef STDBCONFIGNODE_HH
89 #define STDBCONFIGNODE_HH
91 #include "StDbNode.hh"
92 #include "StDbTableIter.hh"
118 const char* nodeName,
const char* configName);
121 const char* nodeName,
const char* configName=
"none");
134 virtual void addChildren(
dbEnvList* elist) = 0;
135 void deleteChildren();
141 void setBranchID(
int branchID);
142 void setIsDbNode(
bool isDbNode);
144 void printTree(
int depth);
147 virtual void resetConfig(
const char* config,
int opt=0) =0;
148 virtual int buildTree(
int opt=0) =0;
150 virtual void setElementIndexInfo(
const char* indexName,
int indexID) =0;
151 virtual void getElementIndexInfo(
char*& indexname,
int& indexID) =0;
152 virtual int getNumIndeces()
const =0;
155 virtual StDbTable* addDbTable(
const char* tableName,
156 const char* version=
"default") =0;
157 virtual StDbTable* addTable (
const char* tableName,
158 const char* version=
"default") =0;
160 virtual StDbTable* findTable(
const char* name,
const char* sPath=
"/")=0;
161 virtual StDbTable* findLocalTable(
const char* name) =0;
162 virtual void removeTable(
StDbTable* table) =0;
165 virtual void printTables(
int depth) =0;
166 virtual void printNumberStats() =0;
167 virtual void getNumberStats(
unsigned int& nNodes,
168 unsigned int& ntables,
169 unsigned int& numBytes) =0;
172 virtual void setTablesFlavor(
const char* flavor) =0;
173 virtual void setTablesProdTime(
unsigned int ptime) =0;
174 virtual void setTablesProdTimeOverride(
unsigned int ptime,
char*
dbType = 0,
char*
dbDomain = 0) =0;
175 void setFlavor(
const char* flavor);
176 void setProdTime(
unsigned int ptime);
177 void setProdTimeOverride(
unsigned int ptime,
char*
dbType = 0,
char*
dbDomain = 0);
180 StDbConfigNode* findConfigNode(StDbType t, StDbDomain d,
const char* sPath);
190 inline void StDbConfigNode::setNextNode(
StDbConfigNode* node){ mnextNode=node;}
191 inline StDbConfigNode* StDbConfigNode::getNextNode() {
return mnextNode; };
192 inline StDbConfigNode* StDbConfigNode::getParentNode() {
return mparentNode; };
193 inline StDbConfigNode* StDbConfigNode::getFirstChildNode(){
return mfirstChildNode; };
194 inline bool StDbConfigNode::hasData(){
return mhasData;};
195 inline int StDbConfigNode::getBranchID() {
return mbranchID; };
196 inline void StDbConfigNode::setBranchID(
int branchID) { mbranchID=branchID; };
197 inline void StDbConfigNode::setIsDbNode(
bool isDbNode){misDbNode=isDbNode; };
198 inline bool StDbConfigNode::isDbNode() {
return misDbNode; };
199 inline bool StDbConfigNode::hasChildren(){
return (mfirstChildNode) ?
true :
false; };