21class ShuffleboardContainer;
27 std::string_view typeString, std::function<T()> supplier,
31 m_typeString(typeString),
35 void BuildInto(std::shared_ptr<nt::NetworkTable> parentTable,
36 std::shared_ptr<nt::NetworkTable> metaTable)
override {
38 if (!m_controllablePub) {
41 m_controllablePub.
Set(
false);
48 m_setter(m_entry, m_supplier());
35 void BuildInto(std::shared_ptr<nt::NetworkTable> parentTable, {
…}
52 std::string m_typeString;
53 std::function<T()> m_supplier;
void BuildMetadata(std::shared_ptr< nt::NetworkTable > metaTable)
Common interface for objects that can contain shuffleboard components.
Definition ShuffleboardContainer.h:42
Definition ShuffleboardValue.h:15
const std::string & GetTitle() const
Gets the title of this Shuffleboard value.
Definition ShuffleboardValue.h:27
NetworkTables Boolean publisher.
Definition BooleanTopic.h:127
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition BooleanTopic.h:151
NetworkTables Boolean topic.
Definition BooleanTopic.h:235
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition BooleanTopic.h:327
NetworkTables generic publisher.
Definition GenericEntry.h:219
TopicType GetTopic() const
Get the corresponding topic.
Definition GenericEntry.h:501
GenericPublisher GenericPublish(std::string_view typeString, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.