Dev Essential  1.6.3
Loading...
Searching...
No Matches
problem.h
Go to the documentation of this file.
1
20
21#ifndef DD_UTILITY_PROBLEM_UTILITY_H_INCLUDED
22#define DD_UTILITY_PROBLEM_UTILITY_H_INCLUDED
23
24#include <stdexcept>
25#include <vector>
26
27namespace ddl {
28namespace dd {
29
33struct Problem {
35 std::string item_name = {};
37 std::string problem_message = {};
38};
39
57std::vector<std::string> transformProblemList(const std::vector<Problem>& problems);
58
59} // namespace dd
60
61namespace utility {
62
63// (usually Problem class should be moved to utility namespace, but we stay binary compatible for
64// now!)
70
71} // namespace utility
72} // namespace ddl
73
74#endif // DD_UTILITY_PROBLEM_UTILITY_H_INCLUDED
definition of the dd namespace
Definition datamodel_base.h:26
std::vector< std::string > transformProblemList(const std::vector< Problem > &problems)
transforms the Problem List to a simple vector of strings. Simple usage:
definition of the utility namespace
Definition ddl.h:66
::ddl::dd::Problem Problem
Problem to report to find the corresponding item name in a simple way.
Definition problem.h:68
definition of the ddl namespace
Definition codec.h:21
Problem to report to find the corresponding item name in a simple way.
Definition problem.h:33
std::string item_name
the item name
Definition problem.h:35
std::string problem_message
the validation problem in text
Definition problem.h:37