WPILibC++  2018.4.1-20180921140244-1192-ge26e3b6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
TableListener.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_TABLELISTENER_H_
9 #define NTCORE_NETWORKTABLES_TABLELISTENER_H_
10 
11 #include <functional>
12 #include <memory>
13 
14 #include <wpi/StringRef.h>
15 
16 namespace nt {
17 
18 class NetworkTable;
19 
20 using wpi::StringRef;
21 
33 typedef std::function<void(NetworkTable* parent, StringRef name,
34  NetworkTable* table)>
36 
37 } // namespace nt
38 
39 #endif // NTCORE_NETWORKTABLES_TABLELISTENER_H_
NetworkTables (ntcore) namespace.
Definition: ITable.h:21
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