Bayeux
3.4.1
Core Foundation library for SuperNEMO
bayeux
mctools
g4
loggable_support.h
Go to the documentation of this file.
1
/* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3
* Creation date : 2013-06-03
4
* Last modified : 2013-06-03
5
*/
6
7
#ifndef MCTOOLS_G4_LOGGABLE_SUPPORT_H
8
#define MCTOOLS_G4_LOGGABLE_SUPPORT_H 1
9
10
// Third party:
11
// - Bayeux/datatools :
12
#include <
datatools/logger.h
>
13
14
namespace
datatools
{
15
class
properties;
16
}
17
18
namespace
mctools
{
19
20
namespace
g4 {
21
23
class
loggable_support
{
24
25
public
:
26
28
loggable_support
();
29
31
explicit
loggable_support
(
datatools::logger::priority
);
32
33
datatools::logger::priority
get_logging_priority
()
const
;
34
36
virtual
~loggable_support
();
37
38
void
set_logging_priority
(
const
std::string & priority_label_);
39
40
void
set_logging_priority
(
datatools::logger::priority
);
41
42
bool
is_debug
()
const
;
43
44
void
set_debug
(
bool
);
45
46
bool
is_verbose
()
const
;
47
48
void
set_verbose
(
bool
);
49
50
protected
:
51
52
void
_initialize_logging_support
(
const
datatools::properties
&);
53
54
datatools::logger::priority
_logprio
()
const
;
55
56
protected
:
57
58
datatools::logger::priority
_logging_priority
;
59
60
};
61
62
}
// end of namespace g4
63
64
}
// end of namespace mctools
65
66
#endif // MCTOOLS_G4_LOGGABLE_SUPPORT_H
67
68
// Local Variables: --
69
// mode: c++ --
70
// c-file-style: "gnu" --
71
// End: --
mctools::g4::loggable_support::_logging_priority
datatools::logger::priority _logging_priority
Logging priority threshold.
Definition:
loggable_support.h:58
datatools::logger::priority
priority
Priority levels for logging from most to least critical.
Definition:
logger.h:82
mctools
Definition:
base_step_hit.h:32
mctools::g4::loggable_support::set_logging_priority
void set_logging_priority(const std::string &priority_label_)
mctools::g4::loggable_support::loggable_support
loggable_support()
Default constructor.
mctools::g4::loggable_support::set_debug
void set_debug(bool)
mctools::g4::loggable_support
Base class with logging support.
Definition:
loggable_support.h:23
mctools::g4::loggable_support::get_logging_priority
datatools::logger::priority get_logging_priority() const
mctools::g4::loggable_support::set_verbose
void set_verbose(bool)
mctools::g4::loggable_support::is_verbose
bool is_verbose() const
mctools::g4::loggable_support::~loggable_support
virtual ~loggable_support()
Destructor.
mctools::g4::loggable_support::_logprio
datatools::logger::priority _logprio() const
mctools::g4::loggable_support::is_debug
bool is_debug() const
datatools
The Bayeux/datatools library top-level namespace.
Definition:
algo.h:13
logger.h
Utilities for logging information.
mctools::g4::loggable_support::_initialize_logging_support
void _initialize_logging_support(const datatools::properties &)
datatools::properties
A dictionary of arbitrary properties.
Definition:
properties.h:125
Generated by
1.8.15