WPILibC++  unspecified
TableListener.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2017. 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 NT_TABLELISTENER_H_
9 #define NT_TABLELISTENER_H_
10 
11 #include <functional>
12 #include <memory>
13 
14 #include "llvm/StringRef.h"
15 
16 namespace nt {
17 
18 class NetworkTable;
19 
20 using llvm::StringRef;
21 
31 typedef std::function<void(NetworkTable* parent, StringRef name,
32  NetworkTable* table)>
33  TableListener;
34 
35 } // namespace nt
36 
37 #endif // NT_TABLELISTENER_H_
Definition: IEntryNotifier.h:15
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42