145 #include "StDbManager.hh"
146 #include "StDbManagerImpl.hh"
147 #include "StDbMessenger.hh"
148 #include "stdb_streams.h"
164 StDbManager::~StDbManager(){
165 if (muserName)
delete [] muserName;
166 if (mpWord)
delete [] mpWord;
173 StDbManager::turnOffTimeLogging(){ misTimeLogged=
false; }
177 StDbManager::mstringDup(
const char* str){
180 if(!str)
return retString;
181 retString =
new char[strlen(str)+1];
182 strcpy(retString,str);
189 StDbManager::printInfo(
const char* m1, StDbMessLevel ml,
int lineNumber,
const char* className,
const char* methodName){
191 Messenger->printMessage(m1,ml,lineNumber,className,methodName);
197 StDbManager::printInfo(
const char* m1,
const char* m2, StDbMessLevel ml,
int lineNumber,
const char* className,
const char* methodName){
201 printInfo((ms.str()).c_str(),ml,lineNumber,className,methodName);
209 StDbManager::setUser(
const char* userName,
const char* pWord){
212 if(muserName)
delete [] muserName;
213 muserName=mstringDup(userName);
216 if(mpWord)
delete [] mpWord;
217 mpWord = mstringDup(pWord);
StDbManager()
flag for logging timing
StDbMessService * Messenger
where normal=!misVerbose && !misQuiet
static StDbManager * Instance()
strdup(..) is not ANSI