mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Implement local notification.
The default behavior is to only notify remote changes, but for some applications (e.g. GUI's) it's advantageous to know about local changes as well. This is (slightly) optimized in that local changes only result in additional resources being consumed if (any) local listeners have been created.
This commit is contained in:
@@ -137,9 +137,14 @@ class NetworkTable : public ITable {
|
||||
|
||||
void AddTableListener(ITableListener* listener);
|
||||
void AddTableListener(ITableListener* listener, bool immediateNotify);
|
||||
void AddTableListener(ITableListener* listener, bool immediateNotify,
|
||||
bool localNotify);
|
||||
void AddTableListener(llvm::StringRef key, ITableListener* listener,
|
||||
bool immediateNotify);
|
||||
void AddTableListener(llvm::StringRef key, ITableListener* listener,
|
||||
bool immediateNotify, bool localNotify);
|
||||
void AddSubTableListener(ITableListener* listener);
|
||||
void AddSubTableListener(ITableListener* listener, bool localNotify);
|
||||
void RemoveTableListener(ITableListener* listener);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user