BOSS 7.0.5
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
12const char * const ers::ParseIssue::OFFENDING_LINE_KEY = "PARSE_ISSUE_TEXT" ;
13const char * const ers::ParseIssue::OFFENDING_LINE_NUMBER_KEY = "PARSE_ISSUE_LINE_NUMBER" ;
14const char * const ers::ParseIssue::PARSE_ISSUE_CLASS_NAME = "ers::ParseIssue" ;
15
16namespace {
17 ers::Issue *create_parse_issue() { return new ers::ParseIssue(); }
19}
20
22
24
25ers::ParseIssue::ParseIssue(const Context &c, severity_t s,const std::string &msg ) : ers::Issue(c,s) {
26 finish_setup(msg);
27} // ParseIssue
28
29ers::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
34const char* ers::ParseIssue::get_class_name() const throw() {
35 return PARSE_ISSUE_CLASS_NAME ;
36} // get_class_name
37
38void ers::ParseIssue::offending_line(const std::string &line) {
39 m_value_table[OFFENDING_LINE_KEY] = line ;
40}// offending_line
41
43 set_value(OFFENDING_LINE_NUMBER_KEY,line);
44} // offending_line_number
45
46void ers::ParseIssue::file_name(std::string filename) {
47 m_value_table["ParseFileName"] = filename ;
48} // file_name
49
50
51
XmlRpcServer s
Definition: HelloServer.cpp:11
Source context for Issue.
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
static const char *const OFFENDING_LINE_NUMBER_KEY
static const char *const OFFENDING_LINE_KEY
void file_name(std::string filename)
Definition: ParseIssue.cxx:46
void offending_line(const std::string &line)
Definition: ParseIssue.cxx:38
void offending_line_number(int line)
Definition: ParseIssue.cxx:42
virtual const char * get_class_name() const
Get key for class (used for serialisation)
Definition: ParseIssue.cxx:34
static const char *const PARSE_ISSUE_CLASS_NAME
enum ers::_severity_t severity_t