BOSS 7.0.1
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:[email protected]">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 */
18static const char* CURRENT_COUNT_KEY = "The number of blocks I have to manage";
19static const char* MAX_COUNT_KEY = "The maximum number of blocks I can handle";
20
22 ers::severity_t severity,
23 size_t count, size_t maxcount)
24 : eformat::Issue(context,severity)
25{
26 set_value(CURRENT_COUNT_KEY, count);
27 set_value(MAX_COUNT_KEY, maxcount);
28 finish_setup("Overloaded paged-memory container");
29}
30
32{
33 return get_int_value(CURRENT_COUNT_KEY);
34}
35
37{
38 return get_int_value(MAX_COUNT_KEY);
39}
TooBigCountIssue(const ers::Context &context, ers::severity_t severity, size_t count, size_t maxcount)
Source context for Issue.
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
enum ers::_severity_t severity_t