24class StringArrayTopic;
94 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables publisher.
Definition: Topic.h:345
NetworkTables StringArray entry.
Definition: StringArrayTopic.h:159
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: StringArrayTopic.h:192
void Unpublish()
Stops publishing the entry if it's published.
Definition: StringArrayTopic.inc:70
TopicType GetTopic() const
Get the corresponding topic.
Definition: StringArrayTopic.inc:66
StringArrayEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use StringArrayTopic::GetEntry() instead.
StringArrayTopic TopicType
Definition: StringArrayTopic.h:163
StringArrayEntry()=default
NetworkTables StringArray publisher.
Definition: StringArrayTopic.h:110
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: StringArrayTopic.inc:48
StringArrayPublisher()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: StringArrayTopic.inc:57
void SetDefault(ParamType value)
Publish a default value.
Definition: StringArrayTopic.inc:53
std::vector< std::string > ValueType
Definition: StringArrayTopic.h:113
std::span< const std::string > ParamType
Definition: StringArrayTopic.h:114
NetworkTables StringArray subscriber.
Definition: StringArrayTopic.h:29
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: StringArrayTopic.inc:37
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: StringArrayTopic.inc:27
TopicType GetTopic() const
Get the corresponding topic.
Definition: StringArrayTopic.inc:41
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
StringArraySubscriber()=default
std::vector< std::string > ValueType
Definition: StringArrayTopic.h:32
ValueType Get(ParamType defaultValue) const
Get the last published value.
ValueType Get() const
Get the last published value.
Definition: StringArrayTopic.inc:18
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:33
NetworkTables StringArray topic.
Definition: StringArrayTopic.h:210
StringArrayTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetStringArrayTopic() instead...
Definition: StringArrayTopic.h:229
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:95
StringArrayPublisher PublisherType
Definition: StringArrayTopic.h:213
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: StringArrayTopic.inc:102
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:81
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:109
StringArrayTopic(Topic topic)
Construct from a generic topic.
Definition: StringArrayTopic.h:236
std::vector< std::string > ValueType
Definition: StringArrayTopic.h:215
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: StringArrayTopic.inc:74
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: StringArrayTopic.h:219
StringArraySubscriber SubscriberType
Definition: StringArrayTopic.h:212
std::span< const std::string > ParamType
Definition: StringArrayTopic.h:216
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: StringArrayTopic.inc:89
StringArrayEntry EntryType
Definition: StringArrayTopic.h:214
NetworkTables subscriber.
Definition: Topic.h:290
NT_Subscriber m_subHandle
Definition: Topic.h:341
NetworkTables Topic.
Definition: Topic.h:30
a class to store JSON values
Definition: json.h:2655
basic_string_view< char > string_view
Definition: core.h:520
NT_Handle NT_Topic
Definition: ntcore_c.h:38
NT_Handle NT_Subscriber
Definition: ntcore_c.h:39
NT_Handle NT_Publisher
Definition: ntcore_c.h:40
NT_Handle NT_Entry
Definition: ntcore_c.h:33
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:381
::int64_t int64_t
Definition: Meta.h:59
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:35
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:304
Timestamped StringArray.
Definition: ntcore_cpp_types.h:1200