SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::TransformBase Class Reference

The base class for all transforms. A transforms takes a value in, transforms it in some way, and outputs the transformed value. More...

#include <sensesp/transforms/transform.h>

Inheritance diagram for sensesp::TransformBase:
[legend]

Public Member Functions

 TransformBase (const String &config_path)
 
- 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
virtual bool to_json (JsonObject &root)
 
virtual bool from_json (const JsonObject &root)
 

Static Public Member Functions

static const std::set< TransformBase * > & get_transforms ()
 

Additional Inherited Members

- Protected Attributes inherited from sensesp::Saveable
const String config_path_
 

Detailed Description

The base class for all transforms. A transforms takes a value in, transforms it in some way, and outputs the transformed value.

All transforms are subscribed to by calling attach() (inherited from Observable).

Parameters
config_pathThe path to configure the Transform in the Config UI.

Definition at line 30 of file transform.h.

Constructor & Destructor Documentation

◆ TransformBase()

sensesp::TransformBase::TransformBase ( const String & config_path)

Definition at line 15 of file transform.cpp.

Member Function Documentation

◆ get_transforms()

static const std::set< TransformBase * > & sensesp::TransformBase::get_transforms ( )
inlinestatic

Definition at line 37 of file transform.h.


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