|
ATLAS Offline Software
|
#include <AthenaBarCodeImpl.h>
Definition at line 37 of file AthenaBarCodeImpl.h.
◆ ~AthenaBarCodeImpl()
virtual AthenaBarCodeImpl::~AthenaBarCodeImpl |
( |
| ) |
|
|
virtualdefault |
◆ AthenaBarCodeImpl() [1/2]
AthenaBarCodeImpl::AthenaBarCodeImpl |
( |
| ) |
|
◆ AthenaBarCodeImpl() [2/2]
◆ combineWithUUIDHash()
◆ createdInCurrentJob()
bool AthenaBarCodeImpl::createdInCurrentJob |
( |
| ) |
const |
◆ dump()
std::ostream & AthenaBarCodeImpl::dump |
( |
std::ostream & |
out | ) |
const |
◆ getAthenaBarCode()
◆ getBits()
AthenaBarCode_t AthenaBarCodeImpl::getBits |
( |
unsigned short |
startbit, |
|
|
unsigned short |
nbits |
|
) |
| const |
|
protected |
◆ getDefaultHash()
◆ getReserveBits()
◆ getUUIDHash()
◆ getVersion()
◆ hashUUID()
◆ hasSameAthenaBarCode()
◆ hasSameAthenaBarCodeExceptVersion()
◆ hasUUIDHash()
◆ initABC()
void AthenaBarCodeImpl::initABC |
( |
| ) |
const |
|
protected |
Definition at line 24 of file AthenaBarCodeImpl.cxx.
44 catch (
const GaudiException& Exception) {
45 throw std::runtime_error(
46 "AthenaBarCodeImpl::Can not Set Counter Bit, Counter Overflow");
55 catch (
const GaudiException& Exception) {
56 throw std::runtime_error(
57 "AthenaBarCodeImpl::Can not initialize Reserve Bit");
66 catch (
const GaudiException& Exception) {
67 throw std::runtime_error(
68 "AthenaBarCodeImpl::Can not initialize Version Bit");
75 catch (
const GaudiException& Exception) {
76 throw std::runtime_error(
"AthenaBarCodeImpl::Can not set UUID Hash Bits");
◆ makeDefaultHash()
Definition at line 312 of file AthenaBarCodeImpl.cxx.
325 const char* env_uuid =
getenv (
"_ATHENABARCODEIMPL_JOBUUID");
334 if (!
sc.isSuccess() || 0 == p_jobidsvc) {
338 uuid_generate(JobID);
345 PJobID_t pjobid = p_jobidsvc->getJobID();
◆ newVersion()
void AthenaBarCodeImpl::newVersion |
( |
| ) |
|
Definition at line 138 of file AthenaBarCodeImpl.cxx.
150 catch (
const GaudiException& Exception) {
151 throw std::runtime_error(
152 "AthenaBarCodeImpl::newVersion()::Version Overflow");
◆ operator=()
◆ setAthenaBarCode()
◆ setBits()
now id=0000000xx;
Definition at line 260 of file AthenaBarCodeImpl.cxx.
272 MsgStream
msg(
msgsvc,
"AthenaBarCodeImpl");
273 msg << MSG::WARNING <<
"setBits::bit to be set:" <<
id
274 <<
" is larger than limit:" << ((~
tmp2) >> (
TotalBits - nbits))
278 std::cout <<
"setBits::bit to be set:" <<
id <<
" is larger than limit:"
281 throw std::runtime_error(
"AthenaBarCodeImpl::setBit Failed");
◆ setDefaultHash()
void AthenaBarCodeImpl::setDefaultHash |
( |
const char * |
jobid | ) |
|
|
static |
◆ setReserveBits()
Definition at line 223 of file AthenaBarCodeImpl.cxx.
232 catch (
const GaudiException& Exception) {
233 throw std::runtime_error(
234 "AthenaBarCodeImpl::newVersion()::Version Overflow");
◆ setUUIDHash()
◆ setVersion()
Definition at line 157 of file AthenaBarCodeImpl.cxx.
166 catch (
const GaudiException& Exception) {
167 throw std::runtime_error(
"AthenaBarCodeImpl::newVersion()::Version Too big");
◆ AthenaBarCodeCnv_p1
◆ CounterBits
const unsigned short AthenaBarCodeImpl::CounterBits = 26 |
|
static |
◆ m_barcode
◆ m_barcodeCounter
◆ ReserveBits
const unsigned short AthenaBarCodeImpl::ReserveBits = 2 |
|
static |
◆ SCounterBits
◆ SReserveBits
◆ SUUIDBits
const unsigned short AthenaBarCodeImpl::SUUIDBits = 0 |
|
static |
◆ SVersionBits
◆ TotalBits
const unsigned short AthenaBarCodeImpl::TotalBits = 64 |
|
static |
◆ UUIDBits
const unsigned short AthenaBarCodeImpl::UUIDBits = 32 |
|
static |
◆ VersionBits
const unsigned short AthenaBarCodeImpl::VersionBits = 4 |
|
static |
The documentation for this class was generated from the following files:
static std::atomic< AthenaBarCode_t > m_barcodeCounter
std::atomic< AthenaBarCode_t > m_barcode
static const AthenaBarCode_t UNDEFINEDBARCODE
const unsigned char * PJobID_t
static const unsigned short SUUIDBits
static AthenaBarCode_t hashUUID(const char *)
static const unsigned short UUIDBits
static const unsigned short CounterBits
static const unsigned short SVersionBits
void setBits(unsigned short startbit, unsigned short nbits, AthenaBarCode_t id, AthenaBarCode_t &bc) const
AthenaBarCode_t getUUIDHash() const
@ u
Enums for curvilinear frames.
IMessageSvc * getMessageSvc(bool quiet=false)
uint64_t AthenaBarCode_t
barcode for all INav4Mom classes
static const unsigned short TotalBits
static AthenaBarCode_t getDefaultHash(const char *jobid=nullptr)
::StatusCode StatusCode
StatusCode definition for legacy code.
static const unsigned short SReserveBits
AthenaBarCode_t getBits(unsigned short startbit, unsigned short nbits) const
static const unsigned short SCounterBits
AthenaBarCode_t combineWithUUIDHash(const AthenaBarCode_t &) const
std::string getenv(const std::string &variableName)
get an environment variable
static AthenaBarCode_t makeDefaultHash(const char *jobid)
AthenaBarCode_t AthenaBarCodeVersion_t
static const unsigned short VersionBits
AthenaBarCodeVersion_t getVersion() const
static const unsigned short ReserveBits