|
| ThresholdTransform (C min_value, C max_value, bool in_range, String config_path="") |
|
virtual void | set (const C &new_value) override |
|
bool | from_json (const JsonObject &root) override |
|
bool | to_json (JsonObject &root) override |
|
| Transform (String config_path="") |
|
Transform< C, bool > * | connect_from (ValueProducer< bool > *producer0, ValueProducer< bool > *producer1=NULL, ValueProducer< bool > *producer2=NULL, ValueProducer< bool > *producer3=NULL, ValueProducer< bool > *producer4=NULL) |
|
| TransformBase (const String &config_path) |
|
| 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) |
|
| 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 |
|
virtual void | set_input (const C &new_value) |
|
void | connect_from (ValueProducer< C > *producer) |
|
| ValueProducer () |
|
| ValueProducer (const bool &initial_value) |
|
virtual const bool & | get () const |
|
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< bool, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type | connect_to (std::shared_ptr< VConsumer > consumer) |
| Connect a producer to a transform with a different input type.
|
|
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< bool, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer *consumer) |
|
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< bool, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer &consumer) |
|
void | emit (const bool &new_value) |
|
| Observable () |
|
| Observable (Observable &&other) |
| Move constructor.
|
|
void | notify () |
|
void | attach (std::function< void()> observer) |
|
template<typename C>
class sensesp::ThresholdTransform< C >
A Transform base class that translates the value of type C into boolean. Base class for classes FloatThreshold and IntThreshold.
- Parameters
-
min_value | Minimum value of input for output to be the value of in_range. |
max_value | Maximum value of input for output to be the value of in_range. |
in_range | Output value if input value is in range. |
out_range | Output value if input value is out of the range. |
Definition at line 22 of file threshold.h.