Open Lighting Architecture: ola::web::MaximumConstraint Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::web::MaximumConstraint Class Reference
JSON

## Detailed Description

Enforces a maximum.

Inheritance diagram for ola::web::MaximumConstraint:

## Public Member Functions
| MaximumConstraint (const JsonNumber *limit, bool is_exclusive)
| Create a new MaximumConstraint.
| MaximumConstraint (const JsonNumber *limit)
| Create a new MaximumConstraint.
bool | IsValid (const JsonNumber &value)
void | ExtendSchema (JsonObject *schema) const

## Constructor & Destructor Documentation

## ◆ MaximumConstraint() [1/2]

ola::web::MaximumConstraint::MaximumConstraint | ( | const JsonNumber * | limit,
|  | bool | is_exclusive )
| inline

Create a new MaximumConstraint.

Parameters

  limit | the maximum, ownership is transferred.
  is_exclusive | true is the limit is exclusive, false if not.

## ◆ MaximumConstraint() [2/2]

ola::web::MaximumConstraint::MaximumConstraint | ( | const JsonNumber * | limit | ) |
| inlineexplicit

Create a new MaximumConstraint.

Parameters

  limit | the maximum, ownership is transferred.

## Member Function Documentation

## ◆ ExtendSchema()

void ola::web::MaximumConstraint::ExtendSchema | ( | JsonObject * | schema | ) | const
| inlinevirtual

Implements ola::web::NumberConstraint.

## ◆ IsValid()

bool ola::web::MaximumConstraint::IsValid | ( | const JsonNumber & | value | ) |
| inlinevirtual

Implements ola::web::NumberConstraint.

The documentation for this class was generated from the following file:

- include/ola/web/JsonSchema.h