27class StringArrayTopic;
97 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables publisher.
Definition: Topic.h:364
NetworkTables StringArray entry.
Definition: StringArrayTopic.h:162
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: StringArrayTopic.h:195
void Unpublish()
Stops publishing the entry if it's published.
Definition: StringArrayTopic.inc:74
TopicType GetTopic() const
Get the corresponding topic.
Definition: StringArrayTopic.inc:70
StringArrayEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use StringArrayTopic::GetEntry() instead.
StringArrayTopic TopicType
Definition: StringArrayTopic.h:166
StringArrayEntry()=default
NetworkTables StringArray publisher.
Definition: StringArrayTopic.h:113
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: StringArrayTopic.inc:52
StringArrayPublisher()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: StringArrayTopic.inc:61
void SetDefault(ParamType value)
Publish a default value.
Definition: StringArrayTopic.inc:57
std::vector< std::string > ValueType
Definition: StringArrayTopic.h:116
std::span< const std::string > ParamType
Definition: StringArrayTopic.h:117
NetworkTables StringArray subscriber.
Definition: StringArrayTopic.h:32
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: StringArrayTopic.inc:41
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: StringArrayTopic.inc:31
TopicType GetTopic() const
Get the corresponding topic.
Definition: StringArrayTopic.inc:45
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
StringArraySubscriber()=default
std::vector< std::string > ValueType
Definition: StringArrayTopic.h:35
ValueType Get(ParamType defaultValue) const
Get the last published value.
ValueType Get() const
Get the last published value.
Definition: StringArrayTopic.inc:22
StringArraySubscriber(NT_Subscriber handle, ParamType defaultValue)
Construct from a subscriber handle; recommended to use StringArrayTopic::Subscribe() instead.
std::span< const std::string > ParamType
Definition: StringArrayTopic.h:36
NetworkTables StringArray topic.
Definition: StringArrayTopic.h:213
StringArrayTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetStringArrayTopic() instead...
Definition: StringArrayTopic.h:232
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: StringArrayTopic.inc:99
StringArrayPublisher PublisherType
Definition: StringArrayTopic.h:216
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: StringArrayTopic.inc:106
StringArrayTopic()=default
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: StringArrayTopic.inc:85
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: StringArrayTopic.inc:113
StringArrayTopic(Topic topic)
Construct from a generic topic.
Definition: StringArrayTopic.h:239
std::vector< std::string > ValueType
Definition: StringArrayTopic.h:218
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: StringArrayTopic.inc:78
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: StringArrayTopic.h:222
StringArraySubscriber SubscriberType
Definition: StringArrayTopic.h:215
std::span< const std::string > ParamType
Definition: StringArrayTopic.h:219
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: StringArrayTopic.inc:93
StringArrayEntry EntryType
Definition: StringArrayTopic.h:217
NetworkTables subscriber.
Definition: Topic.h:309
NT_Subscriber m_subHandle
Definition: Topic.h:360
NetworkTables Topic.
Definition: Topic.h:28
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< std::string > > TimestampedStringArray
Timestamped StringArray.
Definition: ntcore_cpp_types.h:923
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