ATLAS Offline Software
Loading...
Searching...
No Matches
asg::CheckHelper< StatusCode > Struct Reference

#include <MessageCheck.h>

Collaboration diagram for asg::CheckHelper< StatusCode >:

Static Public Member Functions

static bool isSuccess (const StatusCode &sc)
 whether the status code reports a success
static constexpr auto successCode ()
 produce a status code to report success
static constexpr auto failureCode ()
 produce a status code to report failure

Detailed Description

Member Function Documentation

◆ failureCode()

constexpr auto asg::CheckHelper< StatusCode >::failureCode ( )
inlinestaticconstexpr

produce a status code to report failure

Definition at line 185 of file Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h.

185 {
186 return StatusCode::FAILURE;}
this is an internal traits class for status codes used by the ANA_CHECK* macros

◆ isSuccess()

bool asg::CheckHelper< StatusCode >::isSuccess ( const StatusCode & sc)
inlinestatic

whether the status code reports a success

Definition at line 177 of file Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h.

177 {
178 return sc.isSuccess(); }

◆ successCode()

constexpr auto asg::CheckHelper< StatusCode >::successCode ( )
inlinestaticconstexpr

produce a status code to report success

Definition at line 181 of file Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h.

181 {
182 return StatusCode::SUCCESS;}

The documentation for this struct was generated from the following file: