BOSS
6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
ParseIssue.cxx
Go to the documentation of this file.
1
/*
2
* ParseIssue.cxx
3
* ers
4
*
5
* Created by Matthias Wiesmann on 17.12.04.
6
* Copyright 2004 CERN. All rights reserved.
7
*
8
*/
9
10
#include "
ers/ParseIssue.h
"
11
12
const
char
*
const
ers::ParseIssue::OFFENDING_LINE_KEY
=
"PARSE_ISSUE_TEXT"
;
13
const
char
*
const
ers::ParseIssue::OFFENDING_LINE_NUMBER_KEY
=
"PARSE_ISSUE_LINE_NUMBER"
;
14
const
char
*
const
ers::ParseIssue::PARSE_ISSUE_CLASS_NAME
=
"ers::ParseIssue"
;
15
16
namespace
{
17
ers::Issue
*create_parse_issue() {
return
new
ers::ParseIssue
(); }
18
bool
registered =
ers::IssueFactory::instance
()->
register_issue
(
ers::ParseIssue::PARSE_ISSUE_CLASS_NAME
,create_parse_issue) ;
19
}
20
21
ers::ParseIssue::ParseIssue
() :
ers
::
Issue
() {}
22
23
ers::ParseIssue::ParseIssue
(
const
Context
&c,
severity_t
s
) :
ers
::
Issue
(c,
s
) {}
24
25
ers::ParseIssue::ParseIssue
(
const
Context
&c,
severity_t
s
,
const
std::string &msg ) :
ers
::
Issue
(c,
s
) {
26
finish_setup
(msg);
27
}
// ParseIssue
28
29
ers::ParseIssue::ParseIssue
(
const
Context
&c,
severity_t
s
,
const
std::string &msg,
const
std::string &line ) :
ers
::
Issue
(c,
s
) {
30
this->
offending_line
(line);
31
finish_setup
(msg);
32
}
// ParseIssue
33
34
const
char
*
ers::ParseIssue::get_class_name
()
const
throw() {
35
return
PARSE_ISSUE_CLASS_NAME ;
36
}
// get_class_name
37
38
void
ers::ParseIssue::offending_line
(
const
std::string &line) {
39
m_value_table[OFFENDING_LINE_KEY] = line ;
40
}
// offending_line
41
42
void
ers::ParseIssue::offending_line_number
(
int
line) {
43
set_value(OFFENDING_LINE_NUMBER_KEY,line);
44
}
// offending_line_number
45
46
void
ers::ParseIssue::file_name
(std::string filename) {
47
m_value_table[
"ParseFileName"
] = filename ;
48
}
// file_name
49
50
51
s
XmlRpcServer s
Definition:
HelloServer.cpp:11
ParseIssue.h
ers::Context
Source context for Issue.
Definition:
Context.h:42
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-02/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-02/src/Issue.cxx:568
ers::ParseIssue
Data parsing error.
Definition:
ParseIssue.h:23
ers::ParseIssue::PARSE_ISSUE_CLASS_NAME
static const char *const PARSE_ISSUE_CLASS_NAME
Definition:
ParseIssue.h:29
ers::ParseIssue::file_name
void file_name(std::string filename)
Definition:
ParseIssue.cxx:46
ers::ParseIssue::ParseIssue
ParseIssue()
Definition:
ParseIssue.cxx:21
ers::ParseIssue::offending_line
void offending_line(const std::string &line)
Definition:
ParseIssue.cxx:38
ers::ParseIssue::offending_line_number
void offending_line_number(int line)
Definition:
ParseIssue.cxx:42
ers::ParseIssue::get_class_name
virtual const char * get_class_name() const
Get key for class (used for serialisation)
Definition:
ParseIssue.cxx:34
ers::ParseIssue::OFFENDING_LINE_KEY
static const char *const OFFENDING_LINE_KEY
Definition:
ParseIssue.h:27
ers::ParseIssue::OFFENDING_LINE_NUMBER_KEY
static const char *const OFFENDING_LINE_NUMBER_KEY
Definition:
ParseIssue.h:28
ers
Definition:
Event/ers/ers-00-00-02/ers/Assertion.h:20
ers::severity_t
enum ers::_severity_t severity_t
source
Event
ers
ers-00-00-02
src
ParseIssue.cxx
Generated by
1.9.6