WPILib 2012
WPILibRoboticsLibraryforFRC
Public Member Functions | Static Public Member Functions
SmartDashboard Class Reference
Inheritance diagram for SmartDashboard:
SensorBase ErrorBase

List of all members.

Public Member Functions

void PutData (const char *keyName, SmartDashboardData *value)
void PutData (SmartDashboardNamedData *value)
SmartDashboardDataGetData (const char *keyName)
void PutBoolean (const char *keyName, bool value)
bool GetBoolean (const char *keyName)
void PutInt (const char *keyName, int value)
int GetInt (const char *keyName)
void PutDouble (const char *keyName, double value)
double GetDouble (const char *keyName)
void PutString (const char *keyName, const char *value)
int GetString (const char *keyName, char *value, int valueLen)
std::string GetString (std::string keyName)
void PutString (std::string keyName, std::string value)
void init ()

Static Public Member Functions

static SmartDashboardGetInstance ()
static int LogChar (char value, const char *name)
static int LogChar (wchar_t value, const char *name)
static int Log (INT32 value, const char *name)
static int Log (INT64 value, const char *name)
static int Log (bool value, const char *name)
static int Log (float value, const char *name)
static int Log (double value, const char *name)
static int Log (const char *value, const char *name)

Member Function Documentation

bool SmartDashboard::GetBoolean ( const char *  keyName)

Returns the value at the specified key.

Parameters:
keyNamethe key
Returns:
the value
SmartDashboardData * SmartDashboard::GetData ( const char *  keyName)

Returns the value at the specified key.

Parameters:
keyNamethe key
Returns:
the value
double SmartDashboard::GetDouble ( const char *  keyName)

Returns the value at the specified key.

Parameters:
keyNamethe key
Returns:
the value
SmartDashboard * SmartDashboard::GetInstance ( ) [static]

Get the one and only SmartDashboard object

Returns:
pointer to the SmartDashboard
int SmartDashboard::GetInt ( const char *  keyName)

Returns the value at the specified key.

Parameters:
keyNamethe key
Returns:
the value
int SmartDashboard::GetString ( const char *  keyName,
char *  value,
int  valueLen 
)

Returns the value at the specified key.

Parameters:
keyNamethe key
valuethe buffer to fill with the value
valueLenthe size of the buffer pointed to by value
Returns:
the length of the string
std::string SmartDashboard::GetString ( std::string  keyName)

Returns the value at the specified key.

Parameters:
keyNamethe key
Returns:
the value
void SmartDashboard::init ( )
Deprecated:
no longer necessary
int SmartDashboard::Log ( INT32  value,
const char *  name 
) [static]

Sends the given int value to the client as the field with the given name.

Parameters:
valueThe value to send.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutInt(const char*, int)
int SmartDashboard::Log ( INT64  value,
const char *  name 
) [static]

Sends the given long value to the client as the field with the given name.

Parameters:
valueThe value to send.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutDouble(const char*, double)
int SmartDashboard::Log ( bool  value,
const char *  name 
) [static]

Sends the given boolean value to the client as the field with the given name.

Parameters:
valueThe value to send.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutBoolean(const char*, bool) instead
int SmartDashboard::Log ( float  value,
const char *  name 
) [static]

Sends the given float value to the client as the field with the given name.

Parameters:
valueThe value to send.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutDouble(const char*, double)
int SmartDashboard::Log ( double  value,
const char *  name 
) [static]

Sends the given double value to the client as the field with the given name.

Parameters:
valueThe value to send.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutDouble(const char*, double)
int SmartDashboard::Log ( const char *  value,
const char *  name 
) [static]

Sends the given string value to the client as the field with the given name.

Parameters:
valueThe value to send. This may be at most 63 characters in length.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutString(const char*, const char*)
int SmartDashboard::LogChar ( char  value,
const char *  name 
) [static]

Send the given byte value to the client as the field with the given name.

Parameters:
valueThe value to be displayed on the client.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutInt(const char*, int)
int SmartDashboard::LogChar ( wchar_t  value,
const char *  name 
) [static]

Send the given UTF-16 char value to the client as the field with the given name.

Parameters:
valueThe value to be displayed on the client.
nameThe name of the field.
Returns:
An integer status code.
Deprecated:
use SmartDashboard#PutInt(const char*, int)
void SmartDashboard::PutBoolean ( const char *  keyName,
bool  value 
)

Maps the specified key to the specified value in this table. The key can not be NULL. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
keyNamethe key
valuethe value
void SmartDashboard::PutData ( const char *  keyName,
SmartDashboardData value 
)

Maps the specified key to the specified value in this table. The key can not be NULL. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
keyNamethe key
valuethe value
void SmartDashboard::PutData ( SmartDashboardNamedData value)

Maps the specified key (where the key is the name of the SmartDashboardNamedData to the specified value in this table. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
valuethe value
void SmartDashboard::PutDouble ( const char *  keyName,
double  value 
)

Maps the specified key to the specified value in this table. The key can not be NULL. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
keyNamethe key
valuethe value
void SmartDashboard::PutInt ( const char *  keyName,
int  value 
)

Maps the specified key to the specified value in this table. The keyName can not be NULL. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
keyNamethe key
valuethe value
void SmartDashboard::PutString ( std::string  keyName,
std::string  value 
)

Maps the specified key to the specified value in this table. Neither the key nor the value can be NULL. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
keyNamethe key
valuethe value
void SmartDashboard::PutString ( const char *  keyName,
const char *  value 
)

Maps the specified key to the specified value in this table. Neither the key nor the value can be NULL. The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
keyNamethe key
valuethe value

The documentation for this class was generated from the following files:
 All Classes Functions Variables