ATLAS Offline Software
Classes | Namespaces | Functions
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h File Reference
#include <iostream>
Include dependency graph for Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:

Go to the source code of this file.

Classes

class  TCS::StatusCode
 

Namespaces

 TCS
 

Functions

std::ostream & operator<< (std::ostream &o, const TCS::StatusCode &sc)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const TCS::StatusCode sc 
)
inline

Definition at line 57 of file Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h.

57  {
58  if ( TCS::StatusCode::SUCCESS == sc.getCode() ) {
59  return o << "SUCCESS" ;
60  } else if ( sc.isRecoverable() ) {
61  return o << "RECOVERABLE";
62  }
63  o << "FAILURE" ;
64  if ( TCS::StatusCode::FAILURE != sc.getCode() ) {
65  o << "(" << sc.getCode() << ")" ;
66  }
67  return o;
68 }
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::StatusCode::FAILURE
@ FAILURE
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27