WPILibC++
unspecified
|
A listener that listens to changes in values in a ITable. More...
#include <ITableListener.h>
Public Member Functions | |
virtual void | ValueChanged (ITable *source, llvm::StringRef key, std::shared_ptr< nt::Value > value, bool isNew)=0 |
Called when a key-value pair is changed in a ITable. More... | |
virtual void | ValueChangedEx (ITable *source, llvm::StringRef key, std::shared_ptr< nt::Value > value, unsigned int flags) |
Extended version of ValueChanged. More... | |
A listener that listens to changes in values in a ITable.
|
pure virtual |
Called when a key-value pair is changed in a ITable.
source | the table the key-value pair exists in |
key | the key associated with the value that changed |
value | the new value |
isNew | true if the key did not previously exist in the table, otherwise it is false |
Implemented in frc::Command, frc::PWM, frc::Compressor, frc::DigitalOutput, frc::Solenoid, frc::Servo, and frc::LiveWindowStatusListener.
|
virtual |
Extended version of ValueChanged.
Called when a key-value pair is changed in a ITable. The default implementation simply calls ValueChanged(). If this is overridden, ValueChanged() will not be called.
source | the table the key-value pair exists in |
key | the key associated with the value that changed |
value | the new value |
flags | update flags; for example, NT_NOTIFY_NEW if the key did not previously exist in the table |