1 void Db_LoadTable(
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);
32 modify->SetInputFileName(fname.Data());
33 modify->WriteDataToDB();
35 cout<<
"Loaded "<<fname.Data()<<
" into the "<<domainName<<
" database"<<endl;
static StDbManager * Instance()
strdup(..) is not ANSI