Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

StDbMessenger.hh

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * 00003 * $Id: StDbMessenger.hh,v 1.3 2003/09/16 22:44:17 porter Exp $ 00004 * 00005 * Author: R. Jeff Porter 00006 *************************************************************************** 00007 * 00008 * Description: Implementation of StDbMessService used within StDbLib 00009 * in stand-alone mode 00010 * 00011 *************************************************************************** 00012 * 00013 * $Log: StDbMessenger.hh,v $ 00014 * Revision 1.3 2003/09/16 22:44:17 porter 00015 * got rid of all ostrstream objects; replaced with ostringstream+string. 00016 * modified rules.make and added file stdb_streams.h for standalone compilation 00017 * 00018 * Revision 1.2 2003/09/02 17:57:49 perev 00019 * gcc 3.2 updates + WarnOff 00020 * 00021 * Revision 1.1 2001/01/22 18:37:57 porter 00022 * Update of code needed in next year running. This update has little 00023 * effect on the interface (only 1 method has been changed in the interface). 00024 * Code also preserves backwards compatibility so that old versions of 00025 * StDbLib can read new table structures. 00026 * -Important features: 00027 * a. more efficient low-level table structure (see StDbSql.cc) 00028 * b. more flexible indexing for new systems (see StDbElememtIndex.cc) 00029 * c. environment variable override KEYS for each database 00030 * d. StMessage support & clock-time logging diagnostics 00031 * -Cosmetic features 00032 * e. hid stl behind interfaces (see new *Impl.* files) to again allow rootcint access 00033 * f. removed codes that have been obsolete for awhile (e.g. db factories) 00034 * & renamed some classes for clarity (e.g. tableQuery became StDataBaseI 00035 * and mysqlAccessor became StDbSql) 00036 * 00037 * 00038 **************************************************************************/ 00039 #ifndef __StDbMessenger_HH 00040 #define __StDbMessenger_HH 00041 00042 #include "StDbMessService.hh" 00043 #include "stdb_streams.h" 00044 00045 class StDbMessenger : public StDbMessService { 00046 00047 public: 00048 00049 ostream& mos; 00050 00051 StDbMessenger():mos(cout){}; 00052 StDbMessenger(ostream& os):mos(os){}; 00053 StDbMessenger(StDbMessenger& m): mos(m.mos) { mdbLevel=m.getMessLevel(); } 00054 00055 virtual ~StDbMessenger(){}; 00056 00057 virtual void printMessage(const char* message, 00058 StDbMessLevel dbLevel, 00059 int lineNumber, 00060 const char* className, 00061 const char* methodName); 00062 00063 virtual void printMessage(const char* message, 00064 const char* levelString, 00065 int lineNumber, 00066 const char* className, 00067 const char* methodName) ; 00068 00069 }; 00070 00071 #endif

Generated on Thu Aug 24 14:45:26 2006 for Doxygen by doxygen 1.3.7