ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
RootCoreUtils
Root
PrintMsg.cxx
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
//
8
// includes
9
//
10
11
#include <
RootCoreUtils/PrintMsg.h
>
12
13
#include <TString.h>
14
#include <
RootCoreUtils/Assert.h
>
15
#include <
RootCoreUtils/Message.h
>
16
#include <cstdlib>
17
18
//
19
// method implementations
20
//
21
22
namespace
RCU
23
{
24
void
send_message
(
const
char
*package,
const
char
*
file
,
unsigned
line,
25
MessageType
type
,
const
char
*
msg
)
26
{
27
Message
message;
28
message.package = package;
29
message.file =
file
;
30
message.line = line;
31
message.type =
type
;
32
message.message =
msg
;
33
message.send ();
34
}
35
36
37
38
void
send_message
(
const
char
*package,
const
char
*
file
,
unsigned
line,
39
MessageType
type
,
const
std::string&
msg
)
40
{
41
send_message
(package,
file
, line,
type
,
msg
.c_str());
42
}
43
44
45
46
void
send_message
(
const
char
*package,
const
char
*
file
,
unsigned
line,
47
MessageType
type
,
const
TString&
msg
)
48
{
49
send_message
(package,
file
, line,
type
,
msg
.Data());
50
}
51
52
53
54
void
send_message_abort
(
const
char
*package,
const
char
*
file
,
unsigned
line,
55
MessageType
type
,
const
char
*
msg
)
56
{
57
Message
message;
58
message.package = package;
59
message.file =
file
;
60
message.line = line;
61
message.type =
type
;
62
message.message =
msg
;
63
message.send ();
64
RCU_ASSERT0
(
"shouldn't get here"
);
65
std::abort ();
66
}
67
68
69
70
void
send_message_abort
(
const
char
*package,
const
char
*
file
,
unsigned
line,
71
MessageType
type
,
const
std::string&
msg
)
72
{
73
send_message_abort
(package,
file
, line,
type
,
msg
.c_str());
74
}
75
76
77
78
void
send_message_abort
(
const
char
*package,
const
char
*
file
,
unsigned
line,
79
MessageType
type
,
const
TString&
msg
)
80
{
81
send_message_abort
(package,
file
, line,
type
,
msg
.Data());
82
}
83
}
Assert.h
RCU_ASSERT0
#define RCU_ASSERT0(y)
Definition
Assert.h:221
Message.h
PrintMsg.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
type
RCU::Message
Definition
PhysicsAnalysis/D3PDTools/RootCoreUtils/RootCoreUtils/Message.h:17
msg
MsgStream & msg
Definition
testRead.cxx:32
file
TFile * file
Definition
tile_monitor.h:29
Generated on
for ATLAS Offline Software by
1.16.1