Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
Warnings.hpp
1 // Reaktoro is a unified framework for modeling chemically reactive systems.
2 //
3 // Copyright © 2014-2024 Allan Leal
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library. If not, see <http://www.gnu.org/licenses/>.
17 
18 #pragma once
19 
20 namespace Reaktoro {
21 
23 class Warnings
24 {
25 public:
28  static auto enable(int warningid) -> bool;
29 
32  static auto disable(int warningid) -> bool;
33 
35  static auto isEnabled(int warningid) -> bool;
36 
38  static auto isDisabled(int warningid) -> bool;
39 };
40 
41 } // namespace Reaktoro
Used to control warnings in the execution of Reaktoro.
Definition: Warnings.hpp:24
static auto enable(int warningid) -> bool
Enable warning with given id.
static auto isDisabled(int warningid) -> bool
Check if warning with given id is disabled.
static auto isEnabled(int warningid) -> bool
Check if warning with given id is enabled.
static auto disable(int warningid) -> bool
Disable warning with given id.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29