WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
CallbackStore.hpp File Reference
#include <functional>
#include <span>
#include <string_view>
#include "wpi/hal/DriverStationTypes.h"
#include "wpi/hal/Value.h"

Go to the source code of this file.

Classes

class  wpi::sim::CallbackStore
 Manages simulation callbacks; each object is associated with a callback. More...

Namespaces

namespace  wpi
namespace  wpi::sim

Typedefs

using wpi::sim::NotifyCallback = std::function<void(std::string_view, const HAL_Value*)>
using wpi::sim::ConstBufferCallback
using wpi::sim::OpModeOptionsCallback
using wpi::sim::CancelCallbackFunc = void (*)(int32_t index, int32_t uid)
using wpi::sim::CancelCallbackNoIndexFunc = void (*)(int32_t uid)
using wpi::sim::CancelCallbackChannelFunc

Functions

void wpi::sim::CallbackStoreThunk (const char *name, void *param, const HAL_Value *value)
void wpi::sim::ConstBufferCallbackStoreThunk (const char *name, void *param, const unsigned char *buffer, unsigned int count)
void wpi::sim::OpModeOptionsCallbackStoreThunk (const char *name, void *param, const HAL_OpModeOption *opmodes, int32_t count)