TopicStorage.hh
Go to the documentation of this file.
T at(T... args)
T begin(T... args)
Store address information about topics and provide convenient methods for adding new topics,...
Definition TopicStorage.hh:38
bool HasAnyPublishers(const std::string &_topic, const std::string &_pUuid) const
Return if there is any publisher stored for the given topic and process UUID.
Definition TopicStorage.hh:130
bool DelPublisherByNode(const std::string &_topic, const std::string &_pUuid, const std::string &_nUuid)
Remove a publisher associated to a given topic and UUID pair.
Definition TopicStorage.hh:218
bool Publisher(const std::string &_topic, const std::string &_pUuid, const std::string &_nUuid, T &_publisher) const
Get the address information for a given topic and node UUID.
Definition TopicStorage.hh:165
bool DelPublishersByProc(const std::string &_pUuid)
Remove all the publishers associated to a given process.
Definition TopicStorage.hh:258
bool HasTopic(const std::string &_topic) const
Return if there is any publisher stored for the given topic.
Definition TopicStorage.hh:85
void PublishersByNode(const std::string &_pUuid, const std::string &_nUuid, std::vector< T > &_pubs) const
Given a process UUID and the node UUID, the function returns the list of publishers contained in the ...
Definition TopicStorage.hh:308
bool HasPublisher(const std::string &_addr) const
Return if the requested publisher's address is stored.
Definition TopicStorage.hh:143
bool AddPublisher(const T &_publisher)
Add a new address associated to a given topic and node UUID.
Definition TopicStorage.hh:49
bool Publishers(const std::string &_topic, std::map< std::string, std::vector< T > > &_info) const
Get the map of publishers stored for a given topic.
Definition TopicStorage.hh:203
bool HasTopic(const std::string &_topic, const std::string &_type) const
Return if there is any publisher stored for the given topic and type.
Definition TopicStorage.hh:96
void PublishersByProc(const std::string &_pUuid, std::map< std::string, std::vector< T > > &_pubs) const
Given a process UUID, the function returns the list of publishers contained in this process UUID with...
Definition TopicStorage.hh:282
void Print() const
Print all the information for debugging purposes.
Definition TopicStorage.hh:342
void TopicList(std::vector< std::string > &_topics) const
Get the list of topics currently stored.
Definition TopicStorage.hh:335
T clear(T... args)
T end(T... args)
T endl(T... args)
T erase(T... args)
T find(T... args)
*brief Advertise a new service without any output parameter *In this version the callback is a free function *param[in] _topic Topic name associated to the service *param[in] _cb Callback to handle the service request with the *following void(*) const AdvertiseServiceOptions ReplyT const std::string _topic)
Definition Node.hh:558
Definition AdvertiseOptions.hh:28
T push_back(T... args)
T remove_if(T... args)
T size(T... args)