/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/ers/ers-00-00-03/src/EntityNotFoundIssue.cxx

Go to the documentation of this file.
00001 /*
00002  *  EntityNotFoundIssue.cxx
00003  *  Test
00004  *
00005  *  Created by Matthias Wiesmann on 09.02.05.
00006  *  Copyright 2005 CERN. All rights reserved.
00007  *
00008  */
00009 
00010 #include "ers/EntityNotFoundIssue.h"
00011 
00012 #include <sstream>
00013 
00014 const char* const ers::EntityNotFoundIssue::CLASS_NAME = "ers::EntityNotFoundIssue" ; 
00015 const char* const ers::EntityNotFoundIssue::ENTITY_NAME_KEY = "ENTITY_NAME" ; 
00016 const char* const ers::EntityNotFoundIssue::ENTITY_TYPE_KEY = "ENTITY_TYPE" ; 
00017 const char* const ers::EntityNotFoundIssue::ENTITY_CONTEXT_KEY = "ENTITY_KEY" ;
00018 
00019 namespace {
00020     ers::Issue *create_issue() { return new ers::EntityNotFoundIssue(); } 
00021     bool registered = ers::IssueFactory::instance()->register_issue(ers::EntityNotFoundIssue::CLASS_NAME,create_issue) ;
00022 } 
00023 
00024 const char * ers::EntityNotFoundIssue::get_class_name() const throw() { return CLASS_NAME ; } 
00025 
00027 ers::EntityNotFoundIssue::EntityNotFoundIssue() : ers::Issue() {} 
00028 
00030 ers::EntityNotFoundIssue::EntityNotFoundIssue(const ers::Context &c, ers::severity_t s) : ers::Issue(c,s) {}
00031 
00041 ers::EntityNotFoundIssue::EntityNotFoundIssue(const ers::Context &c, ers::severity_t s, const std::string &entity_name, const std::string &entity_type, const std::string &entity_context) : Issue(c,s) {
00042     set_value(ENTITY_NAME_KEY,entity_name);
00043     set_value(ENTITY_TYPE_KEY,entity_type);
00044     set_value(ENTITY_CONTEXT_KEY,entity_context) ; 
00045     std::ostringstream stream ; 
00046     stream << "Cannot find " << entity_type << "\"" << entity_name << "\" in " << entity_context ;
00047     finish_setup(stream.str()); 
00048 } // EntityNotFoundIssue

Generated on Tue Nov 29 22:58:27 2016 for BOSS_7.0.2 by  doxygen 1.4.7