59 std::function<
bool()> getter,
60 std::function<
void(
bool)> setter) = 0;
70 std::function<
int64_t()> getter,
71 std::function<
void(
int64_t)> setter) = 0;
81 std::function<
float()> getter,
82 std::function<
void(
float)> setter) = 0;
92 std::function<
double()> getter,
93 std::function<
void(
double)> setter) = 0;
115 std::function<
void(std::span<const int>)> setter) = 0;
126 std::function<
void(std::span<const int64_t>)> setter) = 0;
137 std::function<
void(std::span<const float>)> setter) = 0;
148 std::function<
void(std::span<const double>)> setter) = 0;
159 std::function<
void(std::span<const std::string>)> setter) = 0;
171 std::function<std::vector<uint8_t>()> getter,
172 std::function<
void(std::span<const uint8_t>)> setter) = 0;
197 std::function<
void(std::span<const int>)> setter) = 0;
211 std::function<
void(std::span<const int64_t>)> setter) = 0;
224 std::function<
void(std::span<const float>)> setter) = 0;
237 std::function<
void(std::span<const double>)> setter) = 0;
251 std::function<
void(std::span<const std::string>)> setter) = 0;
265 std::function<
void(std::span<const uint8_t>)> setter) = 0;
This file defines the SmallVector class.
Definition: SendableBuilder.h:18
virtual void AddDoubleProperty(std::string_view key, std::function< double()> getter, std::function< void(double)> setter)=0
Add a double property.
virtual void AddSmallBooleanArrayProperty(std::string_view key, std::function< std::span< const int >(wpi::SmallVectorImpl< int > &buf)> getter, std::function< void(std::span< const int >)> setter)=0
Add a boolean array property (SmallVector form).
virtual ~SendableBuilder()=default
virtual void AddRawProperty(std::string_view key, std::string_view typeString, std::function< std::vector< uint8_t >()> getter, std::function< void(std::span< const uint8_t >)> setter)=0
Add a raw property.
virtual void AddStringArrayProperty(std::string_view key, std::function< std::vector< std::string >()> getter, std::function< void(std::span< const std::string >)> setter)=0
Add a string array property.
virtual void AddFloatProperty(std::string_view key, std::function< float()> getter, std::function< void(float)> setter)=0
Add a float property.
virtual void SetSmartDashboardType(std::string_view type)=0
Set the string representation of the named data type that will be used by the smart dashboard for thi...
virtual void ClearProperties()=0
Clear properties.
virtual void AddBooleanArrayProperty(std::string_view key, std::function< std::vector< int >()> getter, std::function< void(std::span< const int >)> setter)=0
Add a boolean array property.
virtual void AddSmallStringArrayProperty(std::string_view key, std::function< std::span< const std::string >(wpi::SmallVectorImpl< std::string > &buf)> getter, std::function< void(std::span< const std::string >)> setter)=0
Add a string array property (SmallVector form).
virtual void AddSmallDoubleArrayProperty(std::string_view key, std::function< std::span< const double >(wpi::SmallVectorImpl< double > &buf)> getter, std::function< void(std::span< const double >)> setter)=0
Add a double array property (SmallVector form).
virtual void AddBooleanProperty(std::string_view key, std::function< bool()> getter, std::function< void(bool)> setter)=0
Add a boolean property.
virtual void AddSmallIntegerArrayProperty(std::string_view key, std::function< std::span< const int64_t >(wpi::SmallVectorImpl< int64_t > &buf)> getter, std::function< void(std::span< const int64_t >)> setter)=0
Add an integer array property (SmallVector form).
virtual void AddSmallFloatArrayProperty(std::string_view key, std::function< std::span< const float >(wpi::SmallVectorImpl< float > &buf)> getter, std::function< void(std::span< const float >)> setter)=0
Add a float array property (SmallVector form).
virtual void AddFloatArrayProperty(std::string_view key, std::function< std::vector< float >()> getter, std::function< void(std::span< const float >)> setter)=0
Add a float array property.
virtual void AddSmallStringProperty(std::string_view key, std::function< std::string_view(wpi::SmallVectorImpl< char > &buf)> getter, std::function< void(std::string_view)> setter)=0
Add a string property (SmallString form).
virtual void SetSafeState(std::function< void()> func)=0
Set the function that should be called to set the Sendable into a safe state.
virtual void Update()=0
Update the published values by calling the getters for all properties.
virtual void AddSmallRawProperty(std::string_view key, std::string_view typeString, std::function< std::span< uint8_t >(wpi::SmallVectorImpl< uint8_t > &buf)> getter, std::function< void(std::span< const uint8_t >)> setter)=0
Add a raw property (SmallVector form).
BackendKind
The backend kinds used for the sendable builder.
Definition: SendableBuilder.h:23
@ kNetworkTables
Definition: SendableBuilder.h:23
@ kUnknown
Definition: SendableBuilder.h:23
virtual void SetActuator(bool value)=0
Set a flag indicating if this sendable should be treated as an actuator.
virtual BackendKind GetBackendKind() const =0
Gets the kind of backend being used.
virtual void AddIntegerProperty(std::string_view key, std::function< int64_t()> getter, std::function< void(int64_t)> setter)=0
Add an integer property.
virtual bool IsPublished() const =0
Return whether this sendable has been published.
virtual void AddStringProperty(std::string_view key, std::function< std::string()> getter, std::function< void(std::string_view)> setter)=0
Add a string property.
virtual void AddDoubleArrayProperty(std::string_view key, std::function< std::vector< double >()> getter, std::function< void(std::span< const double >)> setter)=0
Add a double array property.
virtual void AddIntegerArrayProperty(std::string_view key, std::function< std::vector< int64_t >()> getter, std::function< void(std::span< const int64_t >)> setter)=0
Add an integer array property.
basic_string_view< char > string_view
Definition: core.h:520
type
Definition: core.h:575
::int64_t int64_t
Definition: Meta.h:59
Definition: AprilTagFieldLayout.h:18