Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PragmaOptions.h
Go to the documentation of this file.
1 // ===========================================================================
2 #ifndef JOBOPTIONSVC_PRAGMAOPTIONS_H_
3 #define JOBOPTIONSVC_PRAGMAOPTIONS_H_
4 // ===========================================================================
5 // Include files
6 // ===========================================================================
7 // STD & STL
8 // ===========================================================================
9 // ===========================================================================
10 // Boost
11 // ===========================================================================
12 // ===========================================================================
13 // Gaudi
14 // ===========================================================================
15 // ===========================================================================
16 // Local
17 // ===========================================================================
18 // ===========================================================================
19 
20 namespace Gaudi {
21  namespace Parsers {
22  // ===========================================================================
23  class PragmaOptions final {
24  public:
25  PragmaOptions() = default;
26 
27  bool is_print() const { return m_is_print; }
28  void setIsPrint( bool is_print ) { m_is_print = is_print; }
29 
30  bool is_print_options() const { return m_is_print_options; }
32 
33  bool is_print_tree() const { return m_is_print_tree; }
35 
36  const std::string& dumpFile() const { return m_dump_file; }
37  void setDumpFile( std::string dump_file ) { m_dump_file = std::move( dump_file ); }
38 
39  bool IsPrintOptions() { return is_print_options() && is_print(); }
40  bool IsPrintTree() { return is_print_tree() && is_print(); }
41  bool HasDumpFile() { return !m_dump_file.empty(); }
42 
43  private:
44  bool m_is_print = true;
45  bool m_is_print_options = false;
46  bool m_is_print_tree = false;
48  };
49  // ===========================================================================
50  } // namespace Parsers
51 } // namespace Gaudi
52 // ===========================================================================
53 #endif
T empty(T...args)
void setIsPrintTree(bool is_print_tree)
Definition: PragmaOptions.h:34
const std::string & dumpFile() const
Definition: PragmaOptions.h:36
STL class.
void setIsPrintOptions(bool is_print_options)
Definition: PragmaOptions.h:31
T move(T...args)
void setIsPrint(bool is_print)
Definition: PragmaOptions.h:28
void setDumpFile(std::string dump_file)
Definition: PragmaOptions.h:37
Helper functions to set/get the application return code.
Definition: __init__.py:1