|
| | BooleanArrayTopic ()=default |
| |
| | BooleanArrayTopic (NT_Topic handle) |
| | Construct from a topic handle; recommended to use NetworkTableInstance::GetBooleanArrayTopic() instead.
|
| |
| | BooleanArrayTopic (Topic topic) |
| | Construct from a generic topic.
|
| |
| SubscriberType | Subscribe (ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new subscriber to the topic.
|
| |
| SubscriberType | SubscribeEx (std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new subscriber to the topic, with specific type string.
|
| |
| PublisherType | Publish (const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new publisher to the topic.
|
| |
| 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.
|
| |
| EntryType | GetEntry (ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new entry for the topic.
|
| |
| EntryType | GetEntryEx (std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new entry for the topic, with specific type string.
|
| |
| | Topic ()=default |
| |
| | Topic (NT_Topic handle) |
| |
| | operator bool () const |
| | Determines if the native handle is valid.
|
| |
| NT_Topic | GetHandle () const |
| | Gets the native handle for the topic.
|
| |
| NetworkTableInstance | GetInstance () const |
| | Gets the instance for the topic.
|
| |
| std::string | GetName () const |
| | Gets the name of the topic.
|
| |
| NetworkTableType | GetType () const |
| | Gets the type of the topic.
|
| |
| std::string | GetTypeString () const |
| | Gets the type string of the topic.
|
| |
| void | SetPersistent (bool persistent) |
| | Make value persistent through server restarts.
|
| |
| bool | IsPersistent () const |
| | Returns whether the value is persistent through server restarts.
|
| |
| void | SetRetained (bool retained) |
| | Make the server retain the topic even when there are no publishers.
|
| |
| bool | IsRetained () const |
| | Returns whether the topic is retained by server when there are no publishers.
|
| |
| void | SetCached (bool cached) |
| | Allow storage of the topic's last value, allowing the value to be read (and not just accessed through event queues and listeners).
|
| |
| bool | IsCached () const |
| | Returns whether the topic's last value is stored.
|
| |
| bool | Exists () const |
| | Determines if the topic is currently being published.
|
| |
| wpi::json | GetProperty (std::string_view name) const |
| | Gets the current value of a property (as a JSON object).
|
| |
| void | SetProperty (std::string_view name, const wpi::json &value) |
| | Sets a property value.
|
| |
| void | DeleteProperty (std::string_view name) |
| | Deletes a property.
|
| |
| wpi::json | GetProperties () const |
| | Gets all topic properties as a JSON object.
|
| |
| bool | SetProperties (const wpi::json &properties) |
| | Updates multiple topic properties.
|
| |
| TopicInfo | GetInfo () const |
| | Gets combined information about the topic.
|
| |
| GenericSubscriber | GenericSubscribe (const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new subscriber to the topic.
|
| |
| GenericSubscriber | GenericSubscribe (std::string_view typeString, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new subscriber to the topic.
|
| |
| GenericPublisher | GenericPublish (std::string_view typeString, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new publisher to the topic.
|
| |
| GenericPublisher | GenericPublishEx (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.
|
| |
| GenericEntry | GetGenericEntry (const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new generic entry for the topic.
|
| |
| GenericEntry | GetGenericEntry (std::string_view typeString, const PubSubOptions &options=kDefaultPubSubOptions) |
| | Create a new generic entry for the topic.
|
| |
| bool | operator== (const Topic &) const =default |
| | Equality operator.
|
| |
NetworkTables BooleanArray topic.