7 #include "SmartDashboard/SmartDashboard.h"
9 #include "NetworkCommunication/UsageReporting.h"
10 #include "NamedSendable.h"
11 #include "WPIErrors.h"
12 #include "networktables/NetworkTable.h"
14 ITable* SmartDashboard::m_table = NULL;
15 std::map<ITable *, Sendable *> SmartDashboard::m_tablesToData;
17 void SmartDashboard::init(){
40 m_tablesToData[dataTable] = data;
96 m_table->RetrieveValue(keyName, value);
162 std::string value = m_table->
GetString(keyName);
164 for(i = 0; i<bufferLen-1&&i<value.length(); ++i)
165 outBuffer[i] = (
char)value.at(i);
static void PutData(std::string key, Sendable *data)
virtual void PutNumber(std::string key, double value)=0
static NetworkTable * GetTable(std::string key)
virtual ITable * GetSubTable(std::string key)=0
static void PutBoolean(std::string keyName, bool value)
virtual void InitTable(ITable *subtable)=0
static void PutValue(std::string keyName, ComplexData &value)
virtual void PutBoolean(std::string key, bool value)=0
static bool GetBoolean(std::string keyName)
virtual double GetNumber(std::string key)=0
static void PutNumber(std::string keyName, double value)
static int GetString(std::string keyName, char *value, unsigned int valueLen)
virtual std::string GetSmartDashboardType()=0
virtual void PutValue(std::string key, ComplexData &value)=0
static double GetNumber(std::string keyName)
virtual std::string GetString(std::string key)=0
static void PutString(std::string keyName, std::string value)
virtual std::string GetName()=0
static void RetrieveValue(std::string keyName, ComplexData &value)
virtual bool GetBoolean(std::string key)=0
virtual void PutString(std::string key, std::string value)=0