BOSS
7.1.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
13
14
const
char
*
const
ers::IssueFactoryIssue::CLASS_NAME
=
"ers::IssueFactoryIssue"
;
15
16
namespace
{
17
ers::Issue
*create_issue() {
return
new
ers::IssueFactoryIssue
(); }
18
bool
registered =
ers::IssueFactory::instance
()->
register_issue
(
ers::IssueFactoryIssue::CLASS_NAME
,create_issue) ;
19
}
20
21
/** \overload
22
*/
23
24
ers::IssueFactoryIssue::IssueFactoryIssue
() :
Issue
() {}
25
26
/** \overload
27
*/
28
29
ers::IssueFactoryIssue::IssueFactoryIssue
(
const
Context
&context,
severity_t
s
):
Issue
(context,
s
) {}
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
39
ers::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
46
const
char
*
ers::IssueFactoryIssue::get_class_name
()
const
throw() {
return
CLASS_NAME ; }
47
48
s
XmlRpcServer s
Definition:
HelloServer.cpp:11
IssueFactoryIssue.h
ers::Context
Source context for Issue.
Definition:
Context.h:42
ers::IssueFactoryIssue
Issue in the Issue factory mechanism.
Definition:
IssueFactoryIssue.h:24
ers::IssueFactoryIssue::CLASS_NAME
static const char *const CLASS_NAME
Definition:
IssueFactoryIssue.h:29
ers::IssueFactoryIssue::get_class_name
const char * get_class_name() const
Get key for class (used for serialisation)
Definition:
IssueFactoryIssue.cxx:46
ers::IssueFactoryIssue::IssueFactoryIssue
IssueFactoryIssue()
Definition:
IssueFactoryIssue.cxx:24
ers::IssueFactory::register_issue
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
Definition:
IssueFactory.cxx:47
ers::IssueFactory::instance
static IssueFactory * instance()
method to access singleton
Definition:
IssueFactory.cxx:28
ers::Issue
Root Issue class.
Definition:
ers/ers-00-00-03/ers/Issue.h:40
ers::Issue::finish_setup
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
Definition:
ers/ers-00-00-03/src/Issue.cxx:568
ers::severity_t
enum ers::_severity_t severity_t
source
Event
ers
ers-00-00-03
src
IssueFactoryIssue.cxx
Generated by
1.9.6