15 #include <llvm/ArrayRef.h> 16 #include <llvm/SmallVector.h> 17 #include <llvm/Twine.h> 18 #include <networktables/NetworkTableEntry.h> 19 #include <networktables/NetworkTableValue.h> 41 virtual void SetSafeState(std::function<
void()> func) = 0;
70 std::function<
bool()> getter,
71 std::function<
void(
bool)> setter) = 0;
81 std::function<
double()> getter,
82 std::function<
void(
double)> setter) = 0;
92 const llvm::Twine& key, std::function<std::string()> getter,
103 const llvm::Twine& key, std::function<std::vector<int>()> getter,
114 const llvm::Twine& key, std::function<std::vector<double>()> getter,
125 const llvm::Twine& key, std::function<std::vector<std::string>()> getter,
136 std::function<std::string()> getter,
148 std::function<std::shared_ptr<nt::Value>()> getter,
149 std::function<
void(std::shared_ptr<nt::Value>)> setter) = 0;
Definition: RobotController.cpp:14
virtual void AddSmallDoubleArrayProperty(const llvm::Twine &key, std::function< llvm::ArrayRef< double >(llvm::SmallVectorImpl< double > &buf)> getter, std::function< void(llvm::ArrayRef< double >)> setter)=0
Add a double array property (SmallVector form).
virtual void SetSmartDashboardType(const llvm::Twine &type)=0
Set the string representation of the named data type that will be used by the smart dashboard for thi...
virtual void AddDoubleProperty(const llvm::Twine &key, std::function< double()> getter, std::function< void(double)> setter)=0
Add a double property.
virtual void AddDoubleArrayProperty(const llvm::Twine &key, std::function< std::vector< double >()> getter, std::function< void(llvm::ArrayRef< double >)> setter)=0
Add a double array property.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
virtual void AddSmallBooleanArrayProperty(const llvm::Twine &key, std::function< llvm::ArrayRef< int >(llvm::SmallVectorImpl< int > &buf)> getter, std::function< void(llvm::ArrayRef< int >)> setter)=0
Add a boolean array property (SmallVector form).
virtual void AddStringProperty(const llvm::Twine &key, std::function< std::string()> getter, std::function< void(llvm::StringRef)> setter)=0
Add a string property.
virtual void AddBooleanArrayProperty(const llvm::Twine &key, std::function< std::vector< int >()> getter, std::function< void(llvm::ArrayRef< int >)> setter)=0
Add a boolean array property.
virtual void AddSmallRawProperty(const llvm::Twine &key, std::function< llvm::StringRef(llvm::SmallVectorImpl< char > &buf)> getter, std::function< void(llvm::StringRef)> setter)=0
Add a raw property (SmallVector form).
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: ArrayRef.h:32
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 AddStringArrayProperty(const llvm::Twine &key, std::function< std::vector< std::string >()> getter, std::function< void(llvm::ArrayRef< std::string >)> setter)=0
Add a string array property.
virtual void AddSmallStringProperty(const llvm::Twine &key, std::function< llvm::StringRef(llvm::SmallVectorImpl< char > &buf)> getter, std::function< void(llvm::StringRef)> setter)=0
Add a string property (SmallString form).
virtual nt::NetworkTableEntry GetEntry(const llvm::Twine &key)=0
Add a property without getters or setters.
virtual void AddRawProperty(const llvm::Twine &key, std::function< std::string()> getter, std::function< void(llvm::StringRef)> setter)=0
Add a raw property.
virtual void AddSmallStringArrayProperty(const llvm::Twine &key, std::function< llvm::ArrayRef< std::string >(llvm::SmallVectorImpl< std::string > &buf)> getter, std::function< void(llvm::ArrayRef< std::string >)> setter)=0
Add a string array property (SmallVector form).
virtual void SetUpdateTable(std::function< void()> func)=0
Set the function that should be called to update the network table for things other than properties...
Definition: SendableBuilder.h:23
NetworkTables Entry.
Definition: NetworkTableEntry.h:35
virtual void AddValueProperty(const llvm::Twine &key, std::function< std::shared_ptr< nt::Value >()> getter, std::function< void(std::shared_ptr< nt::Value >)> setter)=0
Add a NetworkTableValue property.
virtual void AddBooleanProperty(const llvm::Twine &key, std::function< bool()> getter, std::function< void(bool)> setter)=0
Add a boolean property.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42