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"
35 class MessageManager {
37 static std::unordered_map<std::string,std::unordered_set<SimulationMessage*>> mailbox_messages;
41 static void manageMessage(
const std::string &mailbox, SimulationMessage* msg);
42 static void cleanUpMessages(
const std::string &mailbox);
43 static void removeReceivedMessage(
const std::string &mailbox, SimulationMessage *msg);
44 static void cleanUpAllMessages();
55 #endif //WRENCH_MESSAGEMANAGER_H
57 #endif //MESSAGE_MANAGER