ATLAS Offline Software
Loading...
Searching...
No Matches
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.
virtual std::string message (code_t code) const override
 Description for code within this category.
virtual bool isSuccess (code_t code) const override
 Is code considered success?

Static Public Member Functions

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

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 227 of file CondCont.cxx.

228{
229 return code == static_cast<code_t> (CondContStatusCode::DUPLICATE);
230}
StatusCode::code_t code_t
Definition CondCont.h:150

◆ isDuplicate() [2/2]

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

Helper to test whether a code is DUPLICATE.

Definition at line 234 of file CondCont.cxx.

235{
236 return isDuplicate (code.getCode());
237}
static bool isDuplicate(code_t code)
Helper to test whether a code is DUPLICATE.
Definition CondCont.cxx:227

◆ isExtended() [1/2]

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

Helper to test whether a code is EXTENDED.

Definition at line 255 of file CondCont.cxx.

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

◆ isExtended() [2/2]

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

Helper to test whether a code is EXTENDED.

Definition at line 262 of file CondCont.cxx.

263{
264 return isExtended (code.getCode());
265}
static bool isExtended(code_t code)
Helper to test whether a code is EXTENDED.
Definition CondCont.cxx:255

◆ isOverlap() [1/2]

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

Helper to test whether a code is OVERLAP.

Definition at line 241 of file CondCont.cxx.

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

◆ isOverlap() [2/2]

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

Helper to test whether a code is OVERLAP.

Definition at line 248 of file CondCont.cxx.

249{
250 return isOverlap (code.getCode());
251}
static bool isOverlap(code_t code)
Helper to test whether a code is OVERLAP.
Definition CondCont.cxx:241

◆ isSuccess()

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

Is code considered success?

Definition at line 217 of file CondCont.cxx.

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

◆ message()

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

Description for code within this category.

Definition at line 199 of file CondCont.cxx.

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

◆ name()

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

Name of the category.

Definition at line 190 of file CondCont.cxx.

191{
192 return "CondCont";
193}

The documentation for this class was generated from the following files: