Bayeux  3.4.1
Core Foundation library for SuperNEMO
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 
24 
25  public:
26 
29 
32 
34 
36  virtual ~loggable_support();
37 
38  void set_logging_priority(const std::string & priority_label_);
39 
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 
53 
55 
56  protected:
57 
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: --
datatools::logger::priority _logging_priority
Logging priority threshold.
Definition: loggable_support.h:58
priority
Priority levels for logging from most to least critical.
Definition: logger.h:82
Definition: base_step_hit.h:32
void set_logging_priority(const std::string &priority_label_)
loggable_support()
Default constructor.
Base class with logging support.
Definition: loggable_support.h:23
datatools::logger::priority get_logging_priority() const
virtual ~loggable_support()
Destructor.
datatools::logger::priority _logprio() const
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13
Utilities for logging information.
void _initialize_logging_support(const datatools::properties &)
A dictionary of arbitrary properties.
Definition: properties.h:125