Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openmrn_arduino::Esp32WiFiManager::UplinkNotifiable Class Reference

This class provides a proxy for the Notifiable provided by the SocketClient. More...

Inheritance diagram for openmrn_arduino::Esp32WiFiManager::UplinkNotifiable:
Notifiable Destructable

Public Member Functions

 UplinkNotifiable (Esp32WiFiManager *parent)
 Constructor.
 
virtual void notify () override
 Proxies the notify() call to the uplink if it is not null.
 

Private Attributes

Esp32WiFiManagerparent_
 Esp32WiFiManager instance that manages this class instance.
 

Detailed Description

This class provides a proxy for the Notifiable provided by the SocketClient.

This is necessary to ensure the Notifiable does not get invalidated when the SocketClient is deleted prior to the socket being closed.

Definition at line 591 of file Esp32WiFiManager.hxx.

Constructor & Destructor Documentation

◆ UplinkNotifiable()

openmrn_arduino::Esp32WiFiManager::UplinkNotifiable::UplinkNotifiable ( Esp32WiFiManager parent)
inline

Constructor.

Parameters
parentEsp32WiFiManager instance that this notifiable will interact with for uplink disconnect events.

Definition at line 598 of file Esp32WiFiManager.hxx.

Member Function Documentation

◆ notify()

virtual void openmrn_arduino::Esp32WiFiManager::UplinkNotifiable::notify ( )
inlineoverridevirtual

Proxies the notify() call to the uplink if it is not null.

Implements Notifiable.

Definition at line 603 of file Esp32WiFiManager.hxx.

Member Data Documentation

◆ parent_

Esp32WiFiManager* openmrn_arduino::Esp32WiFiManager::UplinkNotifiable::parent_
private

Esp32WiFiManager instance that manages this class instance.

Definition at line 614 of file Esp32WiFiManager.hxx.


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