1 #define GAUDIKERNEL_STATUSCODE_CPP 1
3 #include "GaudiKernel/StatusCode.h"
4 #include "GaudiKernel/System.h"
5 #include "GaudiKernel/Bootstrap.h"
6 #include "GaudiKernel/IMessageSvc.h"
7 #include "GaudiKernel/IStatusCodeSvc.h"
8 #include "GaudiKernel/ISvcLocator.h"
9 #include "GaudiKernel/MsgStream.h"
10 #include "GaudiKernel/IssueSeverity.h"
43 const size_t depth = 21;
44 void* addresses[depth];
51 for(
size_t idx: {2, 3}) {
53 fnc !=
"StatusCode::~StatusCode()") {
56 scs->regFnc(fnc, lib);
60 <<
" (" << lib <<
")" <<
endmsg;
GAUDI_API const IssueSeverity & severity() const
Severity.
Definition of the MsgStream class used to transmit messages.
static bool s_proc
"previous" element in the linked list
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
GAUDI_API bool getStackLevel(void *addresses, void *&addr, std::string &fnc, std::string &lib)
std::shared_ptr< const IssueSeverity > m_severity
Pointer to a IssueSeverity.
bool m_checked
If the Status code has been checked.
static bool s_checking
Global flag to control if StatusCode need to be checked.
static GAUDI_API void enableChecking()
static GAUDI_API bool checkingEnabled()
GAUDI_API int backTrace(void **addresses, const int depth)
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
GAUDI_API ISvcLocator * svcLocator()
The IMessage is the interface implemented by the message service.
static GAUDI_API void disableChecking()