Now you can download a copy of these docs so you can use them offline! Download now
Public Member Functions | |
NetworkTableSubListenerAdapter (std::string &prefix, NetworkTable *targetSource, ITableListener *targetListener) | |
void | ValueChanged (ITable *source, const std::string &key, EntryValue value, bool isNew) |
Definition at line 23 of file NetworkTableSubListenerAdapter.h.
NetworkTableSubListenerAdapter::NetworkTableSubListenerAdapter | ( | std::string & | _prefix, |
NetworkTable * | _targetSource, | ||
ITableListener * | _targetListener | ||
) |
Create a new adapter
prefix | the prefix of the current table |
targetSource | the source that events passed to the target listener will appear to come from |
targetListener | the listener where events are forwarded to |
Definition at line 18 of file NetworkTableSubListenerAdapter.cpp.
|
virtual |
Called when a key-value pair is changed in a ITable WARNING: If a new key-value is put in this method value changed will immediatly be called which could lead to recursive code
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 |
Implements ITableListener.
Definition at line 23 of file NetworkTableSubListenerAdapter.cpp.