SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::UILambdaOutput< T > Class Template Reference

#include <sensesp/ui/ui_output.h>

Inheritance diagram for sensesp::UILambdaOutput< T >:
[legend]

Public Member Functions

 UILambdaOutput (String name, std::function< T()> function, String group=kUIOutputDefaultGroup, int order=kUIOutputDefaultOrder)
 
get ()
 
void set_json (const JsonObject &obj) override
 
- Public Member Functions inherited from sensesp::UIOutputBase
 UIOutputBase (String name, String group, int order)
 
Stringget_name ()
 
- Public Member Functions inherited from sensesp::Observable
 Observable ()
 
 Observable (Observable &&other)
 Move constructor.
 
void notify ()
 
void attach (std::function< void()> observer)
 

Additional Inherited Members

- Static Public Member Functions inherited from sensesp::UIOutputBase
static const std::map< String, UIOutputBase * > * get_ui_outputs ()
 
- Protected Attributes inherited from sensesp::UIOutputBase
String name_
 
String group_ = kUIOutputDefaultGroup
 
int order_ = kUIOutputDefaultOrder
 
- Static Protected Attributes inherited from sensesp::UIOutputBase
static std::map< String, UIOutputBase * > ui_outputs_
 

Detailed Description

template<typename T>
class sensesp::UILambdaOutput< T >

Definition at line 41 of file ui_output.h.

Constructor & Destructor Documentation

◆ UILambdaOutput()

template<typename T >
sensesp::UILambdaOutput< T >::UILambdaOutput ( String  name,
std::function< T()>  function,
String  group = kUIOutputDefaultGroup,
int  order = kUIOutputDefaultOrder 
)
inline

Definition at line 46 of file ui_output.h.

Member Function Documentation

◆ get()

template<typename T >
T sensesp::UILambdaOutput< T >::get ( )
inline

Definition at line 51 of file ui_output.h.

Here is the caller graph for this function:

◆ set_json()

template<typename T >
void sensesp::UILambdaOutput< T >::set_json ( const JsonObject obj)
inlineoverridevirtual

Reimplemented from sensesp::UIOutputBase.

Definition at line 53 of file ui_output.h.

Here is the call graph for this function:

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