8 #ifndef NTCORE_TABLES_ITABLELISTENER_H_
9 #define NTCORE_TABLES_ITABLELISTENER_H_
13 #include <wpi/StringRef.h>
14 #include <wpi/deprecated.h>
16 #include "networktables/NetworkTableValue.h"
19 #pragma GCC diagnostic push
20 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32 virtual ~ITableListener() =
default;
42 std::shared_ptr<nt::Value> value,
bool isNew) = 0;
55 std::shared_ptr<nt::Value> value,
60 #pragma GCC diagnostic pop
63 #endif // NTCORE_TABLES_ITABLELISTENER_H_
std::function< void(NetworkTable *table, StringRef name, NetworkTableEntry entry, std::shared_ptr< Value > value, int flags)> TableEntryListener
A listener that listens to changes in values in a NetworkTable.
Definition: TableEntryListener.h:41
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
std::function< void(NetworkTable *parent, StringRef name, NetworkTable *table)> TableListener
A listener that listens to new sub-tables in a NetworkTable.
Definition: TableListener.h:35