8 #ifndef __SMART_DASHBOARD_H__
9 #define __SMART_DASHBOARD_H__
11 #include "SensorBase.h"
14 #include "SmartDashboard/Sendable.h"
15 #include "SmartDashboard/NamedSendable.h"
16 #include "tables/ITable.h"
37 std::shared_ptr<nt::Value> value);
44 static std::shared_ptr<ITable> m_table;
51 static std::map<std::shared_ptr<ITable> ,
Sendable *> m_tablesToData;
static std::string GetString(llvm::StringRef keyName, llvm::StringRef defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:162
static double GetNumber(llvm::StringRef keyName, double defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:140
static void PutBoolean(llvm::StringRef keyName, bool value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:108
static Sendable * GetData(llvm::StringRef keyName)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:65
static bool GetBoolean(llvm::StringRef keyName, bool defaultValue)
Returns the value at the specified key.
Definition: SmartDashboard.cpp:118
Definition: Sendable.h:15
Base class for all sensors.
Definition: SensorBase.h:20
static void PutString(llvm::StringRef keyName, llvm::StringRef value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:152
static void PutData(llvm::StringRef key, Sendable *data)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:33
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 The key can...
Definition: SmartDashboard.cpp:96
The interface for sendable objects that gives the sendable a default name in the Smart Dashboard...
Definition: NamedSendable.h:19
Definition: SmartDashboard.h:18
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:39
static void 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:84
static void PutNumber(llvm::StringRef keyName, double value)
Maps the specified key to the specified value in this table.
Definition: SmartDashboard.cpp:130