LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ExitCodePrinter.h
Go to the documentation of this file.
1
#ifndef art_Framework_Art_detail_ExitCodePrinter_h
2
#define art_Framework_Art_detail_ExitCodePrinter_h
3
4
#include "
art/Framework/Art/detail/info_success.h
"
5
#include <iostream>
6
7
namespace
art::detail
{
8
class
ExitCodePrinter
{
9
public
:
10
ExitCodePrinter
&
11
operator=
(
int
exitcode
) noexcept
12
{
13
code_
=
exitcode
;
14
return
*
this
;
15
}
16
17
~ExitCodePrinter
() noexcept
18
{
19
if
(
code_
!=
info_success
()) {
20
std::cout <<
"Art has completed and will exit with status "
<<
code_
21
<<
"."
<< std::endl;
22
}
23
}
24
25
int
26
exitcode
() const noexcept
27
{
28
return
code_
==
info_success
() ? 0 :
code_
;
29
}
30
31
private
:
32
int
code_
{};
33
};
34
}
35
36
#endif
/* art_Framework_Art_detail_ExitCodePrinter_h */
37
38
// Local Variables:
39
// mode: c++
40
// End:
art::detail::ExitCodePrinter::code_
int code_
Definition:
ExitCodePrinter.h:32
art::detail::ExitCodePrinter::exitcode
int exitcode() const noexcept
Definition:
ExitCodePrinter.h:26
art::detail
Definition:
AllowedConfiguration.h:76
info_success.h
art::detail::ExitCodePrinter::~ExitCodePrinter
~ExitCodePrinter() noexcept
Definition:
ExitCodePrinter.h:17
art::detail::info_success
constexpr int info_success()
Definition:
info_success.h:8
art::detail::ExitCodePrinter::operator=
ExitCodePrinter & operator=(int exitcode) noexcept
Definition:
ExitCodePrinter.h:11
art::detail::ExitCodePrinter
Definition:
ExitCodePrinter.h:8
art
Framework
Art
detail
ExitCodePrinter.h
Generated on Thu May 2 2024 20:59:28 for LArSoft by
1.8.11