|
| | GenericEntry ()=default |
| |
| | GenericEntry (NT_Entry handle) |
| | Construct from an entry handle; recommended to use RawTopic::GetEntry() instead.
|
| |
| | operator bool () const |
| | Determines if the native handle is valid.
|
| |
| NT_Entry | GetHandle () const |
| | Gets the native handle for the entry.
|
| |
| TopicType | GetTopic () const |
| | Get the corresponding topic.
|
| |
| void | Unpublish () |
| | Stops publishing the entry if it's published.
|
| |
| | GenericSubscriber ()=default |
| |
| | GenericSubscriber (NT_Subscriber handle) |
| | Construct from a subscriber handle; recommended to use Topic::GenericSubscribe() instead.
|
| |
| ValueType | Get () const |
| | Get the last published value.
|
| |
| bool | GetBoolean (bool defaultValue) const |
| | Gets the entry's value as a boolean.
|
| |
| int64_t | GetInteger (int64_t defaultValue) const |
| | Gets the entry's value as a integer.
|
| |
| float | GetFloat (float defaultValue) const |
| | Gets the entry's value as a float.
|
| |
| double | GetDouble (double defaultValue) const |
| | Gets the entry's value as a double.
|
| |
| std::string | GetString (std::string_view defaultValue) const |
| | Gets the entry's value as a string.
|
| |
| std::vector< uint8_t > | GetRaw (std::span< const uint8_t > defaultValue) const |
| | Gets the entry's value as a raw.
|
| |
| std::vector< int > | GetBooleanArray (std::span< const int > defaultValue) const |
| | Gets the entry's value as a boolean array.
|
| |
| std::vector< int64_t > | GetIntegerArray (std::span< const int64_t > defaultValue) const |
| | Gets the entry's value as a integer array.
|
| |
| std::vector< float > | GetFloatArray (std::span< const float > defaultValue) const |
| | Gets the entry's value as a float array.
|
| |
| std::vector< double > | GetDoubleArray (std::span< const double > defaultValue) const |
| | Gets the entry's value as a double array.
|
| |
| std::vector< std::string > | GetStringArray (std::span< const std::string > defaultValue) const |
| | Gets the entry's value as a string array.
|
| |
| std::vector< TimestampedValueType > | ReadQueue () |
| | Get an array of all value changes since the last call to ReadQueue.
|
| |
| TopicType | GetTopic () const |
| | Get the corresponding topic.
|
| |
| 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.
|
| |
| | GenericPublisher ()=default |
| |
| | GenericPublisher (NT_Publisher handle) |
| | Construct from a publisher handle; recommended to use Topic::GenericPublish() instead.
|
| |
| void | Set (ParamType value) |
| | Publish a new value.
|
| |
| bool | SetBoolean (bool value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetInteger (int64_t value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetFloat (float value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetDouble (double value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetString (std::string_view value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetRaw (std::span< const uint8_t > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetBooleanArray (std::span< const bool > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetBooleanArray (std::span< const int > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetIntegerArray (std::span< const int64_t > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetFloatArray (std::span< const float > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetDoubleArray (std::span< const double > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| bool | SetStringArray (std::span< const std::string > value, int64_t time=0) |
| | Sets the entry's value.
|
| |
| void | SetDefault (ParamType value) |
| | Publish a default value.
|
| |
| bool | SetDefaultBoolean (bool defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultInteger (int64_t defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultFloat (float defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultDouble (double defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultString (std::string_view defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultRaw (std::span< const uint8_t > defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultBooleanArray (std::span< const int > defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultIntegerArray (std::span< const int64_t > defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultFloatArray (std::span< const float > defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultDoubleArray (std::span< const double > defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| bool | SetDefaultStringArray (std::span< const std::string > defaultValue) |
| | Sets the entry's value if it does not exist.
|
| |
| TopicType | GetTopic () const |
| | Get the corresponding topic.
|
| |
| virtual | ~Publisher () |
| |
| | Publisher (const Publisher &)=delete |
| |
| Publisher & | operator= (const Publisher &)=delete |
| |
| | Publisher (Publisher &&rhs) |
| |
| Publisher & | operator= (Publisher &&rhs) |
| |
| | operator bool () const |
| | Determines if the native handle is valid.
|
| |
| NT_Publisher | GetHandle () const |
| | Gets the native handle for the publisher.
|
| |
| Topic | GetTopic () const |
| | Gets the published-to topic.
|
| |
NetworkTables generic entry.
- Note
- Unlike NetworkTableEntry, the entry goes away when this is destroyed.