14 #include <networktables/NetworkTableValue.h> 16 #include "SensorBase.h" 28 static std::vector<std::string>
GetKeys(
int types = 0);
82 std::shared_ptr<nt::Value> value);
84 std::shared_ptr<nt::Value> defaultValue);
static bool PutBooleanArray(llvm::StringRef key, llvm::ArrayRef< int > value)
Put a boolean array in the table.
Definition: SmartDashboard.cpp:377
Definition: RobotController.cpp:14
static Sendable * GetData(llvm::StringRef keyName)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:197
static bool PutString(llvm::StringRef keyName, llvm::StringRef value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:336
static bool SetDefaultString(llvm::StringRef key, llvm::StringRef defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:346
static std::vector< std::string > GetStringArray(llvm::StringRef key, llvm::ArrayRef< std::string > defaultValue)
Returns the string array the key maps to.
Definition: SmartDashboard.cpp:503
Base class for all sensors.
Definition: SensorBase.h:25
static double GetNumber(llvm::StringRef keyName, double defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:321
static bool SetDefaultBoolean(llvm::StringRef key, bool defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:268
static unsigned int GetFlags(llvm::StringRef key)
Returns the flags for the specified key.
Definition: SmartDashboard.cpp:133
static std::vector< std::string > GetKeys(int types=0)
Definition: SmartDashboard.cpp:72
static bool PutStringArray(llvm::StringRef key, llvm::ArrayRef< std::string > value)
Put a string array in the table.
Definition: SmartDashboard.cpp:471
static std::vector< int > GetBooleanArray(llvm::StringRef key, llvm::ArrayRef< int > defaultValue)
Returns the boolean array the key maps to.
Definition: SmartDashboard.cpp:413
static std::string GetString(llvm::StringRef keyName, llvm::StringRef defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:360
static void SetFlags(llvm::StringRef key, unsigned int flags)
Sets flags on the specified key in this table.
Definition: SmartDashboard.cpp:112
static bool SetDefaultRaw(llvm::StringRef key, llvm::StringRef defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:527
static void PutData(llvm::StringRef key, Sendable *data)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:155
static bool IsPersistent(llvm::StringRef key)
Returns whether the value is persistent through program restarts.
Definition: SmartDashboard.cpp:101
static bool PutBoolean(llvm::StringRef keyName, bool value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:258
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: ArrayRef.h:32
static std::vector< double > GetNumberArray(llvm::StringRef key, llvm::ArrayRef< double > defaultValue)
Returns the number array the key maps to.
Definition: SmartDashboard.cpp:458
static void SetPersistent(llvm::StringRef key)
Makes a key's value persistent through program restarts.
Definition: SmartDashboard.cpp:81
static bool ContainsKey(llvm::StringRef key)
Determines whether the given key is in this table.
Definition: SmartDashboard.cpp:64
static void UpdateValues()
Puts all sendable data to the dashboard.
Definition: SmartDashboard.cpp:555
static bool PutRaw(llvm::StringRef key, llvm::StringRef value)
Put a raw value (byte array) in the table.
Definition: SmartDashboard.cpp:516
static void ClearFlags(llvm::StringRef key, unsigned int flags)
Clears flags on the specified key in this table.
Definition: SmartDashboard.cpp:123
static bool SetDefaultBooleanArray(llvm::StringRef key, llvm::ArrayRef< int > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:389
static void Delete(llvm::StringRef key)
Deletes the specified key in this table.
Definition: SmartDashboard.cpp:142
static bool SetDefaultValue(llvm::StringRef key, std::shared_ptr< nt::Value > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:231
static bool PutNumber(llvm::StringRef keyName, double value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:296
static bool GetBoolean(llvm::StringRef keyName, bool defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:281
static std::string GetRaw(llvm::StringRef key, llvm::StringRef defaultValue)
Returns the raw value (byte array) the key maps to.
Definition: SmartDashboard.cpp:547
Definition: SmartDashboard.h:22
static bool PutValue(llvm::StringRef keyName, std::shared_ptr< nt::Value > value)
Maps the specified key to the specified complex value (such as an array) in this table.
Definition: SmartDashboard.cpp:219
static bool SetDefaultNumber(llvm::StringRef key, double defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:307
Definition: Sendable.h:18
static std::shared_ptr< nt::Value > GetValue(llvm::StringRef keyName)
Retrieves the complex value (such as an array) in this table into the complex data object...
Definition: SmartDashboard.cpp:244
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42
static bool SetDefaultNumberArray(llvm::StringRef key, llvm::ArrayRef< double > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:438
static void ClearPersistent(llvm::StringRef key)
Stop making a key's value persistent through program restarts.
Definition: SmartDashboard.cpp:91
static bool PutNumberArray(llvm::StringRef key, llvm::ArrayRef< double > value)
Put a number array in the table.
Definition: SmartDashboard.cpp:426
static bool SetDefaultStringArray(llvm::StringRef key, llvm::ArrayRef< std::string > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:483