ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
ACE_Sig_Set Class Reference

Provide a C++ wrapper for the C sigset_t interface. More...

#include <Signal.h>

Public Member Functions

 ACE_Sig_Set (sigset_t *sigset)
 
 ACE_Sig_Set (ACE_Sig_Set *sigset)
 
 ACE_Sig_Set (bool fill=false)
 
 ~ACE_Sig_Set ()
 
int empty_set ()
 Create a set that excludes all signals defined by the system.
 
int fill_set ()
 Create a set that includes all signals defined by the system.
 
int sig_add (int signo)
 Adds the individual signal specified by signo to the set.
 
int sig_del (int signo)
 Deletes the individual signal specified by signo from the set.
 
int is_member (int signo) const
 Checks whether the signal specified by signo is in the set.
 
 operator sigset_t * ()
 Returns a pointer to the underlying sigset_t.
 
sigset_t sigset () const
 Returns a copy of the underlying sigset_t.
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Private Attributes

sigset_t sigset_
 Set of signals.
 

Detailed Description

Provide a C++ wrapper for the C sigset_t interface.

Handle signals via a more elegant C++ interface (e.g., doesn't require the use of global variables or global functions in an application).

Constructor & Destructor Documentation

◆ ACE_Sig_Set() [1/3]

ACE_Sig_Set::ACE_Sig_Set ( sigset_t * sigset)
inline

Initialize sigset_ with sigset. If sigset == 0 then fill the set.

◆ ACE_Sig_Set() [2/3]

ACE_Sig_Set::ACE_Sig_Set ( ACE_Sig_Set * sigset)
inline

Initialize sigset_ with sigset. If sigset == 0 then fill the set.

◆ ACE_Sig_Set() [3/3]

ACE_Sig_Set::ACE_Sig_Set ( bool fill = false)
inline

If fill == false then initialize the sigset_ to be empty, else full.

◆ ~ACE_Sig_Set()

ACE_Sig_Set::~ACE_Sig_Set ( )

Member Function Documentation

◆ dump()

void ACE_Sig_Set::dump ( ) const

Dump the state of an object.

◆ empty_set()

int ACE_Sig_Set::empty_set ( )
inline

Create a set that excludes all signals defined by the system.

◆ fill_set()

int ACE_Sig_Set::fill_set ( )
inline

Create a set that includes all signals defined by the system.

◆ is_member()

int ACE_Sig_Set::is_member ( int signo) const
inline

Checks whether the signal specified by signo is in the set.

◆ operator sigset_t *()

ACE_Sig_Set::operator sigset_t * ( )
inline

Returns a pointer to the underlying sigset_t.

◆ sig_add()

int ACE_Sig_Set::sig_add ( int signo)
inline

Adds the individual signal specified by signo to the set.

◆ sig_del()

int ACE_Sig_Set::sig_del ( int signo)
inline

Deletes the individual signal specified by signo from the set.

◆ sigset()

sigset_t ACE_Sig_Set::sigset ( ) const
inline

Returns a copy of the underlying sigset_t.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Sig_Set::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ sigset_

sigset_t ACE_Sig_Set::sigset_
private

Set of signals.


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