Class ConfigurationChecks
Defined in File ConfigurationChecks.hpp
Class Documentation
-
class ConfigurationChecks
Collects the configuration problems found by a model.
A model’s verify() fills one instance with a message for every condition that does not hold and returns it. The caller decides how the messages are reported; passed() is true when there are none.
Public Functions
-
inline explicit ConfigurationChecks(std::string_view model)
- Parameters:
model – [in] Model name that prefixes every recorded message.
-
inline void fail(std::string_view message)
Record a problem.
-
inline void check(bool condition, std::string_view message)
Record the message when the condition does not hold.
-
inline bool passed() const
True when no check has failed.
-
inline const std::vector<std::string> &errors() const
Every recorded message, in the order the checks ran.
-
inline explicit ConfigurationChecks(std::string_view model)