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

Automatic calling of the reset() method when the device needs to be reset. More...

#include <sensesp/system/resettable.h>

Inheritance diagram for sensesp::Resettable:
[legend]

Public Member Functions

 Resettable (int priority=0)
 
virtual void reset ()
 
const int get_reset_priority () const
 
void set_reset_priority (int priority)
 

Static Public Member Functions

static void reset_all ()
 

Friends

class ResettableCompare
 

Detailed Description

Automatic calling of the reset() method when the device needs to be reset.

Classes that implement "Resettable" will have their reset() method called automatically when the device is reset. The optional priority parameter allows the user to control the order in which the objects are reset. The default priority is 0. A higher priority object (priority greater than zero) will be reset before a lower one.

Definition at line 20 of file resettable.h.

Constructor & Destructor Documentation

◆ Resettable()

sensesp::Resettable::Resettable ( int priority = 0)

Definition at line 10 of file resettable.cpp.

Member Function Documentation

◆ get_reset_priority()

const int sensesp::Resettable::get_reset_priority ( ) const
inline

Definition at line 26 of file resettable.h.

◆ reset()

virtual void sensesp::Resettable::reset ( )
inlinevirtual

Reimplemented in sensesp::Filesystem, and sensesp::Networking.

Definition at line 24 of file resettable.h.

◆ reset_all()

void sensesp::Resettable::reset_all ( )
static

Definition at line 14 of file resettable.cpp.

Here is the caller graph for this function:

◆ set_reset_priority()

void sensesp::Resettable::set_reset_priority ( int priority)
inline

Definition at line 28 of file resettable.h.

Friends And Related Symbol Documentation

◆ ResettableCompare

friend class ResettableCompare
friend

Definition at line 32 of file resettable.h.


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