AbstractErrorCode abstract base class for L1Calo error codes.
More...
#include <AbstractErrorCode.h>
AbstractErrorCode abstract base class for L1Calo error codes.
- Author
- Damien Prieur damie.nosp@m.n.pr.nosp@m.ieur@.nosp@m.cern.nosp@m..ch
Definition at line 16 of file AbstractErrorCode.h.
◆ ~AbstractErrorCode()
| virtual AbstractErrorCode::~AbstractErrorCode |
( |
| ) |
|
|
inlinevirtual |
◆ AbstractErrorCode()
| AbstractErrorCode::AbstractErrorCode |
( |
unsigned int | errorCode | ) |
|
|
inlineprotected |
◆ bitIsSet()
| bool AbstractErrorCode::bitIsSet |
( |
unsigned int | number | ) |
const |
|
protected |
Definition at line 7 of file AbstractErrorCode.cxx.
7 {
8 unsigned int correspondingNumber = (
unsigned int) (1<<
number);
9
10 bool isSet( (
m_errorCode & correspondingNumber) > 0);
11
12 return isSet;
13}
std::string number(const double &d, const std::string &s)
◆ errorCode() [1/2]
| unsigned int AbstractErrorCode::errorCode |
( |
| ) |
const |
|
inline |
◆ errorCode() [2/2]
| void AbstractErrorCode::errorCode |
( |
unsigned int | code | ) |
|
|
inlineprotected |
◆ setBit()
| void AbstractErrorCode::setBit |
( |
unsigned int | number, |
|
|
bool | value ) |
|
protected |
Definition at line 15 of file AbstractErrorCode.cxx.
15 {
17 unsigned int correspondingNumber = (
unsigned int) (1<<
number);
18
19
20 if ((value) && (!isSet))
m_errorCode |= correspondingNumber;
21
22 if ((!value) && (isSet))
m_errorCode &= ~correspondingNumber;
23}
bool bitIsSet(unsigned int number) const
◆ m_errorCode
| unsigned int AbstractErrorCode::m_errorCode |
|
private |
The documentation for this class was generated from the following files: