|
Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
|
Exception if an integer or double parameter is out of range. More...
#include <insfile_reader.h>
Public Member Functions | |
| param_out_of_range (const std::string &key, const std::string &value, const std::string &allowed_interval) | |
| Constructor for a double value. More... | |
Exception if an integer or double parameter is out of range.
Usually the functions Hft::is_valid() and Parameters::is_valid() are responsible for checking the bounds of a parameter. Use this exception only if the data type of the Hft or Parameters member variable does not allow being assigned the user-specified value.
|
inline |
Constructor for a double value.
| key | The fully qualified TOML key. |
| value | The given (invalid) value. Use std::to_string() to convert from double or integer to string. |
| allowed_interval | The permitted range of the parameter in mathematical notation. For example [0,1) allows values between zero and one, including zero, but excluding one. Use the infinity symbol, ∞, for intervals not bound on one side. |