![]() |
WPILibC++ 2025.3.2
|
NetworkTables subscriber. More...
#include <networktables/Topic.h>
Public Member Functions | |
| virtual | ~Subscriber () |
| Subscriber (const Subscriber &)=delete | |
| Subscriber & | operator= (const Subscriber &)=delete |
| Subscriber (Subscriber &&rhs) | |
| Subscriber & | operator= (Subscriber &&rhs) |
| operator bool () const | |
| Determines if the native handle is valid. | |
| NT_Subscriber | GetHandle () const |
| Gets the native handle for the subscriber. | |
| bool | Exists () const |
| Determines if the topic is currently being published. | |
| int64_t | GetLastChange () const |
| Gets the last time the value was changed. | |
| Topic | GetTopic () const |
| Gets the subscribed-to topic. | |
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 |