32 std::span<const std::string_view> prefixes,
48 m_handle = rhs.m_handle;
64 explicit operator bool()
const {
return m_handle != 0; }
Subscribe to multiple topics based on one or more topic name prefixes.
Definition MultiSubscriber.h:20
~MultiSubscriber()
Definition MultiSubscriber.h:53
MultiSubscriber & operator=(MultiSubscriber &&rhs)
Definition MultiSubscriber.h:44
NT_MultiSubscriber GetHandle() const
Gets the native handle.
Definition MultiSubscriber.h:71
MultiSubscriber(MultiSubscriber &&rhs)
Definition MultiSubscriber.h:40
MultiSubscriber(const MultiSubscriber &)=delete
MultiSubscriber(NetworkTableInstance inst, std::span< const std::string_view > prefixes, const PubSubOptions &options=kDefaultPubSubOptions)
Create a multiple subscriber.
Definition MultiSubscriber.h:31
MultiSubscriber()=default
MultiSubscriber & operator=(const MultiSubscriber &)=delete
NetworkTables Instance.
Definition NetworkTableInstance.h:68
NT_MultiSubscriber SubscribeMultiple(NT_Inst inst, std::span< const std::string_view > prefixes, const PubSubOptions &options=kDefaultPubSubOptions)
Subscribes to multiple topics based on one or more topic name prefixes.
void UnsubscribeMultiple(NT_MultiSubscriber sub)
Unsubscribes a multi-subscriber.
NT_Handle NT_MultiSubscriber
Definition ntcore_c.h:41
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition ntcore_cpp.h:390
NetworkTables (ntcore) namespace.
Definition ntcore_cpp.h:36
NetworkTables publish/subscribe options.
Definition ntcore_cpp.h:305