94 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables Boolean entry.
Definition: BooleanTopic.h:159
BooleanTopic TopicType
Definition: BooleanTopic.h:163
TopicType GetTopic() const
Get the corresponding topic.
Definition: BooleanTopic.inc:66
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: BooleanTopic.h:192
void Unpublish()
Stops publishing the entry if it's published.
Definition: BooleanTopic.inc:70
NetworkTables Boolean publisher.
Definition: BooleanTopic.h:110
void SetDefault(ParamType value)
Publish a default value.
Definition: BooleanTopic.inc:53
TopicType GetTopic() const
Get the corresponding topic.
Definition: BooleanTopic.inc:57
bool ValueType
Definition: BooleanTopic.h:113
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: BooleanTopic.inc:48
bool ParamType
Definition: BooleanTopic.h:114
BooleanPublisher()=default
NetworkTables Boolean subscriber.
Definition: BooleanTopic.h:29
bool ParamType
Definition: BooleanTopic.h:33
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: BooleanTopic.inc:37
ValueType Get() const
Get the last published value.
Definition: BooleanTopic.inc:18
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: BooleanTopic.inc:27
BooleanSubscriber()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: BooleanTopic.inc:41
bool ValueType
Definition: BooleanTopic.h:32
NetworkTables Boolean topic.
Definition: BooleanTopic.h:210
BooleanEntry EntryType
Definition: BooleanTopic.h:214
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: BooleanTopic.h:219
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:81
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: BooleanTopic.inc:102
BooleanTopic(Topic topic)
Construct from a generic topic.
Definition: BooleanTopic.h:236
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:95
BooleanSubscriber SubscriberType
Definition: BooleanTopic.h:212
bool ValueType
Definition: BooleanTopic.h:215
BooleanTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetBooleanTopic() instead.
Definition: BooleanTopic.h:229
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:109
bool ParamType
Definition: BooleanTopic.h:216
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: BooleanTopic.inc:89
BooleanPublisher PublisherType
Definition: BooleanTopic.h:213
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: BooleanTopic.inc:74
NetworkTables publisher.
Definition: Topic.h:345
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 Boolean.
Definition: ntcore_cpp_types.h:28