10 #ifdef MESSAGE_MANAGER
12 #ifndef WRENCH_MESSAGEMANAGER_H
13 #define WRENCH_MESSAGEMANAGER_H
15 #include <unordered_set>
17 #include <wrench/services/Service.h>
18 #include <wrench/simulation/SimulationMessage.h>
32 class MessageManager {
34 static std::unordered_map<std::string,std::unordered_set<SimulationMessage*>> mailbox_messages;
38 static void manageMessage(
const std::string &mailbox, SimulationMessage* msg);
39 static void cleanUpMessages(
const std::string &mailbox);
40 static void removeReceivedMessage(
const std::string &mailbox, SimulationMessage *msg);
41 static void cleanUpAllMessages();
52 #endif //WRENCH_MESSAGEMANAGER_H
54 #endif //MESSAGE_MANAGER