ATLAS Offline Software
Loading...
Searching...
No Matches
MsgMacros.h File Reference

emacs: this is -*- c++ -*- More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MY_MSG_FATAL   if ( !this->msgLvl(MSG::FATAL) ) ; else this->msg(MSG::FATAL)
 if you want to compile these out, just replace by if (false) and the compiler optimisation will just exclude the entire line
#define MY_MSG_ERROR   if ( !this->msgLvl(MSG::ERROR) ) ; else this->msg(MSG::ERROR)
#define MY_MSG_WARNING   if ( !this->msgLvl(MSG::WARNING) ) ; else this->msg(MSG::WARNING)
#define MY_MSG_INFO   if ( !this->msgLvl(MSG::INFO) ) ; else this->msg(MSG::INFO)
#define MY_MSG_DEBUG   if ( !this->msgLvl(MSG::DEBUG) ) ; else this->msg(MSG::DEBUG)
#define MY_MSG_VERBOSE   if ( !this->msgLvl(MSG::VERBOSE) ) ; else this->msg(MSG::VERBOSE)
#define IDTPM2_MSG_INFO0()
#define IDTPM2_MSG_INFO1(x)
#define FA_MSG_INFO(...)

Functions

template<class T>
T * msg_ptr (T *p)
template<class T>
T * msg_ptr (T &r)

Detailed Description

emacs: this is -*- c++ -*-


     proper macros that you can use like a proper ostream
Author
sutt
Date
Wed 8 Jul 2026 12:08:44 BST
Id
MsgMacros.h, v0.0 Wed 8 Jul 2026 12:08:44 BST sutt

Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration

Definition in file MsgMacros.h.

Macro Definition Documentation

◆ FA_MSG_INFO

#define FA_MSG_INFO ( ...)
Value:
IDTPM2_MACRO(__VA_ARGS__, IDTPM2_MSG_INFO1, IDTPM2_MSG_INFO0)(__VA_ARGS__)
#define IDTPM2_MSG_INFO1(x)
Definition MsgMacros.h:39
#define IDTPM2_MSG_INFO0()
Definition MsgMacros.h:36

Definition at line 42 of file MsgMacros.h.

42#define FA_MSG_INFO(...) \
43 IDTPM2_MACRO(__VA_ARGS__, IDTPM2_MSG_INFO1, IDTPM2_MSG_INFO0)(__VA_ARGS__)

◆ IDTPM2_MSG_INFO0

#define IDTPM2_MSG_INFO0 ( )
Value:
if (!this->msgLvl(MSG::INFO)) ; else this->msg(MSG::INFO)
MsgStream & msg
Definition testRead.cxx:32

Definition at line 36 of file MsgMacros.h.

36#define IDTPM2_MSG_INFO0() \
37 if (!this->msgLvl(MSG::INFO)) ; else this->msg(MSG::INFO)

◆ IDTPM2_MSG_INFO1

#define IDTPM2_MSG_INFO1 ( x)
Value:
if (!msg_ptr(x)->msgLvl(MSG::INFO)) ; else msg_ptr(x)->msg(MSG::INFO)
T * msg_ptr(T *p)
Definition MsgMacros.h:30
#define x

Definition at line 39 of file MsgMacros.h.

39#define IDTPM2_MSG_INFO1(x) \
40 if (!msg_ptr(x)->msgLvl(MSG::INFO)) ; else msg_ptr(x)->msg(MSG::INFO)

◆ MY_MSG_DEBUG

#define MY_MSG_DEBUG   if ( !this->msgLvl(MSG::DEBUG) ) ; else this->msg(MSG::DEBUG)

Definition at line 25 of file MsgMacros.h.

◆ MY_MSG_ERROR

#define MY_MSG_ERROR   if ( !this->msgLvl(MSG::ERROR) ) ; else this->msg(MSG::ERROR)

Definition at line 22 of file MsgMacros.h.

◆ MY_MSG_FATAL

#define MY_MSG_FATAL   if ( !this->msgLvl(MSG::FATAL) ) ; else this->msg(MSG::FATAL)

if you want to compile these out, just replace by if (false) and the compiler optimisation will just exclude the entire line

Definition at line 21 of file MsgMacros.h.

◆ MY_MSG_INFO

#define MY_MSG_INFO   if ( !this->msgLvl(MSG::INFO) ) ; else this->msg(MSG::INFO)

Definition at line 24 of file MsgMacros.h.

◆ MY_MSG_VERBOSE

#define MY_MSG_VERBOSE   if ( !this->msgLvl(MSG::VERBOSE) ) ; else this->msg(MSG::VERBOSE)

Definition at line 26 of file MsgMacros.h.

◆ MY_MSG_WARNING

#define MY_MSG_WARNING   if ( !this->msgLvl(MSG::WARNING) ) ; else this->msg(MSG::WARNING)

Definition at line 23 of file MsgMacros.h.

Function Documentation

◆ msg_ptr() [1/2]

template<class T>
T * msg_ptr ( T & r)

Definition at line 33 of file MsgMacros.h.

33{ return &r; }
int r
Definition globals.cxx:22

◆ msg_ptr() [2/2]

template<class T>
T * msg_ptr ( T * p)

Definition at line 30 of file MsgMacros.h.