mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Move entirety of llvm namespace to wpi namespace.
During shared library loading, a different libLLVM can be pulled in, causing llvm symbols from dependent libraries to resolve to that library instead of this one. This has been seen in the wild with the Mesa OpenGL implementation in JavaFX applications (see wpilibsuite/shuffleboard#361). This is clearly a very breaking change. For some level of backwards compatibility, a namespace alias from llvm to wpi is performed in the "llvm" headers. Unfortunately, forward declarations of llvm classes will still break, but compilers seem to generate clear error messages in those cases ("namespace alias 'llvm' not allowed here, assuming 'wpi'"). This change also moves all the wpiutil headers to a single "wpi" subdirectory from the previously split "llvm", "support", "tcpsockets", and "udpsockets". Shim headers will be added for backwards compatibility in a later commit.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <support/deprecated.h>
|
||||
#include <wpi/deprecated.h>
|
||||
|
||||
#include "SmartDashboard/Sendable.h"
|
||||
|
||||
@@ -23,9 +23,9 @@ namespace frc {
|
||||
class WPI_DEPRECATED("use Sendable directly instead") NamedSendable
|
||||
: public Sendable {
|
||||
public:
|
||||
void SetName(const llvm::Twine& name) override;
|
||||
void SetName(const wpi::Twine& name) override;
|
||||
std::string GetSubsystem() const override;
|
||||
void SetSubsystem(const llvm::Twine& subsystem) override;
|
||||
void SetSubsystem(const wpi::Twine& subsystem) override;
|
||||
void InitSendable(SendableBuilder& builder) override;
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <llvm/Twine.h>
|
||||
#include <wpi/Twine.h>
|
||||
|
||||
namespace frc {
|
||||
|
||||
@@ -31,7 +31,7 @@ class Sendable {
|
||||
*
|
||||
* @param name name
|
||||
*/
|
||||
virtual void SetName(const llvm::Twine& name) = 0;
|
||||
virtual void SetName(const wpi::Twine& name) = 0;
|
||||
|
||||
/**
|
||||
* Sets both the subsystem name and device name of this Sendable object.
|
||||
@@ -39,7 +39,7 @@ class Sendable {
|
||||
* @param subsystem subsystem name
|
||||
* @param name device name
|
||||
*/
|
||||
void SetName(const llvm::Twine& subsystem, const llvm::Twine& name) {
|
||||
void SetName(const wpi::Twine& subsystem, const wpi::Twine& name) {
|
||||
SetSubsystem(subsystem);
|
||||
SetName(name);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class Sendable {
|
||||
*
|
||||
* @param subsystem subsystem name
|
||||
*/
|
||||
virtual void SetSubsystem(const llvm::Twine& subsystem) = 0;
|
||||
virtual void SetSubsystem(const wpi::Twine& subsystem) = 0;
|
||||
|
||||
/**
|
||||
* Initializes this Sendable object.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <support/mutex.h>
|
||||
#include <wpi/mutex.h>
|
||||
|
||||
#include "Sendable.h"
|
||||
|
||||
@@ -24,16 +24,16 @@ class SendableBase : public Sendable {
|
||||
using Sendable::SetName;
|
||||
|
||||
std::string GetName() const final;
|
||||
void SetName(const llvm::Twine& name) final;
|
||||
void SetName(const wpi::Twine& name) final;
|
||||
std::string GetSubsystem() const final;
|
||||
void SetSubsystem(const llvm::Twine& subsystem) final;
|
||||
void SetSubsystem(const wpi::Twine& subsystem) final;
|
||||
|
||||
protected:
|
||||
void AddChild(std::shared_ptr<Sendable> child);
|
||||
void AddChild(void* child);
|
||||
|
||||
void SetName(const llvm::Twine& moduleType, int channel);
|
||||
void SetName(const llvm::Twine& moduleType, int moduleNumber, int channel);
|
||||
void SetName(const wpi::Twine& moduleType, int channel);
|
||||
void SetName(const wpi::Twine& moduleType, int moduleNumber, int channel);
|
||||
|
||||
private:
|
||||
mutable wpi::mutex m_mutex;
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <llvm/ArrayRef.h>
|
||||
#include <llvm/SmallVector.h>
|
||||
#include <llvm/Twine.h>
|
||||
#include <networktables/NetworkTableEntry.h>
|
||||
#include <networktables/NetworkTableValue.h>
|
||||
#include <wpi/ArrayRef.h>
|
||||
#include <wpi/SmallVector.h>
|
||||
#include <wpi/Twine.h>
|
||||
|
||||
namespace frc {
|
||||
|
||||
@@ -30,7 +30,7 @@ class SendableBuilder {
|
||||
*
|
||||
* @param type data type
|
||||
*/
|
||||
virtual void SetSmartDashboardType(const llvm::Twine& type) = 0;
|
||||
virtual void SetSmartDashboardType(const wpi::Twine& type) = 0;
|
||||
|
||||
/**
|
||||
* Set the function that should be called to set the Sendable into a safe
|
||||
@@ -57,7 +57,7 @@ class SendableBuilder {
|
||||
* @param key property name
|
||||
* @return Network table entry
|
||||
*/
|
||||
virtual nt::NetworkTableEntry GetEntry(const llvm::Twine& key) = 0;
|
||||
virtual nt::NetworkTableEntry GetEntry(const wpi::Twine& key) = 0;
|
||||
|
||||
/**
|
||||
* Add a boolean property.
|
||||
@@ -66,7 +66,7 @@ class SendableBuilder {
|
||||
* @param getter getter function (returns current value)
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddBooleanProperty(const llvm::Twine& key,
|
||||
virtual void AddBooleanProperty(const wpi::Twine& key,
|
||||
std::function<bool()> getter,
|
||||
std::function<void(bool)> setter) = 0;
|
||||
|
||||
@@ -77,7 +77,7 @@ class SendableBuilder {
|
||||
* @param getter getter function (returns current value)
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddDoubleProperty(const llvm::Twine& key,
|
||||
virtual void AddDoubleProperty(const wpi::Twine& key,
|
||||
std::function<double()> getter,
|
||||
std::function<void(double)> setter) = 0;
|
||||
|
||||
@@ -89,8 +89,8 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddStringProperty(
|
||||
const llvm::Twine& key, std::function<std::string()> getter,
|
||||
std::function<void(llvm::StringRef)> setter) = 0;
|
||||
const wpi::Twine& key, std::function<std::string()> getter,
|
||||
std::function<void(wpi::StringRef)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a boolean array property.
|
||||
@@ -100,8 +100,8 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddBooleanArrayProperty(
|
||||
const llvm::Twine& key, std::function<std::vector<int>()> getter,
|
||||
std::function<void(llvm::ArrayRef<int>)> setter) = 0;
|
||||
const wpi::Twine& key, std::function<std::vector<int>()> getter,
|
||||
std::function<void(wpi::ArrayRef<int>)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a double array property.
|
||||
@@ -111,8 +111,8 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddDoubleArrayProperty(
|
||||
const llvm::Twine& key, std::function<std::vector<double>()> getter,
|
||||
std::function<void(llvm::ArrayRef<double>)> setter) = 0;
|
||||
const wpi::Twine& key, std::function<std::vector<double>()> getter,
|
||||
std::function<void(wpi::ArrayRef<double>)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a string array property.
|
||||
@@ -122,8 +122,8 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddStringArrayProperty(
|
||||
const llvm::Twine& key, std::function<std::vector<std::string>()> getter,
|
||||
std::function<void(llvm::ArrayRef<std::string>)> setter) = 0;
|
||||
const wpi::Twine& key, std::function<std::vector<std::string>()> getter,
|
||||
std::function<void(wpi::ArrayRef<std::string>)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a raw property.
|
||||
@@ -132,9 +132,9 @@ class SendableBuilder {
|
||||
* @param getter getter function (returns current value)
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddRawProperty(const llvm::Twine& key,
|
||||
virtual void AddRawProperty(const wpi::Twine& key,
|
||||
std::function<std::string()> getter,
|
||||
std::function<void(llvm::StringRef)> setter) = 0;
|
||||
std::function<void(wpi::StringRef)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a NetworkTableValue property.
|
||||
@@ -144,7 +144,7 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddValueProperty(
|
||||
const llvm::Twine& key,
|
||||
const wpi::Twine& key,
|
||||
std::function<std::shared_ptr<nt::Value>()> getter,
|
||||
std::function<void(std::shared_ptr<nt::Value>)> setter) = 0;
|
||||
|
||||
@@ -156,9 +156,9 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddSmallStringProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::StringRef(llvm::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(llvm::StringRef)> setter) = 0;
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::StringRef(wpi::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(wpi::StringRef)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a boolean array property (SmallVector form).
|
||||
@@ -168,10 +168,10 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddSmallBooleanArrayProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::ArrayRef<int>(llvm::SmallVectorImpl<int>& buf)>
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)>
|
||||
getter,
|
||||
std::function<void(llvm::ArrayRef<int>)> setter) = 0;
|
||||
std::function<void(wpi::ArrayRef<int>)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a double array property (SmallVector form).
|
||||
@@ -181,10 +181,10 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddSmallDoubleArrayProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::ArrayRef<double>(llvm::SmallVectorImpl<double>& buf)>
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::ArrayRef<double>(wpi::SmallVectorImpl<double>& buf)>
|
||||
getter,
|
||||
std::function<void(llvm::ArrayRef<double>)> setter) = 0;
|
||||
std::function<void(wpi::ArrayRef<double>)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a string array property (SmallVector form).
|
||||
@@ -194,11 +194,11 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddSmallStringArrayProperty(
|
||||
const llvm::Twine& key,
|
||||
const wpi::Twine& key,
|
||||
std::function<
|
||||
llvm::ArrayRef<std::string>(llvm::SmallVectorImpl<std::string>& buf)>
|
||||
wpi::ArrayRef<std::string>(wpi::SmallVectorImpl<std::string>& buf)>
|
||||
getter,
|
||||
std::function<void(llvm::ArrayRef<std::string>)> setter) = 0;
|
||||
std::function<void(wpi::ArrayRef<std::string>)> setter) = 0;
|
||||
|
||||
/**
|
||||
* Add a raw property (SmallVector form).
|
||||
@@ -208,9 +208,9 @@ class SendableBuilder {
|
||||
* @param setter setter function (sets new value)
|
||||
*/
|
||||
virtual void AddSmallRawProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::StringRef(llvm::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(llvm::StringRef)> setter) = 0;
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::StringRef(wpi::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(wpi::StringRef)> setter) = 0;
|
||||
};
|
||||
|
||||
} // namespace frc
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <llvm/ArrayRef.h>
|
||||
#include <llvm/SmallVector.h>
|
||||
#include <llvm/Twine.h>
|
||||
#include <networktables/NetworkTable.h>
|
||||
#include <networktables/NetworkTableEntry.h>
|
||||
#include <networktables/NetworkTableValue.h>
|
||||
#include <wpi/ArrayRef.h>
|
||||
#include <wpi/SmallVector.h>
|
||||
#include <wpi/Twine.h>
|
||||
|
||||
#include "SendableBuilder.h"
|
||||
|
||||
@@ -73,74 +73,74 @@ class SendableBuilderImpl : public SendableBuilder {
|
||||
*/
|
||||
void StopLiveWindowMode();
|
||||
|
||||
void SetSmartDashboardType(const llvm::Twine& type) override;
|
||||
void SetSmartDashboardType(const wpi::Twine& type) override;
|
||||
void SetSafeState(std::function<void()> func) override;
|
||||
void SetUpdateTable(std::function<void()> func) override;
|
||||
nt::NetworkTableEntry GetEntry(const llvm::Twine& key) override;
|
||||
nt::NetworkTableEntry GetEntry(const wpi::Twine& key) override;
|
||||
|
||||
void AddBooleanProperty(const llvm::Twine& key, std::function<bool()> getter,
|
||||
void AddBooleanProperty(const wpi::Twine& key, std::function<bool()> getter,
|
||||
std::function<void(bool)> setter) override;
|
||||
|
||||
void AddDoubleProperty(const llvm::Twine& key, std::function<double()> getter,
|
||||
void AddDoubleProperty(const wpi::Twine& key, std::function<double()> getter,
|
||||
std::function<void(double)> setter) override;
|
||||
|
||||
void AddStringProperty(const llvm::Twine& key,
|
||||
void AddStringProperty(const wpi::Twine& key,
|
||||
std::function<std::string()> getter,
|
||||
std::function<void(llvm::StringRef)> setter) override;
|
||||
std::function<void(wpi::StringRef)> setter) override;
|
||||
|
||||
void AddBooleanArrayProperty(
|
||||
const llvm::Twine& key, std::function<std::vector<int>()> getter,
|
||||
std::function<void(llvm::ArrayRef<int>)> setter) override;
|
||||
const wpi::Twine& key, std::function<std::vector<int>()> getter,
|
||||
std::function<void(wpi::ArrayRef<int>)> setter) override;
|
||||
|
||||
void AddDoubleArrayProperty(
|
||||
const llvm::Twine& key, std::function<std::vector<double>()> getter,
|
||||
std::function<void(llvm::ArrayRef<double>)> setter) override;
|
||||
const wpi::Twine& key, std::function<std::vector<double>()> getter,
|
||||
std::function<void(wpi::ArrayRef<double>)> setter) override;
|
||||
|
||||
void AddStringArrayProperty(
|
||||
const llvm::Twine& key, std::function<std::vector<std::string>()> getter,
|
||||
std::function<void(llvm::ArrayRef<std::string>)> setter) override;
|
||||
const wpi::Twine& key, std::function<std::vector<std::string>()> getter,
|
||||
std::function<void(wpi::ArrayRef<std::string>)> setter) override;
|
||||
|
||||
void AddRawProperty(const llvm::Twine& key,
|
||||
void AddRawProperty(const wpi::Twine& key,
|
||||
std::function<std::string()> getter,
|
||||
std::function<void(llvm::StringRef)> setter) override;
|
||||
std::function<void(wpi::StringRef)> setter) override;
|
||||
|
||||
void AddValueProperty(
|
||||
const llvm::Twine& key,
|
||||
const wpi::Twine& key,
|
||||
std::function<std::shared_ptr<nt::Value>()> getter,
|
||||
std::function<void(std::shared_ptr<nt::Value>)> setter) override;
|
||||
|
||||
void AddSmallStringProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::StringRef(llvm::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(llvm::StringRef)> setter) override;
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::StringRef(wpi::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(wpi::StringRef)> setter) override;
|
||||
|
||||
void AddSmallBooleanArrayProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::ArrayRef<int>(llvm::SmallVectorImpl<int>& buf)>
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::ArrayRef<int>(wpi::SmallVectorImpl<int>& buf)>
|
||||
getter,
|
||||
std::function<void(llvm::ArrayRef<int>)> setter) override;
|
||||
std::function<void(wpi::ArrayRef<int>)> setter) override;
|
||||
|
||||
void AddSmallDoubleArrayProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::ArrayRef<double>(llvm::SmallVectorImpl<double>& buf)>
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::ArrayRef<double>(wpi::SmallVectorImpl<double>& buf)>
|
||||
getter,
|
||||
std::function<void(llvm::ArrayRef<double>)> setter) override;
|
||||
std::function<void(wpi::ArrayRef<double>)> setter) override;
|
||||
|
||||
void AddSmallStringArrayProperty(
|
||||
const llvm::Twine& key,
|
||||
const wpi::Twine& key,
|
||||
std::function<
|
||||
llvm::ArrayRef<std::string>(llvm::SmallVectorImpl<std::string>& buf)>
|
||||
wpi::ArrayRef<std::string>(wpi::SmallVectorImpl<std::string>& buf)>
|
||||
getter,
|
||||
std::function<void(llvm::ArrayRef<std::string>)> setter) override;
|
||||
std::function<void(wpi::ArrayRef<std::string>)> setter) override;
|
||||
|
||||
void AddSmallRawProperty(
|
||||
const llvm::Twine& key,
|
||||
std::function<llvm::StringRef(llvm::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(llvm::StringRef)> setter) override;
|
||||
const wpi::Twine& key,
|
||||
std::function<wpi::StringRef(wpi::SmallVectorImpl<char>& buf)> getter,
|
||||
std::function<void(wpi::StringRef)> setter) override;
|
||||
|
||||
private:
|
||||
struct Property {
|
||||
Property(nt::NetworkTable& table, const llvm::Twine& key)
|
||||
Property(nt::NetworkTable& table, const wpi::Twine& key)
|
||||
: entry(table.GetEntry(key)) {}
|
||||
|
||||
Property(const Property&) = delete;
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <llvm/StringMap.h>
|
||||
#include <llvm/StringRef.h>
|
||||
#include <wpi/StringMap.h>
|
||||
#include <wpi/StringRef.h>
|
||||
|
||||
#include "SmartDashboard/SendableChooserBase.h"
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace frc {
|
||||
*/
|
||||
template <class T>
|
||||
class SendableChooser : public SendableChooserBase {
|
||||
llvm::StringMap<T> m_choices;
|
||||
wpi::StringMap<T> m_choices;
|
||||
|
||||
template <class U>
|
||||
static U _unwrap_smart_ptr(const U& value);
|
||||
@@ -45,8 +45,8 @@ class SendableChooser : public SendableChooserBase {
|
||||
public:
|
||||
~SendableChooser() override = default;
|
||||
|
||||
void AddObject(llvm::StringRef name, T object);
|
||||
void AddDefault(llvm::StringRef name, T object);
|
||||
void AddObject(wpi::StringRef name, T object);
|
||||
void AddDefault(wpi::StringRef name, T object);
|
||||
|
||||
auto GetSelected() -> decltype(_unwrap_smart_ptr(m_choices[""]));
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <llvm/StringRef.h>
|
||||
#include <wpi/StringRef.h>
|
||||
|
||||
#include "SendableBuilder.h"
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace frc {
|
||||
* @param object the option
|
||||
*/
|
||||
template <class T>
|
||||
void SendableChooser<T>::AddObject(llvm::StringRef name, T object) {
|
||||
void SendableChooser<T>::AddObject(wpi::StringRef name, T object) {
|
||||
m_choices[name] = std::move(object);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ void SendableChooser<T>::AddObject(llvm::StringRef name, T object) {
|
||||
* @param object the option
|
||||
*/
|
||||
template <class T>
|
||||
void SendableChooser<T>::AddDefault(llvm::StringRef name, T object) {
|
||||
void SendableChooser<T>::AddDefault(wpi::StringRef name, T object) {
|
||||
m_defaultChoice = name;
|
||||
AddObject(name, std::move(object));
|
||||
}
|
||||
@@ -83,7 +83,7 @@ void SendableChooser<T>::InitSendable(SendableBuilder& builder) {
|
||||
keys.push_back(choice.first());
|
||||
}
|
||||
|
||||
// Unlike std::map, llvm::StringMap elements
|
||||
// Unlike std::map, wpi::StringMap elements
|
||||
// are not sorted
|
||||
std::sort(keys.begin(), keys.end());
|
||||
|
||||
@@ -92,7 +92,7 @@ void SendableChooser<T>::InitSendable(SendableBuilder& builder) {
|
||||
nullptr);
|
||||
builder.AddSmallStringProperty(
|
||||
kDefault,
|
||||
[=](const llvm::SmallVectorImpl<char>&) -> llvm::StringRef {
|
||||
[=](const wpi::SmallVectorImpl<char>&) -> wpi::StringRef {
|
||||
return m_defaultChoice;
|
||||
},
|
||||
nullptr);
|
||||
|
||||
@@ -23,66 +23,66 @@ class SmartDashboard : public SensorBase {
|
||||
public:
|
||||
static void init();
|
||||
|
||||
static bool ContainsKey(llvm::StringRef key);
|
||||
static bool ContainsKey(wpi::StringRef key);
|
||||
|
||||
static std::vector<std::string> GetKeys(int types = 0);
|
||||
|
||||
static void SetPersistent(llvm::StringRef key);
|
||||
static void ClearPersistent(llvm::StringRef key);
|
||||
static bool IsPersistent(llvm::StringRef key);
|
||||
static void SetPersistent(wpi::StringRef key);
|
||||
static void ClearPersistent(wpi::StringRef key);
|
||||
static bool IsPersistent(wpi::StringRef key);
|
||||
|
||||
static void SetFlags(llvm::StringRef key, unsigned int flags);
|
||||
static void ClearFlags(llvm::StringRef key, unsigned int flags);
|
||||
static unsigned int GetFlags(llvm::StringRef key);
|
||||
static void SetFlags(wpi::StringRef key, unsigned int flags);
|
||||
static void ClearFlags(wpi::StringRef key, unsigned int flags);
|
||||
static unsigned int GetFlags(wpi::StringRef key);
|
||||
|
||||
static void Delete(llvm::StringRef key);
|
||||
static void Delete(wpi::StringRef key);
|
||||
|
||||
static void PutData(llvm::StringRef key, Sendable* data);
|
||||
static void PutData(wpi::StringRef key, Sendable* data);
|
||||
static void PutData(Sendable* value);
|
||||
static Sendable* GetData(llvm::StringRef keyName);
|
||||
static Sendable* GetData(wpi::StringRef keyName);
|
||||
|
||||
static bool PutBoolean(llvm::StringRef keyName, bool value);
|
||||
static bool SetDefaultBoolean(llvm::StringRef key, bool defaultValue);
|
||||
static bool GetBoolean(llvm::StringRef keyName, bool defaultValue);
|
||||
static bool PutBoolean(wpi::StringRef keyName, bool value);
|
||||
static bool SetDefaultBoolean(wpi::StringRef key, bool defaultValue);
|
||||
static bool GetBoolean(wpi::StringRef keyName, bool defaultValue);
|
||||
|
||||
static bool PutNumber(llvm::StringRef keyName, double value);
|
||||
static bool SetDefaultNumber(llvm::StringRef key, double defaultValue);
|
||||
static double GetNumber(llvm::StringRef keyName, double defaultValue);
|
||||
static bool PutNumber(wpi::StringRef keyName, double value);
|
||||
static bool SetDefaultNumber(wpi::StringRef key, double defaultValue);
|
||||
static double GetNumber(wpi::StringRef keyName, double defaultValue);
|
||||
|
||||
static bool PutString(llvm::StringRef keyName, llvm::StringRef value);
|
||||
static bool SetDefaultString(llvm::StringRef key,
|
||||
llvm::StringRef defaultValue);
|
||||
static std::string GetString(llvm::StringRef keyName,
|
||||
llvm::StringRef defaultValue);
|
||||
static bool PutString(wpi::StringRef keyName, wpi::StringRef value);
|
||||
static bool SetDefaultString(wpi::StringRef key,
|
||||
wpi::StringRef defaultValue);
|
||||
static std::string GetString(wpi::StringRef keyName,
|
||||
wpi::StringRef defaultValue);
|
||||
|
||||
static bool PutBooleanArray(llvm::StringRef key, llvm::ArrayRef<int> value);
|
||||
static bool SetDefaultBooleanArray(llvm::StringRef key,
|
||||
llvm::ArrayRef<int> defaultValue);
|
||||
static std::vector<int> GetBooleanArray(llvm::StringRef key,
|
||||
llvm::ArrayRef<int> defaultValue);
|
||||
static bool PutBooleanArray(wpi::StringRef key, wpi::ArrayRef<int> value);
|
||||
static bool SetDefaultBooleanArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<int> defaultValue);
|
||||
static std::vector<int> GetBooleanArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<int> defaultValue);
|
||||
|
||||
static bool PutNumberArray(llvm::StringRef key, llvm::ArrayRef<double> value);
|
||||
static bool SetDefaultNumberArray(llvm::StringRef key,
|
||||
llvm::ArrayRef<double> defaultValue);
|
||||
static bool PutNumberArray(wpi::StringRef key, wpi::ArrayRef<double> value);
|
||||
static bool SetDefaultNumberArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<double> defaultValue);
|
||||
static std::vector<double> GetNumberArray(
|
||||
llvm::StringRef key, llvm::ArrayRef<double> defaultValue);
|
||||
wpi::StringRef key, wpi::ArrayRef<double> defaultValue);
|
||||
|
||||
static bool PutStringArray(llvm::StringRef key,
|
||||
llvm::ArrayRef<std::string> value);
|
||||
static bool SetDefaultStringArray(llvm::StringRef key,
|
||||
llvm::ArrayRef<std::string> defaultValue);
|
||||
static bool PutStringArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<std::string> value);
|
||||
static bool SetDefaultStringArray(wpi::StringRef key,
|
||||
wpi::ArrayRef<std::string> defaultValue);
|
||||
static std::vector<std::string> GetStringArray(
|
||||
llvm::StringRef key, llvm::ArrayRef<std::string> defaultValue);
|
||||
wpi::StringRef key, wpi::ArrayRef<std::string> defaultValue);
|
||||
|
||||
static bool PutRaw(llvm::StringRef key, llvm::StringRef value);
|
||||
static bool SetDefaultRaw(llvm::StringRef key, llvm::StringRef defaultValue);
|
||||
static std::string GetRaw(llvm::StringRef key, llvm::StringRef defaultValue);
|
||||
static bool PutRaw(wpi::StringRef key, wpi::StringRef value);
|
||||
static bool SetDefaultRaw(wpi::StringRef key, wpi::StringRef defaultValue);
|
||||
static std::string GetRaw(wpi::StringRef key, wpi::StringRef defaultValue);
|
||||
|
||||
static bool PutValue(llvm::StringRef keyName,
|
||||
static bool PutValue(wpi::StringRef keyName,
|
||||
std::shared_ptr<nt::Value> value);
|
||||
static bool SetDefaultValue(llvm::StringRef key,
|
||||
static bool SetDefaultValue(wpi::StringRef key,
|
||||
std::shared_ptr<nt::Value> defaultValue);
|
||||
static std::shared_ptr<nt::Value> GetValue(llvm::StringRef keyName);
|
||||
static std::shared_ptr<nt::Value> GetValue(wpi::StringRef keyName);
|
||||
|
||||
static void UpdateValues();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user