Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::app::SigPipeHelper Class Reference

Helper to catch SIGPIPE. More...

#include <app.hpp>

Public Member Functions

 SigPipeHelper (const bool warn=false)
 Constructor.
 
 ~SigPipeHelper ()
 Destructor.
 
bool Raised ()
 Check if signal was raised.
 

Detailed Description

Helper to catch SIGPIPE.

On construction this installs a handler for SIGPIE. On destruction it sets the handler back to its previous state. Note that signal handlers are global and therefore you can only use one SigPipeHelper in a app.

Definition at line 94 of file app.hpp.

Constructor & Destructor Documentation

◆ SigPipeHelper()

fpsdk::common::app::SigPipeHelper::SigPipeHelper ( const bool warn = false)

Constructor.

Parameters
[in]warnPrint a WARNING() (true) or a DEBUG() (false, default)

Member Function Documentation

◆ Raised()

bool fpsdk::common::app::SigPipeHelper::Raised ( )

Check if signal was raised.

Returns
true if signal was raised, false otherwise

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