Go to the documentation of this file.
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; }
void unsubscribe_dynamic(const Group &group)
A do-nothing transporter that is always inside the last real transporter level. You will never direct...
Defines the common interface for publishing and subscribing data using static (constexpr) groups on G...
The global namespace for the Goby project.
NullTransporter()=default
void publish_dynamic(const Data &data, const Group &group, const Publisher< Data > &publisher=Publisher< Data >())
Class that holds additional metadata and callback functions related to a subscription (and is optiona...
Utility class for allowing the various Goby middleware transporters to poll the underlying transport ...
goby::util::logger::GroupSetter group(std::string n)
Class that holds additional metadata and callback functions related to a publication (and is optional...
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 >())
static constexpr int scheme()
Class for grouping publications in the Goby middleware. Analogous to "topics" in ROS,...
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 >())
virtual ~NullTransporter()=default