144 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables publisher.
Definition: Topic.h:364
NetworkTables Raw entry.
Definition: RawTopic.h:212
RawEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use RawTopic::GetEntry() instead.
TopicType GetTopic() const
Get the corresponding topic.
Definition: RawTopic.inc:86
void Unpublish()
Stops publishing the entry if it's published.
Definition: RawTopic.inc:90
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: RawTopic.h:248
RawTopic TopicType
Definition: RawTopic.h:216
NetworkTables Raw publisher.
Definition: RawTopic.h:160
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: RawTopic.inc:68
std::vector< uint8_t > ValueType
Definition: RawTopic.h:163
TopicType GetTopic() const
Get the corresponding topic.
Definition: RawTopic.inc:77
std::span< const uint8_t > ParamType
Definition: RawTopic.h:164
uint8_t SmallElemType
Definition: RawTopic.h:167
void SetDefault(ParamType value)
Publish a default value.
Definition: RawTopic.inc:73
std::span< uint8_t > SmallRetType
Definition: RawTopic.h:166
NetworkTables Raw subscriber.
Definition: RawTopic.h:32
std::vector< uint8_t > ValueType
Definition: RawTopic.h:35
ValueType Get() const
Get the last published value.
Definition: RawTopic.inc:22
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: RawTopic.inc:39
TimestampedValueViewType GetAtomic(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value along with its timestamp.
SmallRetType Get(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value.
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: RawTopic.inc:57
std::span< uint8_t > SmallRetType
Definition: RawTopic.h:39
RawSubscriber(NT_Subscriber handle, ParamType defaultValue)
Construct from a subscriber handle; recommended to use RawTopic::Subscribe() instead.
TopicType GetTopic() const
Get the corresponding topic.
Definition: RawTopic.inc:61
std::span< const uint8_t > ParamType
Definition: RawTopic.h:36
ValueType Get(ParamType defaultValue) const
Get the last published value.
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
uint8_t SmallElemType
Definition: RawTopic.h:40
NetworkTables Raw topic.
Definition: RawTopic.h:266
std::vector< uint8_t > ValueType
Definition: RawTopic.h:271
RawPublisher PublisherType
Definition: RawTopic.h:269
RawTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetRawTopic() instead.
Definition: RawTopic.h:283
std::span< const uint8_t > ParamType
Definition: RawTopic.h:272
PublisherType PublishEx(std::string_view typeString, const wpi::json &properties, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic, with type string and initial properties.
Definition: RawTopic.inc:107
RawSubscriber SubscriberType
Definition: RawTopic.h:268
RawEntry EntryType
Definition: RawTopic.h:270
EntryType GetEntry(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: RawTopic.inc:114
RawTopic(Topic topic)
Construct from a generic topic.
Definition: RawTopic.h:290
PublisherType Publish(std::string_view typeString, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: RawTopic.inc:101
SubscriberType Subscribe(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: RawTopic.inc:94
NetworkTables subscriber.
Definition: Topic.h:309
NT_Subscriber m_subHandle
Definition: Topic.h:360
NetworkTables Topic.
Definition: Topic.h:28
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:579
basic_string_view< char > string_view
Definition: core.h:501
NT_Handle NT_Topic
Definition: ntcore_c.h:40
NT_Handle NT_Subscriber
Definition: ntcore_c.h:41
NT_Handle NT_Publisher
Definition: ntcore_c.h:42
NT_Handle NT_Entry
Definition: ntcore_c.h:35
Timestamped< std::vector< uint8_t > > TimestampedRaw
Timestamped Raw.
Definition: ntcore_cpp_types.h:463
Timestamped< std::span< uint8_t > > TimestampedRawView
Timestamped Raw view (for SmallVector-taking functions).
Definition: ntcore_cpp_types.h:469
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:390
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:36
Definition: ntcore_cpp.h:26
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:305
Timestamped value.
Definition: ntcore_cpp_types.h:30