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

229{
230 return code == static_cast<code_t> (CondContStatusCode::DUPLICATE);
231}
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 235 of file CondCont.cxx.

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

◆ 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}
static bool isExtended(code_t code)
Helper to test whether a code is EXTENDED.
Definition CondCont.cxx:256

◆ 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}
static bool isOverlap(code_t code)
Helper to test whether a code is OVERLAP.
Definition CondCont.cxx:242

◆ 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 }
211 return StatusCode::Category::message (code);
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: