WPILibC++  unspecified
ITableListener.h
1 /*
2  * ITableListener.h
3  */
4 
5 #ifndef ITABLELISTENER_H_
6 #define ITABLELISTENER_H_
7 
8 #include <memory>
9 
10 #include "llvm/StringRef.h"
11 #include "networktables/NetworkTableValue.h"
12 #include "support/deprecated.h"
13 
14 #ifdef __GNUC__
15 #pragma GCC diagnostic push
16 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
17 #endif
18 
19 class ITable;
20 
24 class WPI_DEPRECATED(
25  "Use EntryListener, TableEntryListener, or TableListener as appropriate")
26  ITableListener {
27  public:
28  virtual ~ITableListener() = default;
37  virtual void ValueChanged(ITable* source, llvm::StringRef key,
38  std::shared_ptr<nt::Value> value, bool isNew) = 0;
39 
50  virtual void ValueChangedEx(ITable* source, llvm::StringRef key,
51  std::shared_ptr<nt::Value> value,
52  unsigned int flags);
53 };
54 
55 #ifdef __GNUC__
56 #pragma GCC diagnostic pop
57 #endif
58 
59 #endif /* ITABLELISTENER_H_ */
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42