BOSS
7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
WrongSizeIssue.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file eformat/WrongSizeIssue.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 When size checks do not match, this exception must be thrown.
11
*/
12
13
#ifndef EFORMAT_WRONGSIZEISSUE_H
14
#define EFORMAT_WRONGSIZEISSUE_H
15
16
#include "
eformat/Issue.h
"
17
#include <stdint.h>
18
19
namespace
eformat
{
20
21
/**
22
* This exception is supposed to be thrown when the user is looking for a
23
* region of memory not covered inside the buffer area.
24
*/
25
class
WrongSizeIssue
:
public
eformat::Issue
{
26
27
public
:
//interface
28
29
/**
30
* Builds a new wrong-size 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 size The wrong size informed
36
*/
37
WrongSizeIssue
(
const
ers::Context
& context,
ers::severity_t
severity
,
38
uint32_t
size
);
39
40
41
/**
42
* Destructor virtualisation
43
*/
44
virtual
~WrongSizeIssue
() throw() {}
45
46
/**
47
* Access the actual value of the current fragment
48
*/
49
uint32_t
size
()
const
;
50
51
};
52
53
}
54
55
/**
56
* Simplifies the use of this Issue
57
*
58
* @param size The wrong size informed
59
*/
60
#define EFORMAT_WRONG_SIZE(size) \
61
eformat::WrongSizeIssue(ERS_HERE, ers::error, size)
62
63
#endif
/* EFORMAT_WRONGSIZEISSUE_H */
eformat::Issue
Definition:
eformat/eformat-00-00-04/eformat/Issue.h:23
eformat::WrongSizeIssue
Definition:
WrongSizeIssue.h:25
eformat::WrongSizeIssue::size
uint32_t size() const
Definition:
WrongSizeIssue.cxx:29
eformat::WrongSizeIssue::~WrongSizeIssue
virtual ~WrongSizeIssue()
Definition:
WrongSizeIssue.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
source
Event
eformat
eformat-00-00-04
eformat
WrongSizeIssue.h
Generated by
1.9.6