flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
flexibledecay_problems.hpp
Go to the documentation of this file.
1// ====================================================================
2// This file is part of FlexibleSUSY.
3//
4// FlexibleSUSY is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published
6// by the Free Software Foundation, either version 3 of the License,
7// or (at your option) any later version.
8//
9// FlexibleSUSY is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with FlexibleSUSY. If not, see
16// <http://www.gnu.org/licenses/>.
17// ====================================================================
18
19#ifndef FLEXIBLEDECAY_PROBLEMS_H
20#define FLEXIBLEDECAY_PROBLEMS_H
21
22#include <vector>
23#include <string>
24
25namespace flexiblesusy {
26
28public:
29 void clear() {}
30 bool have_problem() const { return false; }
31 bool have_warning() const { return false; }
32 std::vector<std::string> get_problem_strings() const {
33 return error_strings;
34 }
35 std::vector<std::string> get_warning_strings() const {
36 return warning_strings;
37 }
38 void add_warning(std::string const& warning) {warning_strings.push_back(warning);}
39 void add_error(std::string const& error) {error_strings.push_back(error);}
40
41private:
42 std::string model_name{};
43 std::vector<std::string> warning_strings {};
44 std::vector<std::string> error_strings {};
45};
46
47} // namespace flexiblesusy
48
49#endif
void add_error(std::string const &error)
std::vector< std::string > get_problem_strings() const
std::vector< std::string > get_warning_strings() const
void add_warning(std::string const &warning)