BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
IssueFactoryIssue.cxx
Go to the documentation of this file.
1/*
2 * IssueFactoryIssue.cxx
3 * ers
4 *
5 * Created by Matthias Wiesmann on 04.01.05.
6 * Copyright 2005 CERN. All rights reserved.
7 *
8 */
9
11#include <sstream>
12
13
14const char* const ers::IssueFactoryIssue::CLASS_NAME = "ers::IssueFactoryIssue" ;
15
16namespace {
17 ers::Issue *create_issue() { return new ers::IssueFactoryIssue(); }
19}
20
21/** \overload
22 */
23
25
26/** \overload
27 */
28
30
31/** Constructs an Issue factory Issue
32 * \param context the context of the issue, use \c MRS_HERE
33 * \param s the severity_t of the issue
34 * \param name the name of the class requested to the factory
35 * \param msg the error message associated with the issue
36 */
37
38
39ers::IssueFactoryIssue::IssueFactoryIssue(const Context &context, severity_t s, const std::string&name, const std::string &msg) : Issue(context,s) {
40 std::ostringstream m ;
41 m << "Unable to build Issue for name '" << name << "': " << msg ;
42 finish_setup(m.str());
43} // IssueFactoryIssue
44
45
46const char *ers::IssueFactoryIssue::get_class_name() const throw() { return CLASS_NAME ; }
47
48
XmlRpcServer s
Source context for Issue.
Definition Context.h:42
Issue in the Issue factory mechanism.
static const char *const CLASS_NAME
const char * get_class_name() const
Get key for class (used for serialisation)
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
Root Issue class.
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
enum ers::_severity_t severity_t