BOSS
7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
WrongSizeIssue.cxx
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file WrongSizeIssue.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 size-check issue
11
*/
12
13
#include "
eformat/WrongSizeIssue.h
"
14
15
/**
16
* Strings to identify keys in ERS
17
*/
18
static
const
char
* SIZE_KEY =
"The informed (wrong) size value"
;
19
20
eformat::WrongSizeIssue::WrongSizeIssue
(
const
ers::Context
& context,
21
ers::severity_t
severity,
22
uint32_t size)
23
:
eformat
::
Issue
(context,severity)
24
{
25
set_value
(SIZE_KEY,
size
);
26
finish_setup
(
"Informed fragment size is wrong"
);
27
}
28
29
uint32_t
eformat::WrongSizeIssue::size
()
const
30
{
31
return
get_int_value(SIZE_KEY);
32
}
33
WrongSizeIssue.h
When size checks do not match, this exception must be thrown.
eformat::Issue
Definition:
eformat/eformat-00-00-04/eformat/Issue.h:23
eformat::WrongSizeIssue::size
uint32_t size() const
Definition:
WrongSizeIssue.cxx:29
eformat::WrongSizeIssue::WrongSizeIssue
WrongSizeIssue(const ers::Context &context, ers::severity_t severity, uint32_t size)
Definition:
WrongSizeIssue.cxx:20
ers::Context
Source context for Issue.
Definition:
Context.h:42
ers::Issue::set_value
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
Definition:
ers/ers-00-00-03/src/Issue.cxx:371
ers::Issue::finish_setup
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
Definition:
ers/ers-00-00-03/src/Issue.cxx:568
eformat
Definition:
BadVersionIssue.h:20
ers::severity_t
enum ers::_severity_t severity_t
source
Event
eformat
eformat-00-00-04
src
WrongSizeIssue.cxx
Generated by
1.9.6