ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
RootCoreUtils
RootCoreUtils
PrintMsg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef ROOT_CORE_UTILS__PRINT_MSG_H
8
#define ROOT_CORE_UTILS__PRINT_MSG_H
9
11
12
13
14
#include <
RootCoreUtils/Global.h
>
15
16
#include <string>
17
#include <
RootCoreUtils/MessageType.h
>
18
19
class
TString;
20
21
namespace
RCU
22
{
23
void
send_message
(
const
char
*package,
const
char
*
file
,
unsigned
line,
24
MessageType
type,
const
char
*
msg
);
25
void
send_message
(
const
char
*package,
const
char
*
file
,
unsigned
line,
26
MessageType
type,
const
std::string&
msg
);
27
void
send_message
(
const
char
*package,
const
char
*
file
,
unsigned
line,
28
MessageType
type,
const
TString&
msg
);
29
[[noreturn]]
void
30
send_message_abort
(
const
char
*package,
const
char
*
file
,
unsigned
line,
31
MessageType
type,
const
char
*
msg
);
32
[[noreturn]]
void
33
send_message_abort
(
const
char
*package,
const
char
*
file
,
unsigned
line,
34
MessageType
type,
const
std::string&
msg
);
35
[[noreturn]]
void
36
send_message_abort
(
const
char
*package,
const
char
*
file
,
unsigned
line,
37
MessageType
type,
const
TString&
msg
);
38
}
39
40
#ifndef ROOTCORE_PACKAGE
41
#define ROOTCORE_PACKAGE 0
42
#endif
43
44
#define RCU_PRINT_MSG(message) \
45
::RCU::send_message (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_REGULAR, (message));
46
47
#define RCU_WARN_MSG(message) \
48
::RCU::send_message (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_WARNING, (message));
49
50
#define RCU_ERROR_MSG(message) \
51
::RCU::send_message (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_ERROR, (message));
52
53
#define RCU_THROW_MSG(message) \
54
::RCU::send_message_abort (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_EXCEPTION, (message));
55
56
#endif
Global.h
MessageType.h
RCU
This module defines a variety of assert style macros.
Definition
Assert.cxx:23
RCU::send_message
void send_message(const char *package, const char *file, unsigned line, MessageType type, const char *msg)
Definition
PrintMsg.cxx:24
RCU::send_message_abort
void send_message_abort(const char *package, const char *file, unsigned line, MessageType type, const char *msg)
Definition
PrintMsg.cxx:54
RCU::MessageType
MessageType
Definition
MessageType.h:19
msg
MsgStream & msg
Definition
testRead.cxx:32
file
TFile * file
Definition
tile_monitor.h:29
Generated on
for ATLAS Offline Software by
1.17.0