36  static std::vector<std::string> 
GetKeys();
 
   47                               std::string_view defaultValue = 
"");
 
   57  static int GetInt(std::string_view key, 
int defaultValue = 0);
 
   67  static double GetDouble(std::string_view key, 
double defaultValue = 0.0);
 
   77  static float GetFloat(std::string_view key, 
float defaultValue = 0.0);
 
   87  static bool GetBoolean(std::string_view key, 
bool defaultValue = 
false);
 
   98  static int64_t 
GetLong(std::string_view key, int64_t defaultValue = 0);
 
  109  static void SetString(std::string_view key, std::string_view value);
 
  115  static void InitString(std::string_view key, std::string_view value);
 
  125  static void SetInt(std::string_view key, 
int value);
 
  131  static void InitInt(std::string_view key, 
int value);
 
  141  static void SetDouble(std::string_view key, 
double value);
 
  157  static void SetFloat(std::string_view key, 
float value);
 
  163  static void InitFloat(std::string_view key, 
float value);
 
  189  static void SetLong(std::string_view key, int64_t value);
 
  195  static void InitLong(std::string_view key, int64_t value);
 
  210  static void Remove(std::string_view key);
 
 
The preferences class provides a relatively simple way to save important values to the roboRIO to acc...
Definition Preferences.h:29
static void SetString(std::string_view key, std::string_view value)
Puts the given string into the preferences table.
static void InitFloat(std::string_view key, float value)
Puts the given float into the preferences table if it doesn't already exist.
static void SetDouble(std::string_view key, double value)
Puts the given double into the preferences table.
static void InitLong(std::string_view key, int64_t value)
Puts the given long into the preferences table if it doesn't already exist.
static void SetInt(std::string_view key, int value)
Puts the given int into the preferences table.
static void SetBoolean(std::string_view key, bool value)
Puts the given boolean into the preferences table.
static int64_t GetLong(std::string_view key, int64_t defaultValue=0)
Returns the long (int64_t) at the given key.
static void InitString(std::string_view key, std::string_view value)
Puts the given string into the preferences table if it doesn't already exist.
static void InitBoolean(std::string_view key, bool value)
Puts the given boolean into the preferences table if it doesn't already exist.
static bool ContainsKey(std::string_view key)
Returns whether or not there is a key with the given name.
static void SetFloat(std::string_view key, float value)
Puts the given float into the preferences table.
static float GetFloat(std::string_view key, float defaultValue=0.0)
Returns the float at the given key.
static std::vector< std::string > GetKeys()
Returns a vector of all the keys.
static void RemoveAll()
Remove all preferences.
static void SetLong(std::string_view key, int64_t value)
Puts the given long (int64_t) into the preferences table.
static void InitDouble(std::string_view key, double value)
Puts the given double into the preferences table if it doesn't already exist.
static int GetInt(std::string_view key, int defaultValue=0)
Returns the int at the given key.
static bool GetBoolean(std::string_view key, bool defaultValue=false)
Returns the boolean at the given key.
static void InitInt(std::string_view key, int value)
Puts the given int into the preferences table if it doesn't already exist.
static std::string GetString(std::string_view key, std::string_view defaultValue="")
Returns the string at the given key.
static double GetDouble(std::string_view key, double defaultValue=0.0)
Returns the double at the given key.
static void Remove(std::string_view key)
Remove a preference.