14 #include <networktables/NetworkTableValue.h> 16 #include "ErrorBase.h" 17 #include "SmartDashboard/SendableBase.h" 39 static std::vector<std::string>
GetKeys(
int types = 0);
383 std::shared_ptr<nt::Value> value);
393 std::shared_ptr<nt::Value> defaultValue);
static std::shared_ptr< nt::Value > GetValue(wpi::StringRef keyName)
Retrieves the complex value (such as an array) in this table into the complex data object...
Definition: SmartDashboard.cpp:253
static bool PutValue(wpi::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:242
static double GetNumber(wpi::StringRef keyName, double defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:155
Definition: Utility.cpp:119
static bool SetDefaultStringArray(wpi::StringRef key, wpi::ArrayRef< std::string > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:215
static bool SetDefaultNumber(wpi::StringRef key, double defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:150
static std::string GetString(wpi::StringRef keyName, wpi::StringRef defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:170
static void SetFlags(wpi::StringRef key, unsigned int flags)
Sets flags on the specified key in this table.
Definition: SmartDashboard.cpp:78
static std::vector< std::string > GetKeys(int types=0)
Definition: SmartDashboard.cpp:62
static void ClearFlags(wpi::StringRef key, unsigned int flags)
Clears flags on the specified key in this table.
Definition: SmartDashboard.cpp:82
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: ArrayRef.h:41
static void PutData(wpi::StringRef key, Sendable *data)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:94
static bool IsPersistent(wpi::StringRef key)
Returns whether the value is persistent through program restarts.
Definition: SmartDashboard.cpp:74
static unsigned int GetFlags(wpi::StringRef key)
Returns the flags for the specified key.
Definition: SmartDashboard.cpp:86
static bool SetDefaultRaw(wpi::StringRef key, wpi::StringRef defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:231
static std::string GetRaw(wpi::StringRef key, wpi::StringRef defaultValue)
Returns the raw value (byte array) the key maps to.
Definition: SmartDashboard.cpp:237
static bool GetBoolean(wpi::StringRef keyName, bool defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:141
static bool ContainsKey(wpi::StringRef key)
Determines whether the given key is in this table.
Definition: SmartDashboard.cpp:58
static std::vector< int > GetBooleanArray(wpi::StringRef key, wpi::ArrayRef< int > defaultValue)
Returns the boolean array the key maps to.
Definition: SmartDashboard.cpp:187
static void UpdateValues()
Puts all sendable data to the dashboard.
Definition: SmartDashboard.cpp:257
static std::vector< std::string > GetStringArray(wpi::StringRef key, wpi::ArrayRef< std::string > defaultValue)
Returns the string array the key maps to.
Definition: SmartDashboard.cpp:221
static bool PutStringArray(wpi::StringRef key, wpi::ArrayRef< std::string > value)
Put a string array in the table.
Definition: SmartDashboard.cpp:210
static std::vector< double > GetNumberArray(wpi::StringRef key, wpi::ArrayRef< double > defaultValue)
Returns the number array the key maps to.
Definition: SmartDashboard.cpp:204
static bool PutRaw(wpi::StringRef key, wpi::StringRef value)
Put a raw value (byte array) in the table.
Definition: SmartDashboard.cpp:227
Base class for most objects.
Definition: ErrorBase.h:74
static bool PutBoolean(wpi::StringRef keyName, bool value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:132
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
Definition: SendableBase.h:19
Definition: SmartDashboard.h:23
static bool SetDefaultNumberArray(wpi::StringRef key, wpi::ArrayRef< double > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:198
static bool PutNumber(wpi::StringRef keyName, double value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:146
static void SetPersistent(wpi::StringRef key)
Makes a key's value persistent through program restarts.
Definition: SmartDashboard.cpp:66
Definition: Sendable.h:18
static void Delete(wpi::StringRef key)
Deletes the specified key in this table.
Definition: SmartDashboard.cpp:90
static bool SetDefaultBoolean(wpi::StringRef key, bool defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:136
static void ClearPersistent(wpi::StringRef key)
Stop making a key's value persistent through program restarts.
Definition: SmartDashboard.cpp:70
static bool PutBooleanArray(wpi::StringRef key, wpi::ArrayRef< int > value)
Put a boolean array in the table.
Definition: SmartDashboard.cpp:176
static bool SetDefaultValue(wpi::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:247
static bool PutString(wpi::StringRef keyName, wpi::StringRef value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:160
static Sendable * GetData(wpi::StringRef keyName)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:121
static bool SetDefaultBooleanArray(wpi::StringRef key, wpi::ArrayRef< int > defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:181
static bool PutNumberArray(wpi::StringRef key, wpi::ArrayRef< double > value)
Put a number array in the table.
Definition: SmartDashboard.cpp:193
static bool SetDefaultString(wpi::StringRef key, wpi::StringRef defaultValue)
Gets the current value in the table, setting it if it does not exist.
Definition: SmartDashboard.cpp:164