---
name: "ACE_Sig_Set"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Sig_Set"
---

# ACE\_Sig\_Set(3)

Provide a C++ wrapper for the C sigset\_t interface.

## NAME

ACE\_Sig\_Set -  Provide a C++ wrapper for the C sigset\_t interface.

## SYNOPSIS

```
#include <ace/Signal.h>
class ACE_Sig_Set
{
  public:
    ACE_Sig_Set (sigset_t *sigset);
    ACE_Sig_Set (ACE_Sig_Set *sigset);
    ACE_Sig_Set (int fill = 0);
    ~ACE_Sig_Set (void);
    int empty_set (void);
    int fill_set (void);
    int sig_add (int signo);
    int sig_del (int signo);
    int is_member (int signo) const;
    operator sigset_t *();
    sigset_t sigset (void) const;
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    sigset_t sigset_;
};
```

## DESCRIPTION

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

## Initialization and termination methods.

```
ACE_Sig_Set (sigset_t *sigset);
```

Initialize sigset\_ with sigset.  If sigset == 0 then fill the set.

```
ACE_Sig_Set (ACE_Sig_Set *sigset);
```

Initialize sigset\_ with sigset.  If sigset == 0 then fill the set.

```
ACE_Sig_Set (int fill = 0);
```

If fill == 0 then initialize the sigset\_ to be empty, else full.

```
~ACE_Sig_Set (void);
```

```
int empty_set (void);
```

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

```
int fill_set (void);
```

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 (void) const;
```

Returns a copy of the underlying sigset\_t.

```
void dump (void) const;
```

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
