BOSS
7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
NoSuchChildIssue.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file eformat/NoSuchChildIssue.h
5
* @author <a href="mailto:
[email protected]
">Andre DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* @brief Exception thrown when the position of a child doesn't exist in the
11
* current fragment.
12
*/
13
14
#ifndef EFORMAT_NOSUCHCHILDISSUE_H
15
#define EFORMAT_NOSUCHCHILDISSUE_H
16
17
#include "
eformat/Issue.h
"
18
19
namespace
eformat
{
20
21
/**
22
* This exception is supposed to be thrown when the user is looking for a
23
* child fragment that doesn't exist.
24
*/
25
class
NoSuchChildIssue
:
public
eformat::Issue
{
26
27
public
:
//interface
28
29
/**
30
* Builds a new no-such-child exception
31
*
32
* @param context The Error Reporting System context to be used to identify
33
* the spot where this issue was created
34
* @param severity The severity of this issue
35
* @param req The request child
36
* @param total The total child number available
37
*/
38
NoSuchChildIssue
(
const
ers::Context
& context,
ers::severity_t
severity
,
39
size_t
req,
size_t
total
);
40
41
/**
42
* Destructor virtualisation
43
*/
44
virtual
~NoSuchChildIssue
() throw() {}
45
46
/**
47
* Access the number of the requested child
48
*/
49
size_t
requested
(
void
)
const
;
50
51
/**
52
* Access the number of children said to exist in the current fragment
53
*/
54
size_t
total
(
void
)
const
;
55
56
};
57
58
}
59
60
/**
61
* Simplifies the use of this Issue
62
*
63
* @param req The request child
64
* @param total The total child number available
65
*/
66
#define EFORMAT_NO_SUCH_CHILD(req, total) \
67
eformat::NoSuchChildIssue(ERS_HERE, ers::error, req, total)
68
69
#endif
/* EFORMAT_NOSUCHCHILDISSUE_H */
eformat::Issue
Definition
eformat/eformat-00-01-00/eformat/Issue.h:23
eformat::NoSuchChildIssue
Definition
NoSuchChildIssue.h:25
eformat::NoSuchChildIssue::requested
size_t requested(void) const
Definition
NoSuchChildIssue.cxx:31
eformat::NoSuchChildIssue::NoSuchChildIssue
NoSuchChildIssue(const ers::Context &context, ers::severity_t severity, size_t req, size_t total)
Definition
NoSuchChildIssue.cxx:21
eformat::NoSuchChildIssue::total
size_t total(void) const
Definition
NoSuchChildIssue.cxx:36
eformat::NoSuchChildIssue::~NoSuchChildIssue
virtual ~NoSuchChildIssue()
Definition
NoSuchChildIssue.h:44
ers::Context
Source context for Issue.
Definition
Context.h:42
ers::Issue::severity
severity_t severity() const
severity_t of the issue
Definition
ers/ers-00-00-03/src/Issue.cxx:602
Issue.h
Defines the base eformat Issue.
eformat
Definition
BadVersionIssue.h:20
ers::severity_t
enum ers::_severity_t severity_t
7.1.2
Event
eformat
eformat-00-01-00
eformat
NoSuchChildIssue.h
Generated by
1.12.0