Evo C++ Library v0.5.1
Public Member Functions | Public Attributes | List of all members
Signal::Main Struct Reference

#include <evo/process.h>

Inheritance diagram for Signal::Main:
Inheritance graph
[legend]

Detailed Description

Helper for common shutdown signal handling in program main().

Public Member Functions

 Main ()
 Default constructor. More...
 
 Main (Signal::OnShutdown on_shutdown, bool except=1)
 Constructor that sets up shutdown handler. More...
 
 ~Main ()
 Destructor. More...
 

Public Attributes

bool error
 Error flag, set to false on success. More...
 

Constructor & Destructor Documentation

◆ Main() [1/2]

Main ( )
inline

Default constructor.

◆ Main() [2/2]

Main ( Signal::OnShutdown  on_shutdown,
bool  except = 1 
)
inline

Constructor that sets up shutdown handler.

Parameters
on_shutdownShutdown handler to use
exceptWhether to throw an exception on error, default set by Evo config: EVO_EXCEPTIONS

◆ ~Main()

~Main ( )
inline

Destructor.

Member Data Documentation

◆ error

bool error

Error flag, set to false on success.


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