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