ServiceMessagePayload.h
1 
11 #ifndef WRENCH_SERVICEMESSAGEPAYLOAD_H
12 #define WRENCH_SERVICEMESSAGEPAYLOAD_H
13 
14 #include <string>
15 
16 #define DECLARE_MESSAGEPAYLOAD_NAME(name) static const std::string name
17 
18 
19 #define SET_MESSAGEPAYLOAD_NAME(classname, name) const std::string classname::name=#name
20 
21 namespace wrench {
22 
23 
28 
29  public:
31  DECLARE_MESSAGEPAYLOAD_NAME(STOP_DAEMON_MESSAGE_PAYLOAD);
33  DECLARE_MESSAGEPAYLOAD_NAME(DAEMON_STOPPED_MESSAGE_PAYLOAD);
34 
35  };
36 
37 };
38 
39 
40 #endif //WRENCH_SERVICEMESSAGEPAYLOAD_H
static const std::string STOP_DAEMON_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to terminate it.
Definition: ServiceMessagePayload.h:31
Configurable message payloads for a Service.
Definition: ServiceMessagePayload.h:27
static const std::string DAEMON_STOPPED_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to confirm it has terminated.
Definition: ServiceMessagePayload.h:33
Definition: TerminalOutput.cpp:15