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:
CANJaguar CANTalon Command Compressor DigitalOutput DoubleSolenoid LiveWindowStatusListener PIDController PWM Relay 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 CANTalon, CANJaguar, Command, PWM, Compressor, DigitalOutput, Servo, Solenoid, and 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: