The Gaudi Framework  v29r0 (ff2e7097)
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 {
22  namespace Parsers
23  {
24  // ===========================================================================
25  class PragmaOptions final
26  {
27  public:
28  PragmaOptions() = default;
29 
30  bool is_print() const { return m_is_print; }
31  void setIsPrint( bool is_print ) { m_is_print = is_print; }
32 
33  bool is_print_options() const { return m_is_print_options; }
35 
36  bool is_print_tree() const { return m_is_print_tree; }
38 
39  const std::string& dumpFile() const { return m_dump_file; }
40  void setDumpFile( std::string dump_file ) { m_dump_file = std::move( dump_file ); }
41 
42  bool IsPrintOptions() { return is_print_options() && is_print(); }
43  bool IsPrintTree() { return is_print_tree() && is_print(); }
44  bool HasDumpFile() { return !m_dump_file.empty(); }
45 
46  private:
47  bool m_is_print = true;
48  bool m_is_print_options = false;
49  bool m_is_print_tree = false;
51  };
52  // ===========================================================================
53  } /* Gaudi */
54 } /* Parsers */
55 // ===========================================================================
56 #endif
T empty(T...args)
void setIsPrintTree(bool is_print_tree)
Definition: PragmaOptions.h:37
const std::string & dumpFile() const
Definition: PragmaOptions.h:39
STL class.
void setIsPrintOptions(bool is_print_options)
Definition: PragmaOptions.h:34
T move(T...args)
void setIsPrint(bool is_print)
Definition: PragmaOptions.h:31
void setDumpFile(std::string dump_file)
Definition: PragmaOptions.h:40
Helper functions to set/get the application return code.
Definition: __init__.py:1