BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/include/ers/NotImplemented.h
Go to the documentation of this file.
1/*
2 * NotImplemented.h
3 * ers
4 *
5 * Created by Matthias Wiesmann on 08.12.04.
6 * Copyright 2004 CERN. All rights reserved.
7 *
8 */
9
10#ifndef ERS_NOT_IMPLEMENTED
11
12# include "ers/Assertion.h"
13
14namespace ers {
15
16 /** This special 'assertion' is used to mark a non implemented function or method.
17 * Typically, this is marked using the NOT_IMPLEMENTED() macro.
18 * \author Matthias Wiesmann
19 *  \version 1.0
20 * \brief Macro to mark unimplemented code.
21 */
22
23 class NotImplemented : public Assertion {
24
25 protected:
26 virtual std::string build_message( const char* condition_text, const std::string& message,
27 bool constant_expression = false ) throw();
28
29 public:
30 static const char* const CLASS_NAME;
32 NotImplemented( const Context& context, severity_t s );
33 virtual const char* get_class_name() const throw();
34 }; // Precondition
35} // namespace ers
36
37# define ERS_NOT_IMPLEMENTED() throw ers::NotImplemented( ERS_HERE, ers::error )
38# define ERS_NOT_IMPLEMENTED_FATAL() throw ers::NotImplemented( ERS_HERE, ers::ers_fatal )
39
40#endif
XmlRpcServer s
Assertion(const Context &context, severity_t s)
Source context for Issue.
const std::string & message() const
Message.
virtual std::string build_message(const char *condition_text, const std::string &message, bool constant_expression=false)
virtual const char * get_class_name() const
Get key for class (used for serialisation).
enum ers::_severity_t severity_t