BOSS
7.0.9
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
NotAlignedIssue.cxx
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file NotAlignedIssue.cxx
5
* @author <a href="mailto:Andre.dos.Anjos@cern.ch">Andre DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* Implements the not-aligned exception.
11
*/
12
13
#include <sstream>
14
#include <string>
15
#include "
eformat/NotAlignedIssue.h
"
16
17
/**
18
* Strings to identify keys in ERS
19
*/
20
static
const
char
* BASE_ADDRESS_KEY =
"Base address"
;
21
static
const
char
* SIZE_KEY =
"Total block size"
;
22
23
eformat::NotAlignedIssue::NotAlignedIssue
(
const
ers::Context
& context,
24
ers::severity_t
severity,
25
const
void
* base,
size_t
size)
26
:
eformat
::
Issue
(context,severity)
27
{
28
std::ostringstream oss;
29
oss <<
base
;
30
set_value
(BASE_ADDRESS_KEY, oss.str());
31
set_value
(SIZE_KEY,
size
);
32
finish_setup
(
"Misaligned data block"
);
33
}
34
35
const
void
*
eformat::NotAlignedIssue::base
()
const
36
{
37
std::istringstream iss;
38
iss.str(get_value(BASE_ADDRESS_KEY));
39
size_t
x
;
40
iss >>
x
;
41
return
(
void
*)
x
;
//nasty cast
42
}
43
44
size_t
eformat::NotAlignedIssue::size
()
const
45
{
46
return
get_int_value(SIZE_KEY);
47
}
x
Double_t x[10]
Definition:
DataBase/tau_mode.c:57
NotAlignedIssue.h
Describes the exception where some chunk of memory is not 32-bit aligned.
eformat::Issue
Definition:
eformat/eformat-00-00-04/eformat/Issue.h:23
eformat::NotAlignedIssue::NotAlignedIssue
NotAlignedIssue(const ers::Context &context, ers::severity_t severity, const void *base, size_t size)
Definition:
NotAlignedIssue.cxx:23
eformat::NotAlignedIssue::base
const void * base() const
Definition:
NotAlignedIssue.cxx:35
eformat::NotAlignedIssue::size
size_t size() const
Definition:
NotAlignedIssue.cxx:44
ers::Context
Source context for Issue.
Definition:
Context.h:42
ers::Issue::set_value
void set_value(const std::string &key, uint8_t value)
Sets a value 8 bit unsigned.
Definition:
ers/ers-00-00-03/src/Issue.cxx:371
ers::Issue::finish_setup
void finish_setup(const std::string &message)
Finishes the setup of the Issue.
Definition:
ers/ers-00-00-03/src/Issue.cxx:568
eformat
Definition:
BadVersionIssue.h:20
ers::severity_t
enum ers::_severity_t severity_t
source
Event
eformat
eformat-00-00-04
src
NotAlignedIssue.cxx
Generated by
1.9.6