Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
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:
ola::web::BoolItem ola::web::HiddenItem ola::web::SelectItem ola::web::StringItem ola::web::UIntItem

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: