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