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 { namespace Parsers {
21 // ===========================================================================
22 class PragmaOptions final {
23  public:
24  PragmaOptions() = default;
25 
26  bool is_print() const { return m_is_print;}
28 
29  bool is_print_options() const { return m_is_print_options;}
32 
33  bool is_print_tree() const { return m_is_print_tree;}
36 
37  const std::string& dumpFile() const { return m_dump_file;}
38  void setDumpFile(std::string dump_file) {
39  m_dump_file = std::move(dump_file);
40  }
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 */ } /* Parsers */
54 // ===========================================================================
55 #endif
T empty(T...args)
void setIsPrintTree(bool is_print_tree)
Definition: PragmaOptions.h:34
const std::string & dumpFile() const
Definition: PragmaOptions.h:37
STL class.
void setIsPrintOptions(bool is_print_options)
Definition: PragmaOptions.h:30
T move(T...args)
void setIsPrint(bool is_print)
Definition: PragmaOptions.h:27
void setDumpFile(std::string dump_file)
Definition: PragmaOptions.h:38
Helper functions to set/get the application return code.
Definition: __init__.py:1