|
ESPHome 2026.6.2
|
RAII guard that publishes a current source (e.g. More...
#include <application.h>
Public Member Functions | |
| ScopedSourceGuard (const LogString *source) | |
| ~ScopedSourceGuard () | |
| ScopedSourceGuard (const ScopedSourceGuard &)=delete | |
| ScopedSourceGuard & | operator= (const ScopedSourceGuard &)=delete |
RAII guard that publishes a current source (e.g.
a script name) for a scope and restores the previous value on exit, attributing deferred work scheduled inside to that source.
Definition at line 573 of file application.h.
|
inlineexplicit |
Definition at line 575 of file application.h.
|
inline |
Definition at line 578 of file application.h.
|
delete |
|
delete |