BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
WrongMarkerIssue.cxx
Go to the documentation of this file.
1//Dear emacs, this is -*- c++ -*-
2
3/**
4 * @file WrongMarkerIssue.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 wrong-marker exception class
11 */
12
14
15/**
16 * Strings to identify keys in ERS
17 */
18static const char* CURRENT_MARKER_KEY = "Current header marker";
19static const char* EXPECTED_MARKER_KEY = "Expected header marker";
20
22 ers::severity_t severity,
23 uint32_t current,
24 uint32_t expected)
25
26 : eformat::Issue(context,severity)
27{
28 set_value(CURRENT_MARKER_KEY, current);
29 set_value(EXPECTED_MARKER_KEY, expected);
30 finish_setup("Unexpected header marker found on stream");
31}
32
34{
35 return get_int_value(CURRENT_MARKER_KEY);
36}
37
39{
40 return get_int_value(EXPECTED_MARKER_KEY);
41}
Defines the wrong-marker exception, to be used when the wrong marker is found on the event stream.
WrongMarkerIssue(const ers::Context &context, ers::severity_t severity, uint32_t current, uint32_t expected)
Source context for Issue.
Definition: Context.h:42
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