#include <Property.hpp>
Static Public Member Functions | |
| template<typename exception_t> | |
| static int | as_int (const Property &property, const bool &check_upper_bound, const int &upper_bound, const bool &check_lower_bound, const int &lower_bound, const exception_t &exception) |
| Parse a property value as an integer. | |
| template<typename exception_t> | |
| static double | as_double (const Property &property, const bool &check_upper_bound, const double &upper_bound, const bool &check_lower_bound, const double &lower_bound, const exception_t &exception) |
| Parse a property value as a double. | |
| static bool | as_bool (const Property &property) |
| Parse a property value as a boolean. | |
|
inlinestatic |
Parse a property value as a boolean.
| property | Property to parse |
|
inlinestatic |
Parse a property value as a double.
| property | Property to parse |
| check_upper_bound | If true, check that the value is lower than upper_bound |
| upper_bound | Upper bound to check |
| check_lower_bound | If true, check that the value is greater than lower_bound |
| lower_bound | Lower bound to check |
| exception | Exception to throw if the value is not a valid double or if it is out of bounds |
|
inlinestatic |
Parse a property value as an integer.
| property | Property to parse |
| check_upper_bound | If true, check that the value is lower than upper_bound |
| upper_bound | Upper bound to check |
| check_lower_bound | If true, check that the value is greater than lower_bound |
| lower_bound | Lower bound to check |
| exception | Exception to throw if the value is not a valid integer or if it is out of bounds |