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

Go to the documentation of this file.
00001 /*
00002  *  NotImplemented.cxx
00003  *  ers
00004  *
00005  *  Created by Matthias Wiesmann on 08.12.04.
00006  *  Copyright 2004 CERN. All rights reserved.
00007  *
00008  */
00009 
00010 #include "ers/NotImplemented.h"
00011 #include <iostream>
00012 #include <sstream>
00013 
00014 const char * const ers::NotImplemented::CLASS_NAME = "ers::NotImplemented" ; 
00015 
00016 namespace {
00017     ers::Issue *create_issue() { return new ers::NotImplemented(); } 
00018     bool registered = ers::IssueFactory::instance()->register_issue(ers::NotImplemented::CLASS_NAME,create_issue) ;
00019 } 
00020 
00021 ers::NotImplemented::NotImplemented() : Assertion() {} 
00022 
00023 ers::NotImplemented::NotImplemented(const Context &c, severity_t s) : Assertion(c,s) {
00024     this->setup(c.function().c_str(),"",true);  
00025 } // NotImplemented
00026  
00035 std::string ers::NotImplemented::build_message(const char* condition_text, const std::string &msg, bool constant_expression) throw() {
00036     std::ostringstream message_stream ;
00037     (void) constant_expression ; 
00038     message_stream << "Function in " << condition_text ;
00039     if (! msg.empty()) {
00040         message_stream << "(" << msg << ")" ; 
00041     }
00042     message_stream << " is not implemented" ;
00043     return message_stream.str(); 
00044 } // build_message
00045 
00046 
00047 const char* ers::NotImplemented::get_class_name() const throw () { return CLASS_NAME ;} 
00048 
00049 

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