Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::SignalCapture::Guard Class Reference

Sets recording() for its lifetime, if it wasn't set already. More...

#include <signalcapture_p.h>

Public Member Functions

 Guard ()
 Takes the flag; check active() before recording.
 ~Guard ()
 Gives the flag back, if this guard took it.
bool active () const
 Whether this guard took the flag (false: already recording, so don't).

Private Attributes

bool m_active
 Whether this guard set the flag.

Detailed Description

Sets recording() for its lifetime, if it wasn't set already.


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