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

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
ola::web::GenericItem Class Referenceabstract

## Detailed Description

This is the base item class. Items are composed into sections. Each item has the following:

- A text description
- A type, which controls how the item is rendered
- The value.
- Optional id. A non-empty id makes this item editable
- Optional button text. Non-empty means this item gets it own button.

Inheritance diagram for ola::web::GenericItem:

## Public Member Functions
| GenericItem (const std::string &description, const std::string &id)
void | SetButtonText (const std::string &text)
void | PopulateItem (JsonObject *item) const

## Protected Member Functions
virtual std::string | Type () const =0
virtual void | SetValue (JsonObject *item) const =0
virtual void | SetExtraProperties (JsonObject *item) const

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

- include/ola/web/JsonSections.h
- common/web/JsonSections.cpp