Now you can download a copy of these docs so you can use them offline! Download now
NetworkTableSubListenerAdapter Class Reference
Inheritance diagram for NetworkTableSubListenerAdapter:
Collaboration diagram for NetworkTableSubListenerAdapter:

Public Member Functions

 NetworkTableSubListenerAdapter (std::string &prefix, NetworkTable *targetSource, ITableListener *targetListener)
 
void ValueChanged (ITable *source, const std::string &key, EntryValue value, bool isNew)
 

Detailed Description

Definition at line 23 of file NetworkTableSubListenerAdapter.h.

Constructor & Destructor Documentation

NetworkTableSubListenerAdapter::NetworkTableSubListenerAdapter ( std::string &  _prefix,
NetworkTable _targetSource,
ITableListener _targetListener 
)

Create a new adapter

Parameters
prefixthe prefix of the current table
targetSourcethe source that events passed to the target listener will appear to come from
targetListenerthe listener where events are forwarded to

Definition at line 18 of file NetworkTableSubListenerAdapter.cpp.

Member Function Documentation

void NetworkTableSubListenerAdapter::ValueChanged ( ITable source,
const std::string &  key,
EntryValue  value,
bool  isNew 
)
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

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

Implements ITableListener.

Definition at line 23 of file NetworkTableSubListenerAdapter.cpp.


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

Generated on Sat Apr 26 2014 12:26:46 for WPILibC++ by doxygen 1.8.6