| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #ifndef __MESSAGE_TYPE_H__ | ||
| 8 | #define __MESSAGE_TYPE_H__ | ||
| 9 | |||
| 10 | #include <ctime> | ||
| 11 | #include "phoenix_data_stream.h" | ||
| 12 | #include "phoenix_check_stream.h" | ||
| 13 | |||
| 14 | namespace MessageType{ | ||
| 15 | ///Type of the Message which can be exchanged by Daemon | ||
| 16 | enum MessageType{ | ||
| 17 | NONE = 0, //Nothing to do | ||
| 18 | STOP = 1, //Stop the Daemon properly (it can stop current work before stopping) | ||
| 19 | KILL = 2, //Kill the Daemon (it will not stop current work properly) | ||
| 20 | MESSAGE_CONFIRMATION = 5,//Confirmation that the message of certain id was correctly distributed | ||
| 21 | API_DISCOVERY = 6, //Request the API (data and callable functions) of the Daemon | ||
| 22 | API_DESCRITPION = 7, //Send description of the API of the given Daemon | ||
| 23 | ADD_DAEMON = 8, //Add a Daemon in the map of all known Daemon | ||
| 24 | REMOVE_DAEMON = 9, //Remove a Daemon in the map of all known Daemon | ||
| 25 | CALL_DATA = 10, //Ask for a Data value of a Daemon | ||
| 26 | RESULT_DATA = 11, //Result of a Data value from a Deamon | ||
| 27 | CALL_FUNCTION = 12, //Call of a function on a Daemon | ||
| 28 | RESULT_FUNCTION = 13, //Result of a called function from a Deamon | ||
| 29 | ERROR = 14 //Error on a function call from a Daemon | ||
| 30 | }; | ||
| 31 | } | ||
| 32 | |||
| 33 |
1/1✓ Branch 0 (2→3) taken 87 times.
|
174 | PHOENIX_DATA_STREAM_ENUM(MessageType::MessageType) |
| 34 |
3/3✓ Branch 0 (2→3) taken 5 times.
✓ Branch 2 (3→4) taken 5 times.
✓ Branch 4 (4→5) taken 5 times.
|
5 | PHOENIX_CHECK_STREAM_ENUM(MessageType::MessageType) |
| 35 | |||
| 36 | #endif | ||
| 37 | |||
| 38 |