BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
SizeCheckIssue.cxx
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/**
4 * @file SizeCheckIssue.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 size-check issue
11 */
12
13#include "eformat/SizeCheckIssue.h"
14
15/**
16 * Strings to identify keys in ERS
17 */
18static const char* ACTUAL_SIZE_KEY = "The true size value (in words)";
19static const char* INFORMED_SIZE_KEY = "The value at the fragment (in words)";
20
22 uint32_t actual, uint32_t informed )
23 : eformat::Issue( context, severity ) {
24 set_value( ACTUAL_SIZE_KEY, actual );
25 set_value( INFORMED_SIZE_KEY, informed );
26 finish_setup( "Informed fragment (or header) size is wrong" );
27}
28
29uint32_t eformat::SizeCheckIssue::actual() const { return get_int_value( ACTUAL_SIZE_KEY ); }
30
32 return get_int_value( INFORMED_SIZE_KEY );
33}
Issue(const ers::Context &context, ers::severity_t severity)
SizeCheckIssue(const ers::Context &context, ers::severity_t severity, uint32_t actual, uint32_t informed)
uint32_t informed(void) const
Source context for Issue.
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
severity_t severity() const
severity_t of the issue
int get_int_value(const std::string &key, int def=0) const
Get a value of the table as an integer.
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
enum ers::_severity_t severity_t