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 187 of file Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h.

187 {
188 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 179 of file Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h.

179 {
180 return sc.isSuccess(); }

◆ successCode()

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

produce a status code to report success

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

183 {
184 return StatusCode::SUCCESS;}

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