BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TooBigCountIssue.cxx
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file TooBigCountIssue.cxx
5
* @author <a href="mailto:Andre.dos.Anjos@cern.ch">Andre DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* Implements the too-big-count issue
11
*/
12
13
#include "eformat/TooBigCountIssue.h"
14
15
/**
16
* Strings to identify keys in ERS
17
*/
18
static
const
char
* CURRENT_COUNT_KEY =
"The number of blocks I have to manage"
;
19
static
const
char
* MAX_COUNT_KEY =
"The maximum number of blocks I can handle"
;
20
21
eformat::TooBigCountIssue::TooBigCountIssue
(
const
ers::Context
& context,
22
ers::severity_t
severity
,
size_t
count
,
23
size_t
maxcount )
24
:
eformat
::
Issue
( context,
severity
) {
25
set_value
( CURRENT_COUNT_KEY,
count
);
26
set_value
( MAX_COUNT_KEY, maxcount );
27
finish_setup
(
"Overloaded paged-memory container"
);
28
}
29
30
size_t
eformat::TooBigCountIssue::count
()
const
{
return
get_int_value
( CURRENT_COUNT_KEY ); }
31
32
size_t
eformat::TooBigCountIssue::max_count
()
const
{
return
get_int_value
( MAX_COUNT_KEY ); }
eformat::Issue::Issue
Issue(const ers::Context &context, ers::severity_t severity)
Definition
eformat/src/Issue.cxx:15
eformat::TooBigCountIssue::max_count
size_t max_count() const
Definition
TooBigCountIssue.cxx:32
eformat::TooBigCountIssue::count
size_t count() const
Definition
TooBigCountIssue.cxx:30
eformat::TooBigCountIssue::TooBigCountIssue
TooBigCountIssue(const ers::Context &context, ers::severity_t severity, size_t count, size_t maxcount)
Definition
TooBigCountIssue.cxx:21
ers::Context
Source context for Issue.
Definition
Event/ers/include/ers/Context.h:41
ers::Issue::set_value
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
Definition
ers/src/Issue.cxx:363
ers::Issue::severity
severity_t severity() const
severity_t of the issue
Definition
ers/src/Issue.cxx:584
ers::Issue::get_int_value
int get_int_value(const std::string &key, int def=0) const
Get a value of the table as an integer.
Definition
ers/src/Issue.cxx:290
ers::Issue::finish_setup
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
Definition
ers/src/Issue.cxx:553
eformat
Definition
Event/eformat/include/eformat/BadVersionIssue.h:20
ers::severity_t
enum ers::_severity_t severity_t
8.0.0
BOSS_Source
Event
eformat
src
TooBigCountIssue.cxx
Generated by
1.16.1