BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ers/include/ers/DefaultIssue.h
Go to the documentation of this file.
1/*
2 * DefaultIssue.h
3 * Test
4 *
5 * Created by Matthias Wiesmann on 14.02.05.
6 * Copyright 2005 CERN. All rights reserved.
7 *
8 */
9
10#ifndef ERS_DEFAULT_ISSUE
11#define ERS_DEFAULT_ISSUE
12
13#include "ers/Issue.h"
14#include <cstdlib>
15
16namespace ers {
17
18 /** This class acts as a placeholder for issues whose name could
19 * not be resolved at runtime.
20 * Because of this, it does not have the usual constructor
21 * and also does not have an associated class name, instead the
22 * class simply keeps the class name stored in the field \c m_class_name.
23 * \author Matthias Wiesmann
24 * \brief Place holder Issue class
25 * \version 1.0
26 * \note To force the resolution of an issue (i.e try again to cast it to the correct
27 * run-time type), One simply needs to call the \c IssueFactory::build method with the
28 * instance as a parameter.
29 */
30
31 class DefaultIssue : public Issue {
32 protected:
33 public:
34 DefaultIssue( const std::string& name );
35 ~DefaultIssue() throw();
36 virtual const char* get_class_name() const
37 throw(); /**< \brief Get key for class (used for serialisation)*/
38 }; // Issue
39} // namespace ers
40
41#endif
DefaultIssue(const std::string &name)
virtual const char * get_class_name() const
Get key for class (used for serialisation).
Issue(const Context &context, severity_t s)
Constructor for subclasses.