forked from ChristophKirst/SimKernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sim_signals.h
35 lines (30 loc) · 1009 Bytes
/
sim_signals.h
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
/***************************************************************************
sim_signals.h - signals for messaging and error system
Christoph Kirst
christoph@nld.ds.mpg.de
Max Planck Institue for Dynamics and Self-Organisation Göttingen
HU Berlin, BCCN Göttingen & Berlin (2008)
****************************************************************************/
#ifndef SIM_SIGNALS_H
#define SIM_SIGNALS_H
enum SimSignal {
Success = 0,
AllOutput,
Message,
Msg = Message,
NoMessage,
Warning,
NoWarning,
Abort,
NoAbort,
Exit,
NoExit,
Invalid,
NoOutput
};
bool is_io_signal(const int& sig);
bool is_error_signal(const int& sig);
bool is_throw_signal(const int& sig);
bool is_io_output_signal(const int& sig);
SimSignal to_output_signal(const SimSignal& sig);
#endif