WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
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 "nt_Value.h"
12 
13 class ITable;
14 
19  public:
20  virtual ~ITableListener() = default;
29  virtual void ValueChanged(ITable* source, llvm::StringRef key,
30  std::shared_ptr<nt::Value> value, bool isNew) = 0;
31 
42  virtual void ValueChangedEx(ITable* source, llvm::StringRef key,
43  std::shared_ptr<nt::Value> value,
44  unsigned int flags);
45 };
46 
47 #endif /* ITABLELISTENER_H_ */
A table whose values can be read and written to.
Definition: ITable.h:22
A listener that listens to changes in values in a ITable.
Definition: ITableListener.h:18
virtual void ValueChanged(ITable *source, llvm::StringRef key, std::shared_ptr< nt::Value > value, bool isNew)=0
Called when a key-value pair is changed in a ITable.
virtual void ValueChangedEx(ITable *source, llvm::StringRef key, std::shared_ptr< nt::Value > value, unsigned int flags)
Extended version of ValueChanged.
Definition: ITableListener.cpp:5