StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StMessageManager Class Reference

#include <StMessageManager.h>

Inheritance diagram for StMessageManager:
StMessMgr

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 StMessageFindMessage (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 StMessageFindInfo (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 StMessageFindWarning (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 StMessageFindError (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 StMessageFindDebug (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 StMessageFindQAInfo (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 StMessageFindUCMInfo (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 StMessageFindMessage (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 StMessMgrInstance ()
 
- Static Public Member Functions inherited from StMessMgr
static StMessMgrCurrentMessager ()
 
static StMessMgrInstance ()
 
static StMessMgrInstance (const char *)
 
static StMessMgrSetCurrentMessager (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
StMessMgroperator= (const StMessMgr &)
 
virtual StMessMgrInstantiate ()
 
virtual StMessMgrInstantiate (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
}
 

Detailed Description

Author
G. Van Buren, BNL

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.

See Also
http://www.star.bnl.gov/STAR/comp/pkg/dev/StRoot/StUtilities/doc/StMessMgr.html

Definition at line 31 of file StMessageManager.h.


The documentation for this class was generated from the following files: