42 : wildcardLimit ( -1 )
43 , wildcardInterval( -1 )
44 , wildcardTimespan( -1 )
50 #ifdef ELlimitsTableCONSTRUCTOR_TRACE 51 std::cerr <<
"Constructor for ELlimitsTable\n";
65 #ifdef ELlimitsTableCONSTRUCTOR_TRACE 66 std::cerr <<
"Destructor for ELlimitsTable\n";
81 #ifdef ELlimitsTableATRACE 82 std::cerr <<
"&&&--- adding to limits table: " << xid.
id <<
'\n';
85 ELmap_counts::iterator
c =
counts.find( xid );
89 #ifdef ELlimitsTableATRACE 90 std::cerr <<
"&&& no such entry yet in counts \n";
101 ELmap_limits::iterator
l =
limits.find( xid.
id );
103 if ( l !=
limits.end() ) {
104 lim = (*l).second.limit;
105 ivl = (*l).second.interval;
106 ts = (*l).second.timespan;
126 #ifdef ELlimitsTableATRACE 127 std::cerr <<
"&&& Entry found in limits: limit = " << lim
128 <<
" interval = " << ivl
129 <<
" timespan = " << ts <<
'\n';
136 #ifdef ELlimitsTableATRACE 137 std::cerr <<
"&&& Limit taken from severityLimits: " << lim <<
'\n' 138 <<
"&&& Interval taken from severityLimits: " << ivl <<
'\n';
142 #ifdef ELlimitsTableATRACE 143 std::cerr <<
"&&& Limit reset to wildcard limit: " << lim <<
'\n';
148 #ifdef ELlimitsTableATRACE 149 std::cerr <<
"&&& Interval reset to wildcard interval: " << ivl <<
'\n';
152 #ifdef ELlimitsTableATRACE 153 std::cerr <<
"&&& Timespan taken from severityTimespans: " << ts <<
'\n';
157 #ifdef ELlimitsTableATRACE 158 std::cerr <<
"&&& timespan reset to wildcard timespan: " << ts <<
'\n';
171 return ( c ==
counts.end() )
190 ELmap_counts::iterator
i;
192 (*i).second.limit = -1;
193 (*i).second.n = (*i).second.aggregateN = 0;
211 ELmap_counts::iterator
i;
229 else limits[
id].interval = interval;
void setTableLimit(int n)
int severityTimespans[ELseverityLevel::nLevels]
bool add(const ELextendedID &xid)
int severityLimits[ELseverityLevel::nLevels]
ELlimitsTable & operator=(const ELlimitsTable &t)
void setInterval(const ELstring &id, int interval)
int severityIntervals[ELseverityLevel::nLevels]
void setTimespan(const ELstring &id, int n)
void setLimit(const ELstring &id, int n)