BOSS 8.0.0
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 ers::ParseIssue::PARSE_ISSUE_CLASS_NAME, create_parse_issue );
20} // namespace
21
23
25
26ers::ParseIssue::ParseIssue( const Context& c, severity_t s, const std::string& msg )
27 : ers::Issue( c, s ) {
28 finish_setup( msg );
29} // ParseIssue
30
31ers::ParseIssue::ParseIssue( const Context& c, severity_t s, const std::string& msg,
32 const std::string& line )
33 : ers::Issue( c, s ) {
34 this->offending_line( line );
35 finish_setup( msg );
36} // ParseIssue
37
38const char* ers::ParseIssue::get_class_name() const throw() {
40} // get_class_name
41
42void ers::ParseIssue::offending_line( const std::string& line ) {
44} // offending_line
45
48} // offending_line_number
49
50void ers::ParseIssue::file_name( std::string filename ) {
51 m_value_table["ParseFileName"] = filename;
52} // file_name
XmlRpcServer s
Source context for Issue.
bool register_issue(const std::string &name, CreateIssueCallback creator)
register an issue factory
static IssueFactory * instance()
method to access singleton
Root Issue class.
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
Issue(const Context &context, severity_t s)
Constructor for subclasses.
string_map_type m_value_table
Optional properties.
static const char *const OFFENDING_LINE_NUMBER_KEY
static const char *const OFFENDING_LINE_KEY
void file_name(std::string filename)
void offending_line(const std::string &line)
void offending_line_number(int line)
virtual const char * get_class_name() const
Get key for class (used for serialisation).
static const char *const PARSE_ISSUE_CLASS_NAME
enum ers::_severity_t severity_t