1 #ifndef MessageService_ELadministrator_h
2 #define MessageService_ELadministrator_h
59 #include "boost/shared_ptr.hpp"
69 class ELcontextSupplier;
71 class ELadminDestroyer;
142 std::list<boost::shared_ptr<ELdestination> > &
sinks();
169 std::list<boost::shared_ptr<ELdestination> >
sinks_;
211 #endif // MessageService_ELadministrator_h
const ELseverityLevel & highSeverity() const
void setProcess(const ELstring &process)
const ELcontextSupplier & getContextSupplier() const
ELstring swapProcess(const ELstring &process)
std::list< boost::shared_ptr< ELdestination > > & sinks()
int severityCounts_[ELseverityLevel::nLevels]
void setThresholds(const ELseverityLevel &sev)
std::map< ELstring, boost::shared_ptr< ELdestination > > attachedDestinations
ELadminDestroyer(ELadministrator *ad=0)
void setExitThreshold(const ELseverityLevel &sev)
const ELstring & process() const
void setIntervals(const ELstring &id, int interval)
void resetSeverityCount()
void setLimits(const ELstring &id, int limit)
static ELadministrator * instance_
virtual ~ELadministrator()
ELcontextSupplier & swapContextSupplier(ELcontextSupplier &cs)
ELseverityLevel highSeverity_
void setTimespans(const ELstring &id, int seconds)
bool getELdestControl(const ELstring &name, ELdestControl &theControl)
boost::shared_ptr< ELcontextSupplier > context_
std::list< boost::shared_ptr< ELdestination > > sinks_
ELseverityLevel abortThreshold_
static std::string from(" from ")
void setAbortThreshold(const ELseverityLevel &sev)
static ELadministrator * instance()
void setContextSupplier(const ELcontextSupplier &supplier)
int severityCounts(int lev) const
int severityCount(const ELseverityLevel &sev) const
ELcontextSupplier & context() const
void setELadmin(ELadministrator *ad)
ELdestControl attach(const ELdestination &sink)
const ELseverityLevel & exitThreshold() const
ELseverityLevel checkSeverity()
ELseverityLevel exitThreshold_
const ELseverityLevel & abortThreshold() const