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