BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
UnboundSourceIdentifierIssue.cxx
Go to the documentation of this file.
1//Dear emacs, this is -*- c++ -*-
2
3/**
4 * @file src/old/UnboundSourceIdentifierIssue.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 functionality described in the header.
11 */
12
13#include "eformat/old/UnboundSourceIdentifierIssue.h"
14
15/**
16 * Strings to identify keys in ERS
17 */
18static const char* SOURCE_ID_KEY = "Unbound source identifier";
19static const char* CONTEXT_KEY = "Context";
20
22(const ers::Context& context,
23 ers::severity_t severity,
24 uint32_t source_id,
25 const std::string& my_context)
26 : eformat::Issue(context,severity)
27{
28 set_value(SOURCE_ID_KEY, source_id);
29 set_value(CONTEXT_KEY, my_context);
30 finish_setup("Unbound (old) source identifier detected");
31}
32
34{
35 return get_int_value(SOURCE_ID_KEY);
36}
37
39{
40 return get_value(CONTEXT_KEY);
41}
UnboundSourceIdentifierIssue(const ers::Context &context, ers::severity_t severity, uint32_t source_id, const std::string &my_context)
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