libcosmos
Linux C++ System Programming Library
|
Represents a POSIX signal number and offers a minimal API around it. More...
#include <types.hxx>
Public Member Functions | |
constexpr | Signal (const SignalNr sig) |
Creates a Signal object for the given primitive signal number. | |
constexpr | Signal (const Signal &o) |
constexpr Signal & | operator= (const Signal &o) |
bool | operator== (const Signal &o) const |
bool | operator!= (const Signal &o) const |
bool | operator< (const Signal &o) const |
bool | operator<= (const Signal &o) const |
bool | operator> (const Signal &o) const |
bool | operator>= (const Signal &o) const |
SignalNr | raw () const |
Returns the primitive signal number stored in this object. | |
std::string | name () const |
Returns a human readable label for the currently stored signal number. | |
bool | valid () const |
Protected Attributes | |
SignalNr | m_sig = SignalNr::NONE |
The raw signal number. | |
Represents a POSIX signal number and offers a minimal API around it.
|
inlineexplicitconstexpr |
|
inlineconstexpr |
std::string cosmos::Signal::name | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |