Open Lighting Architecture  0.9.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::web::MaximumConstraint Class Reference

Detailed Description

Enforces a maximum.

Inheritance diagram for ola::web::MaximumConstraint:
ola::web::NumberConstraint

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

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

Create a new MaximumConstraint.

Parameters
limitthe maximum, ownership is transferred.
is_exclusivetrue is the limit is exclusive, false if not.
ola::web::MaximumConstraint::MaximumConstraint ( const JsonNumber limit)
inlineexplicit

Create a new MaximumConstraint.

Parameters
limitthe maximum, ownership is transferred.

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