BOSS 8.0.0
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
10#include "ers/IssueFactoryIssue.h"
11#include <sstream>
12
13const char* const ers::IssueFactoryIssue::CLASS_NAME = "ers::IssueFactoryIssue";
14
15namespace {
16 ers::Issue* create_issue() { return new ers::IssueFactoryIssue(); }
19} // namespace
20
21/** \overload
22 */
23
25
26/** \overload
27 */
28
31
32/** Constructs an Issue factory Issue
33 * \param context the context of the issue, use \c MRS_HERE
34 * \param s the severity_t of the issue
35 * \param name the name of the class requested to the factory
36 * \param msg the error message associated with the issue
37 */
38
40 const std::string& name, const std::string& msg )
41 : Issue( context, s ) {
42 std::ostringstream m;
43 m << "Unable to build Issue for name '" << name << "': " << msg;
44 finish_setup( m.str() );
45} // IssueFactoryIssue
46
47const char* ers::IssueFactoryIssue::get_class_name() const throw() { return CLASS_NAME; }
XmlRpcServer s
Source context for Issue.
Issue in the Issue factory mechanism.
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.
Issue(const Context &context, severity_t s)
Constructor for subclasses.
enum ers::_severity_t severity_t