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

Detailed Description

Enforces a maximum.

Inheritance diagram for ola::web::MaximumConstraint:
Inheritance graph
[legend]
Collaboration diagram for ola::web::MaximumConstraint:
Collaboration graph
[legend]

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
 

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: