StRoot
1
|
#include <StMessageManager.h>
Public Member Functions | |
virtual std::ostream & | OperatorShift (std::ostream &os, StMessage *stm) |
virtual std::ostringstream & | Message (const char *mess="", const char *type="", const char *opt=0, const char *sourceFileName=0, int lineNumber=-1) |
virtual void | Print () |
virtual int | PrintList (messVec *list) |
virtual int | PrintAll () |
virtual const messVec * | GetAll () |
virtual StMessage * | FindMessage (const char *s1, const char *s2="", const char *s3="", const char *s4="", messVec *list=0) |
virtual messVec * | FindMessageList (const char *s1, const char *s2="", const char *s3="", const char *s4="", messVec *list=0) |
virtual int | RemoveMessage (StMessage *mess) |
virtual int | RemoveMessage (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual void | SetLimit (const char *str, int n=0) |
virtual int | GetLimit (const char *str) |
virtual void | ListLimits () |
virtual void | RemoveLimit (const char *str) |
virtual void | SetLevel (Int_t logLevel) |
virtual Int_t | GetLevel (Int_t logLevel) const |
virtual const char * | GetName () const |
virtual void | SwitchOff (const char *str) |
virtual void | SwitchOn (const char *str) |
virtual void | FixOn (const char *str) |
virtual void | NoLimits () |
virtual void | Summary (size_t nTerms=1) |
virtual void | MemorySummary () |
virtual void | MemoryOn () |
virtual void | MemoryOff () |
virtual int | AddType (const char *type, const char *text) |
virtual int | ListTypes () |
virtual std::ostringstream & | Info (const char *mess="", const char *opt="O", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintInfos () |
virtual const messVec * | GetInfos () |
virtual StMessage * | FindInfo (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindInfoList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | Warning (const char *mess="", const char *opt="E", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintWarnings () |
virtual const messVec * | GetWarnings () |
virtual StMessage * | FindWarning (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindWarningList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | Error (const char *mess="", const char *opt="E", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintErrors () |
virtual const messVec * | GetErrors () |
virtual StMessage * | FindError (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindErrorList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | Debug (const char *mess="", const char *opt="OT", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintDebug () |
virtual const messVec * | GetDebugs () |
virtual StMessage * | FindDebug (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindDebugList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | QAInfo (const char *mess="", const char *opt="OS", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintQAInfo () |
virtual const messVec * | GetQAInfos () |
virtual StMessage * | FindQAInfo (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindQAInfoList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | UCMInfo (const char *mess="", const char *opt="OS", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintUCMInfo () |
virtual const messVec * | GetUCMInfos () |
virtual StMessage * | FindUCMInfo (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindUCMInfoList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | out (const char *mess="") |
virtual std::ostringstream & | err (const char *mess="") |
virtual void | PrintInfo () |
virtual std::ostringstream & | Fatal (const char *mess="", const char *opt="E", const char *sourceFileName=0, int lineNumber=-1) |
Public Member Functions inherited from StMessMgr | |
StMessMgr (const StMessMgr &) | |
virtual StMessage * | FindMessage (const char *s1, const char s2[]="", const char *s3="", const char *s4="", messVec *list=0)=0 |
virtual void | Close () |
virtual bool | isDebugEnabled () const |
virtual bool | isWarnEnabled () const |
virtual bool | isWarningEnabled () const |
virtual bool | isErrorEnabled () const |
virtual bool | isInfoEnabled () const |
virtual bool | isFatalEnabled () const |
virtual bool | isEnabledFor () const |
virtual bool | isQAInfoEnabled () const |
virtual bool | isUCMInfoEnabled () const |
Static Public Member Functions | |
static StMessMgr * | Instance () |
Static Public Member Functions inherited from StMessMgr | |
static StMessMgr * | CurrentMessager () |
static StMessMgr * | Instance () |
static StMessMgr * | Instance (const char *) |
static StMessMgr * | SetCurrentMessager (StMessMgr *mgr=0) |
Protected Member Functions | |
StMessageManager (const StMessageManager &) | |
virtual messVecIter | FindMessageIter (const char *s1, const char *s2="", const char *s3="", const char *s4="", messVec *list=0) |
virtual void | BuildMessage (const char *mess="", const char *type="", const char *opt=0) |
virtual void | IgnoreRepeats () |
virtual void | AllowRepeats () |
Protected Member Functions inherited from StMessMgr | |
StMessMgr & | operator= (const StMessMgr &) |
virtual StMessMgr * | Instantiate () |
virtual StMessMgr * | Instantiate (const char *) |
Protected Attributes | |
messVec | messList |
messTypeVec | messCollection |
Additional Inherited Members | |
Public Types inherited from StMessMgr | |
enum | ESTARMakerErrorLevels { kAll =-5, kFatal, kError, kWarning, kInfo, kDefault, kDebug, kDebug2 } |
This class manages the messages in STAR software. It is a singleton. It inherits from StMessMgr, which provides the external interface. Messages are stored in a vector, and come in several types (i.e. info, error, debug ). The types "I" (info), "W" (warning), "E" (error), "D" (debug), and "Q" (QAInfo) are predefined. Message finding and summary tools are also available.
Definition at line 31 of file StMessageManager.h.