WPILibC++ 2023.4.3
|
NetworkTables subscriber. More...
#include <networktables/Topic.h>
Public Member Functions | |
virtual | ~Subscriber () |
Subscriber (const Subscriber &)=delete | |
Subscriber & | operator= (const Subscriber &)=delete |
Subscriber (Subscriber &&) | |
Subscriber & | operator= (Subscriber &&) |
operator bool () const | |
Determines if the native handle is valid. More... | |
NT_Subscriber | GetHandle () const |
Gets the native handle for the subscriber. More... | |
bool | Exists () const |
Determines if the topic is currently being published. More... | |
int64_t | GetLastChange () const |
Gets the last time the value was changed. More... | |
Topic | GetTopic () const |
Gets the subscribed-to topic. More... | |
Protected Member Functions | |
Subscriber ()=default | |
Subscriber (NT_Subscriber handle) | |
Protected Attributes | |
NT_Subscriber | m_subHandle {0} |
NetworkTables subscriber.
|
inlinevirtual |
|
delete |
|
inline |
|
protecteddefault |
|
inlineexplicitprotected |
|
inline |
Determines if the topic is currently being published.
|
inline |
Gets the native handle for the subscriber.
|
inline |
Gets the last time the value was changed.
Note: this is not atomic with Get(); use GetAtomic() to get both the value and last change as an atomic operation.
|
inlineexplicit |
Determines if the native handle is valid.
|
delete |
|
inline |
|
protected |