WPILibC++  unspecified
TableEntryListener.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_TABLEENTRYLISTENER_H_
9 #define NT_TABLEENTRYLISTENER_H_
10 
11 #include <functional>
12 #include <memory>
13 
14 #include "llvm/StringRef.h"
15 
16 namespace nt {
17 
18 class NetworkTable;
19 class NetworkTableEntry;
20 class Value;
21 
22 using llvm::StringRef;
23 
36 typedef std::function<void(NetworkTable* table, StringRef name,
37  NetworkTableEntry entry,
38  std::shared_ptr<Value> value, int flags)>
39  TableEntryListener;
40 
41 } // namespace nt
42 
43 #endif // NT_TABLEENTRYLISTENER_H_
Definition: IEntryNotifier.h:15
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42