Open Lighting Architecture
0.10.4
|
Enforces a maximum.
Public Member Functions | |
MaximumConstraint (const JsonNumber *limit, bool is_exclusive) | |
Create a new MaximumConstraint. More... | |
MaximumConstraint (const JsonNumber *limit) | |
Create a new MaximumConstraint. More... | |
bool | IsValid (const JsonNumber &value) |
void | ExtendSchema (JsonObject *schema) const |
|
inline |
Create a new MaximumConstraint.
limit | the maximum, ownership is transferred. |
is_exclusive | true is the limit is exclusive, false if not. |
|
inlineexplicit |
Create a new MaximumConstraint.
limit | the maximum, ownership is transferred. |