24#ifndef GOBY_MIDDLEWARE_TRANSPORT_NULL_H
25#define GOBY_MIDDLEWARE_TRANSPORT_NULL_H
37 public Poller<NullTransporter>
43 template <
typename Data>
static constexpr int scheme()
50 template <typename Data, int scheme = scheme<Data>()>
56 template <typename Data, int scheme = scheme<Data>()>
62 template <typename Data, int scheme = scheme<Data>()>
68 template <typename Data, int scheme = scheme<Data>()>
74 template <typename Data, int scheme = scheme<Data>()>
80 template <typename Data, int scheme = scheme<Data>()>
87 int _poll(std::unique_ptr<std::unique_lock<std::timed_mutex> >& lock) {
return 0; }
Class for grouping publications in the Goby middleware. Analogous to "topics" in ROS,...
A do-nothing transporter that is always inside the last real transporter level. You will never direct...
void publish_dynamic(std::shared_ptr< Data > data, const Group &group, const Publisher< Data > &publisher=Publisher< Data >())
void publish_dynamic(std::shared_ptr< const Data > data, const Group &group, const Publisher< Data > &publisher=Publisher< Data >())
void unsubscribe_dynamic(const Group &group)
NullTransporter()=default
void publish_dynamic(const Data &data, const Group &group, const Publisher< Data > &publisher=Publisher< Data >())
virtual ~NullTransporter()=default
void subscribe_dynamic(std::function< void(std::shared_ptr< const Data >)> f, const Group &group, const Subscriber< Data > &subscriber=Subscriber< Data >())
void subscribe_dynamic(std::function< void(const Data &)> f, const Group &group, const Subscriber< Data > &subscriber=Subscriber< Data >())
static constexpr int scheme()
Utility class for allowing the various Goby middleware transporters to poll the underlying transport ...
Class that holds additional metadata and callback functions related to a publication (and is optional...
Defines the common interface for publishing and subscribing data using static (constexpr) groups on G...
Class that holds additional metadata and callback functions related to a subscription (and is optiona...
goby::util::logger::GroupSetter group(std::string n)
The global namespace for the Goby project.