The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
PragmaOptions.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13#include <string>
14
15namespace Gaudi {
16 namespace Parsers {
17 class PragmaOptions final {
18 public:
19 PragmaOptions() = default;
20
21 bool is_print() const { return m_is_print; }
23
24 bool is_print_options() const { return m_is_print_options; }
26
27 bool is_print_tree() const { return m_is_print_tree; }
29
30 const std::string& dumpFile() const { return m_dump_file; }
31 void setDumpFile( std::string dump_file ) { m_dump_file = std::move( dump_file ); }
32
33 bool IsPrintOptions() { return is_print_options() && is_print(); }
34 bool IsPrintTree() { return is_print_tree() && is_print(); }
35 bool HasDumpFile() { return !m_dump_file.empty(); }
36
37 private:
38 bool m_is_print = true;
39 bool m_is_print_options = false;
40 bool m_is_print_tree = false;
41 std::string m_dump_file;
42 };
43 } // namespace Parsers
44} // namespace Gaudi
void setDumpFile(std::string dump_file)
void setIsPrintOptions(bool is_print_options)
const std::string & dumpFile() const
void setIsPrintTree(bool is_print_tree)
void setIsPrint(bool is_print)
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1