122 template <
typename F>
127 int direction,
const struct HAL_Value* value) {
128 std::invoke(*
static_cast<F*
>(param),
name, handle, direction, value);
145 template <
typename F>
150 std::invoke(*
static_cast<F*
>(param),
name, handle);
void HALSIM_EnumerateSimValues(HAL_SimDeviceHandle device, void *param, HALSIM_SimValueCallback callback)
void HALSIM_EnumerateSimDevices(const char *prefix, void *param, HALSIM_SimDeviceCallback callback)
@ index
Definition base.h:690
@ name
Definition base.h:690
C++ wrapper around a HAL simulator boolean value handle.
Definition SimDevice.hpp:244
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.hpp:169
C++ wrapper around a HAL simulator enum value handle.
Definition SimDevice.hpp:210
C++ wrapper around a HAL simulator int value handle.
Definition SimDevice.hpp:87
C++ wrapper around a HAL simulator long value handle.
Definition SimDevice.hpp:128
C++ wrapper around a HAL simulator value handle.
Definition SimDevice.hpp:35
wpi::hal::SimDouble GetDouble(const char *name) const
Get the property object with the given name.
SimDeviceSim(HAL_SimDeviceHandle handle)
Constructs a SimDeviceSim.
wpi::hal::SimInt GetInt(const char *name) const
Get the property object with the given name.
void EnumerateValues(F callback) const
Get all properties.
Definition SimDeviceSim.hpp:123
wpi::hal::SimValue GetValue(const char *name) const
Get the property object with the given name.
static std::vector< std::string > GetEnumOptions(hal::SimEnum val)
Get all options for the given enum.
wpi::hal::SimBoolean GetBoolean(const char *name) const
Get the property object with the given name.
static void ResetData()
Reset all SimDevice data.
SimDeviceSim(const char *name, int index, int channel)
Constructs a SimDeviceSim.
SimDeviceSim(const char *name, int index)
Constructs a SimDeviceSim.
wpi::hal::SimLong GetLong(const char *name) const
Get the property object with the given name.
std::string GetName() const
Get the name of this object.
wpi::hal::SimEnum GetEnum(const char *name) const
Get the property object with the given name.
SimDeviceSim(const char *name)
Constructs a SimDeviceSim.
static void EnumerateDevices(const char *prefix, F callback)
Get all sim devices with the given prefix.
Definition SimDeviceSim.hpp:146
HAL_Handle HAL_SimDeviceHandle
Definition Types.h:53
HAL_Handle HAL_SimValueHandle
Definition Types.h:55
Definition CTREPCMSim.hpp:13
HAL Entry Value.
Definition Value.h:26