BOSS
7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
WrongMarkerIssue.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file eformat/WrongMarkerIssue.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 Defines the wrong-marker exception, to be used when the wrong marker
11
* is found on the event stream.
12
*/
13
14
#ifndef EFORMAT_WRONGMARKERISSUE_H
15
#define EFORMAT_WRONGMARKERISSUE_H
16
17
#include "
eformat/Issue.h
"
18
#include <stdint.h>
19
20
namespace
eformat
{
21
22
/**
23
* This exception is supposed to be thrown when version problems are found
24
*/
25
class
WrongMarkerIssue
:
public
eformat::Issue
{
26
27
public
:
//interface
28
29
/**
30
* Builds a new size-check 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 current The current marker on the stream
36
* @param expected The expected marker on the stream
37
*/
38
WrongMarkerIssue
(
const
ers::Context
& context,
ers::severity_t
severity
,
39
uint32_t
current
, uint32_t
expected
);
40
41
/**
42
* Destructor virtualisation
43
*/
44
virtual
~WrongMarkerIssue
() throw() {}
45
46
/**
47
* Access the current object marker
48
*/
49
uint32_t
current
()
const
;
50
51
/**
52
* Access the expected object marker
53
*/
54
uint32_t
expected
()
const
;
55
56
};
57
58
}
59
60
/**
61
* Simplifies the use of this Issue
62
*
63
* @param current The current marker on the stream
64
* @param expected The expected marker on the stream
65
*/
66
#define EFORMAT_WRONG_MARKER(current, expected) \
67
eformat::WrongMarkerIssue(ERS_HERE, ers::error, current, expected)
68
69
#endif
/* EFORMAT_WRONGMARKERISSUE_H */
eformat::Issue
Definition:
eformat/eformat-00-00-04/eformat/Issue.h:23
eformat::WrongMarkerIssue
Definition:
WrongMarkerIssue.h:25
eformat::WrongMarkerIssue::expected
uint32_t expected() const
Definition:
WrongMarkerIssue.cxx:38
eformat::WrongMarkerIssue::current
uint32_t current() const
Definition:
WrongMarkerIssue.cxx:33
eformat::WrongMarkerIssue::~WrongMarkerIssue
virtual ~WrongMarkerIssue()
Definition:
WrongMarkerIssue.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
WrongMarkerIssue.h
Generated by
1.9.6