SensESP 3.0.0-beta.6
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::SelectConfig Class Reference

#include <sensesp/ui/ui_controls.h>

Inheritance diagram for sensesp::SelectConfig:
[legend]

Public Member Functions

 SelectConfig (String value, String title, String config_path, std::vector< String > options, SelectType format)
 
virtual bool to_json (JsonObject &doc) override
 
virtual bool from_json (const JsonObject &config) override
 
String get_value ()
 
- Public Member Functions inherited from sensesp::FileSystemSaveable
 FileSystemSaveable (const String &config_path)
 
virtual bool load () override
 Load and populate the object from a persistent storage.
 
virtual bool save () override
 Save the object to a persistent storage.
 
virtual bool clear () override
 Delete the data from a persistent storage.
 
bool find_config_file (const String &config_path, String &filename)
 
- Public Member Functions inherited from sensesp::Saveable
 Saveable (const String &config_path)
 
virtual bool refresh ()
 Refresh the object. This may or may not access the persistent storage but is not expected to overwrite the object's state.
 
const String & get_config_path () const
 
- Public Member Functions inherited from sensesp::Serializable

Protected Attributes

String value_
 
String title_ = "Value"
 
std::vector< String > options_
 
SelectType format_ = SelectType::kUndefined
 
- Protected Attributes inherited from sensesp::Saveable
const String config_path_
 

Friends

const String ConfigSchema (const SelectConfig &obj)
 

Detailed Description

Definition at line 86 of file ui_controls.h.

Constructor & Destructor Documentation

◆ SelectConfig()

sensesp::SelectConfig::SelectConfig ( String value,
String title,
String config_path,
std::vector< String > options,
SelectType format )
inline

Definition at line 88 of file ui_controls.h.

Here is the call graph for this function:

Member Function Documentation

◆ from_json()

bool sensesp::SelectConfig::from_json ( const JsonObject & root)
overridevirtual

Deserializes the current object data from a JsonObject.

Reimplemented from sensesp::Serializable.

Definition at line 57 of file ui_controls.cpp.

◆ get_value()

String sensesp::SelectConfig::get_value ( )
inline

Definition at line 101 of file ui_controls.h.

◆ to_json()

bool sensesp::SelectConfig::to_json ( JsonObject & root)
overridevirtual

Serializes the current object data into a JsonObject.

Reimplemented from sensesp::Serializable.

Definition at line 52 of file ui_controls.cpp.

Friends And Related Symbol Documentation

◆ ConfigSchema

const String ConfigSchema ( const SelectConfig & obj)
friend

Definition at line 112 of file ui_controls.h.

Member Data Documentation

◆ format_

SelectType sensesp::SelectConfig::format_ = SelectType::kUndefined
protected

Definition at line 107 of file ui_controls.h.

◆ options_

std::vector<String> sensesp::SelectConfig::options_
protected

Definition at line 106 of file ui_controls.h.

◆ title_

String sensesp::SelectConfig::title_ = "Value"
protected

Definition at line 105 of file ui_controls.h.

◆ value_

String sensesp::SelectConfig::value_
protected

Definition at line 104 of file ui_controls.h.


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