ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | List of all members
CondContBase::Category Class Reference

Status code category for ContCont. More...

#include <CondCont.h>

Inheritance diagram for CondContBase::Category:
Collaboration diagram for CondContBase::Category:

Public Types

typedef StatusCode::code_t code_t
 

Public Member Functions

virtual const char * name () const override
 Name of the category. More...
 
virtual std::string message (code_t code) const override
 Description for code within this category. More...
 
virtual bool isSuccess (code_t code) const override
 Is code considered success? More...
 

Static Public Member Functions

static bool isDuplicate (code_t code)
 Helper to test whether a code is DUPLICATE. More...
 
static bool isDuplicate (StatusCode code)
 Helper to test whether a code is DUPLICATE. More...
 
static bool isOverlap (code_t code)
 Helper to test whether a code is OVERLAP. More...
 
static bool isOverlap (StatusCode code)
 Helper to test whether a code is OVERLAP. More...
 
static bool isExtended (code_t code)
 Helper to test whether a code is EXTENDED. More...
 
static bool isExtended (StatusCode code)
 Helper to test whether a code is EXTENDED. More...
 

Detailed Description

Status code category for ContCont.

This adds new codes DUPLICATE, OVERLAP, and EXTENDED, which are classified as success.

Definition at line 147 of file CondCont.h.

Member Typedef Documentation

◆ code_t

typedef StatusCode::code_t CondContBase::Category::code_t

Definition at line 150 of file CondCont.h.

Member Function Documentation

◆ isDuplicate() [1/2]

bool CondContBase::Category::isDuplicate ( code_t  code)
static

Helper to test whether a code is DUPLICATE.

Definition at line 228 of file CondCont.cxx.

229 {
230  return code == static_cast<code_t> (CondContStatusCode::DUPLICATE);
231 }

◆ isDuplicate() [2/2]

bool CondContBase::Category::isDuplicate ( StatusCode  code)
static

Helper to test whether a code is DUPLICATE.

Definition at line 235 of file CondCont.cxx.

236 {
237  return isDuplicate (code.getCode());
238 }

◆ isExtended() [1/2]

bool CondContBase::Category::isExtended ( code_t  code)
static

Helper to test whether a code is EXTENDED.

Definition at line 256 of file CondCont.cxx.

257 {
258  return code == static_cast<code_t> (CondContStatusCode::EXTENDED);
259 }

◆ isExtended() [2/2]

bool CondContBase::Category::isExtended ( StatusCode  code)
static

Helper to test whether a code is EXTENDED.

Definition at line 263 of file CondCont.cxx.

264 {
265  return isExtended (code.getCode());
266 }

◆ isOverlap() [1/2]

bool CondContBase::Category::isOverlap ( code_t  code)
static

Helper to test whether a code is OVERLAP.

Definition at line 242 of file CondCont.cxx.

243 {
244  return code == static_cast<code_t> (CondContStatusCode::OVERLAP);
245 }

◆ isOverlap() [2/2]

bool CondContBase::Category::isOverlap ( StatusCode  code)
static

Helper to test whether a code is OVERLAP.

Definition at line 249 of file CondCont.cxx.

250 {
251  return isOverlap (code.getCode());
252 }

◆ isSuccess()

bool CondContBase::Category::isSuccess ( code_t  code) const
overridevirtual

Is code considered success?

Definition at line 218 of file CondCont.cxx.

219 {
220  return code == static_cast<code_t>( CondContStatusCode::DUPLICATE ) ||
221  code == static_cast<code_t>( CondContStatusCode::OVERLAP ) ||
222  code == static_cast<code_t>( CondContStatusCode::EXTENDED ) ||
223  code == static_cast<code_t>( CondContStatusCode::SUCCESS );
224 }

◆ message()

std::string CondContBase::Category::message ( code_t  code) const
overridevirtual

Description for code within this category.

Definition at line 200 of file CondCont.cxx.

201 {
202  if (code == static_cast<code_t> (CondContStatusCode::DUPLICATE)) {
203  return "DUPLICATE";
204  }
205  else if (code == static_cast<code_t> (CondContStatusCode::OVERLAP)) {
206  return "OVERLAP";
207  }
208  else if (code == static_cast<code_t> (CondContStatusCode::EXTENDED)) {
209  return "EXTENDED";
210  }
212 }

◆ name()

const char * CondContBase::Category::name ( ) const
overridevirtual

Name of the category.

Definition at line 191 of file CondCont.cxx.

192 {
193  return "CondCont";
194 }

The documentation for this class was generated from the following files:
ReweightUtils.message
message
Definition: ReweightUtils.py:15
CondContStatusCode::DUPLICATE
@ DUPLICATE
CondContStatusCode::OVERLAP
@ OVERLAP
CondContStatusCode::SUCCESS
@ SUCCESS
pmontree.code
code
Definition: pmontree.py:443
CondContBase::Category::isOverlap
static bool isOverlap(code_t code)
Helper to test whether a code is OVERLAP.
Definition: CondCont.cxx:242
CondContBase::Category::code_t
StatusCode::code_t code_t
Definition: CondCont.h:150
CondContBase::Category::isExtended
static bool isExtended(code_t code)
Helper to test whether a code is EXTENDED.
Definition: CondCont.cxx:256
CondContBase::Category::isDuplicate
static bool isDuplicate(code_t code)
Helper to test whether a code is DUPLICATE.
Definition: CondCont.cxx:228
CondContStatusCode::EXTENDED
@ EXTENDED