Rudiments: signalset Class Reference

Rudiments

- Main Page
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Friends | List of all members
signalset Class Reference

## Public Member Functions
| signalset ()
| ~signalset ()
bool | addSignal (int32_t signum)
bool | addAllSignals ()
bool | removeSignal (int32_t signum)
bool | removeShutDownSignals ()
bool | removeCrashSignals ()
bool | removeAllSignals ()
int32_t | signalIsInSet (int32_t signum) const

## Friends
class | signalmanager
class | signalhandler

## Detailed Description

A signalset it just a collection of signals. Many signal-related functions take signalsets for arguments. The signalset class makes signalsets easy to manage.

## Constructor & Destructor Documentation

signalset::signalset | ( |  | ) |

Creates an instance of the signalset class.

signalset::~signalset | ( |  | ) |

Deletes this instance of the signalset class.

## Member Function Documentation

bool signalset::addAllSignals | ( |  | ) |

Add all signals to the set. Returns true on success and false on failure.

bool signalset::addSignal | ( | int32_t | signum | ) |

Add the signal "signum" to the set. Returns true on success and false on failure.

bool signalset::removeAllSignals | ( |  | ) |

Remove all signals from the set. Returns true on success and false on failure.

bool signalset::removeCrashSignals | ( |  | ) |

Remove signals from the set that the process class listens for in its handleCrash() method.

bool signalset::removeShutDownSignals | ( |  | ) |

Remove signals from the set that the process class listens for in its handleShutDown() method.

bool signalset::removeSignal | ( | int32_t | signum | ) |

Remove the signal "signum" from the set. Returns true on success and false on failure.

int32_t signalset::signalIsInSet | ( | int32_t | signum | ) | const

Returns 1 if the signal "signum" is in the set, 0 if it is not and -1 on error.