WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
ITableListener Class Referenceabstract

A listener that listens to changes in values in a ITable. More...

#include <ITableListener.h>

Inheritance diagram for ITableListener:
frc::Command frc::Compressor frc::DigitalOutput frc::DoubleSolenoid frc::LiveWindowStatusListener frc::PIDController frc::PWM frc::Relay frc::Solenoid

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...
 

Detailed Description

A listener that listens to changes in values in a ITable.

Member Function Documentation

virtual void ITableListener::ValueChanged ( ITable source,
llvm::StringRef  key,
std::shared_ptr< nt::Value value,
bool  isNew 
)
pure virtual

Called when a key-value pair is changed in a ITable.

Parameters
sourcethe table the key-value pair exists in
keythe key associated with the value that changed
valuethe new value
isNewtrue 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.

void ITableListener::ValueChangedEx ( ITable source,
llvm::StringRef  key,
std::shared_ptr< nt::Value value,
unsigned int  flags 
)
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.

Parameters
sourcethe table the key-value pair exists in
keythe key associated with the value that changed
valuethe new value
flagsupdate flags; for example, NT_NOTIFY_NEW if the key did not previously exist in the table

The documentation for this class was generated from the following files: