1 void Db_ReadTable(
char* domainName,
char* tableName,
char* timestamp){
14 gSystem->Load(
"St_base");
15 gSystem->Load(
"StChain");
18 gSystem->Load(
"libStDb_Tables");
19 gSystem->Load(
"StUtilities");
20 gSystem->Load(
"StDbLib");
22 StDbModifier* modify=
new StDbModifier();
23 modify->SetDbName(domainName);
24 modify->SetDateTime(timestamp);
25 modify->SetFlavor(
"ofl");
27 TString fname(tableName);
30 modify->SetTableName(tableName);
31 modify->SetOutputFileName(fname.Data());
32 modify->ReadDataFromDB();
34 cout<<
"Wrote out "<<domainName<<
" database table "<<fname.Data()<<endl;
static StDbManager * Instance()
strdup(..) is not ANSI