WPILibC++  2019.1.1-4-g308bdbe
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
TableEntryListener.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #ifndef NTCORE_NETWORKTABLES_TABLEENTRYLISTENER_H_
9 #define NTCORE_NETWORKTABLES_TABLEENTRYLISTENER_H_
10 
11 #include <functional>
12 #include <memory>
13 
14 #include <wpi/StringRef.h>
15 
16 namespace nt {
17 
18 class NetworkTable;
19 class NetworkTableEntry;
20 class Value;
21 
22 using wpi::StringRef;
23 
38 typedef std::function<void(NetworkTable* table, StringRef name,
39  NetworkTableEntry entry,
40  std::shared_ptr<Value> value, int flags)>
42 
43 } // namespace nt
44 
45 #endif // NTCORE_NETWORKTABLES_TABLEENTRYLISTENER_H_
NetworkTables (ntcore) namespace.
Definition: ITable.h:21
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