-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoopSignalManagerImpl.hpp
More file actions
46 lines (34 loc) · 1.46 KB
/
NoopSignalManagerImpl.hpp
File metadata and controls
46 lines (34 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#if !defined NOOP_SIGNAL_MANAGER_IMPL_HPP
#define NOOP_SIGNAL_MANAGER_IMPL_HPP
#include <string>
#include <unordered_set>
#include "SignalManagerImpl.hpp"
class NoopSignalManagerImpl : public SignalManagerImpl
{
public:
// These do nothing
NoopSignalManagerImpl();
virtual ~NoopSignalManagerImpl();
// Does nothing. See the base class for a description of what this is
// supposed to do in a meaningful implementation.
virtual bool registerSignal(int sig);
// Does nothing. See the base class for a description of what this is
// supposed to do in a meaningful implementation.
virtual void signal(int sig);
// Does nothing. See the base class for a description of what this is
// supposed to do in a meaningful implementation.
virtual bool isSignalDelivered(int sig);
// Does nothing. See the base class for a description of what this is
// supposed to do in a meaningful implementation.
virtual
void getSupportedSignals(std::unordered_set<int>& supported_signals);
// Does nothing. See the base class for a description of what this is
// supposed to do in a meaningful implementation.
virtual void getSignalName(int sig, std::string& signal_name);
private:
// Disallow these for now; maybe these could be meaningfully implemented but
// we'll save that for later
NoopSignalManagerImpl(const NoopSignalManagerImpl&);
NoopSignalManagerImpl& operator=(const NoopSignalManagerImpl&);
};
#endif