18 #ifndef GZ_SIM_MSGMANAGER_HH_
19 #define GZ_SIM_MSGMANAGER_HH_
24 #include <unordered_map>
26 #include <gz/msgs/dataframe.pb.h>
27 #include <gz/msgs/stringmsg_v.pb.h>
28 #include <gz/transport/Node.hh>
29 #include <gz/utils/ImplPtr.hh>
30 #include "gz/sim/config.hh"
44 inline namespace GZ_SIM_VERSION_NAMESPACE {
93 public:
bool AddSubscriber(
const std::string &_address,
100 public:
void AddInbound(
const std::string &_address,
101 const msgs::DataframeSharedPtr &_msg);
106 public:
void AddOutbound(
const std::string &_address,
107 const msgs::DataframeSharedPtr &_msg);
113 public:
bool RemoveSubscriber(
const std::string &_address,
120 public:
bool RemoveInbound(
const std::string &_address,
121 const msgs::DataframeSharedPtr &_msg);
127 public:
bool RemoveOutbound(
const std::string &_address,
128 const msgs::DataframeSharedPtr &_msg);
132 public:
void DeliverMsgs();
137 public:
const Registry &DataConst()
const;
154 GZ_UTILS_UNIQUE_IMPL_PTR(dataPtr)