WPILibC++ 2024.3.2
|
NetworkTables Raw publisher. More...
Public Types | |
using | TopicType = RawTopic |
using | ValueType = std::vector< uint8_t > |
using | ParamType = std::span< const uint8_t > |
using | SmallRetType = std::span< uint8_t > |
using | SmallElemType = uint8_t |
using | TimestampedValueType = TimestampedRaw |
Public Member Functions | |
RawPublisher ()=default | |
RawPublisher (NT_Publisher handle) | |
Construct from a publisher handle; recommended to use RawTopic::Publish() instead. More... | |
void | Set (ParamType value, int64_t time=0) |
Publish a new value. More... | |
void | SetDefault (ParamType value) |
Publish a default value. More... | |
TopicType | GetTopic () const |
Get the corresponding topic. More... | |
Public Member Functions inherited from nt::Publisher | |
virtual | ~Publisher () |
Publisher (const Publisher &)=delete | |
Publisher & | operator= (const Publisher &)=delete |
Publisher (Publisher &&) | |
Publisher & | operator= (Publisher &&) |
operator bool () const | |
Determines if the native handle is valid. More... | |
NT_Publisher | GetHandle () const |
Gets the native handle for the publisher. More... | |
Topic | GetTopic () const |
Gets the published-to topic. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from nt::Publisher | |
Publisher ()=default | |
Publisher (NT_Publisher handle) | |
Protected Attributes inherited from nt::Publisher | |
NT_Publisher | m_pubHandle {0} |
NetworkTables handle. More... | |
NetworkTables Raw publisher.
using nt::RawPublisher::ParamType = std::span<const uint8_t> |
using nt::RawPublisher::SmallElemType = uint8_t |
using nt::RawPublisher::SmallRetType = std::span<uint8_t> |
using nt::RawPublisher::TopicType = RawTopic |
using nt::RawPublisher::ValueType = std::vector<uint8_t> |
|
default |
|
inlineexplicit |
Construct from a publisher handle; recommended to use RawTopic::Publish() instead.
handle | Native handle |
|
inline |
Publish a new value.
value | value to publish |
time | timestamp; 0 indicates current NT time should be used |
|
inline |
Publish a default value.
On reconnect, a default value will never be used in preference to a published value.
value | value |