BOSS
7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
RangeIssue.h
Go to the documentation of this file.
1
/*
2
* RangeIssue.h
3
* ers
4
*
5
* Created by Matthias Wiesmann on 15.02.05.
6
* Copyright 2005 CERN. All rights reserved.
7
*
8
*/
9
10
#ifndef ERS_RANGE_ISSUE
11
#define ERS_RANGE_ISSUE
12
13
#include "
ers/InvalidReferenceIssue.h
"
14
namespace
ers
{
15
class
RangeIssue
:
public
InvalidReferenceIssue
{
16
protected
:
17
RangeIssue
(
const
ers::Context
&c,
ers::severity_t
s
) ;
18
public
:
19
static
void
set_range
(
ers::Issue
&issue, int64_t index, int64_t min_index, int64_t max_index,
const
char
* entity_name=0) ;
20
static
void
check_range
(
const
ers::Context
&c, int64_t
min
, int64_t value, int64_t
max
,
const
char
* entity_name=0);
21
static
const
char
*
const
CLASS_NAME
;
22
static
const
char
*
const
INDEX_REFERENCE_TYPE
;
23
static
const
char
*
const
RANGE_MIN_KEY
;
24
static
const
char
*
const
RANGE_MAX_KEY
;
25
RangeIssue
() ;
26
RangeIssue
(
const
ers::Context
&c,
ers::severity_t
s
, int64_t min_index, int64_t index, int64_t max_index,
const
char
* entity_name=0) ;
27
virtual
const
char
*
get_class_name
()
const
throw() ;
28
29
} ;
// RangeIssue
30
31
}
// ers
32
33
#if (!defined(N_ERS_ASSERT))
34
#define ERS_RANGE_CHECK(min,value,max) ers::RangeIssue::check_range(ERS_HERE,min,value,max,#value)
35
#else
36
#define ERS_RANGE_CHECK(min,value,max)
37
#endif
38
#endif
39
min
#define min(a, b)
Definition
Eepipi/Eepipi-00-01-00/src/ee2eepp/basesv5.1/f2c.h:153
max
#define max(a, b)
Definition
Eepipi/Eepipi-00-01-00/src/ee2eepp/basesv5.1/f2c.h:154
s
XmlRpcServer s
Definition
HelloServer.cpp:11
InvalidReferenceIssue.h
ers::Context
Source context for Issue.
Definition
Context.h:42
ers::InvalidReferenceIssue
Invalid pointer issue.
Definition
InvalidReferenceIssue.h:26
ers::Issue
Root Issue class.
Definition
ers/ers-00-00-03/ers/Issue.h:40
ers::RangeIssue
Definition
RangeIssue.h:15
ers::RangeIssue::INDEX_REFERENCE_TYPE
static const char *const INDEX_REFERENCE_TYPE
Definition
RangeIssue.h:22
ers::RangeIssue::RANGE_MIN_KEY
static const char *const RANGE_MIN_KEY
Definition
RangeIssue.h:23
ers::RangeIssue::set_range
static void set_range(ers::Issue &issue, int64_t index, int64_t min_index, int64_t max_index, const char *entity_name=0)
Definition
RangeIssue.cxx:30
ers::RangeIssue::CLASS_NAME
static const char *const CLASS_NAME
Definition
RangeIssue.h:21
ers::RangeIssue::RANGE_MAX_KEY
static const char *const RANGE_MAX_KEY
Definition
RangeIssue.h:24
ers::RangeIssue::RangeIssue
RangeIssue()
Definition
RangeIssue.cxx:42
ers::RangeIssue::get_class_name
virtual const char * get_class_name() const
Get key for class (used for serialisation)
Definition
RangeIssue.cxx:59
ers::RangeIssue::check_range
static void check_range(const ers::Context &c, int64_t min, int64_t value, int64_t max, const char *entity_name=0)
Definition
RangeIssue.cxx:25
ers
Definition
Event/ers/ers-00-00-03/ers/Assertion.h:20
ers::severity_t
enum ers::_severity_t severity_t
7.1.2
Event
ers
ers-00-00-03
ers
RangeIssue.h
Generated by
1.12.0