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,
30  llvm::StringRef key,
31  std::shared_ptr<nt::Value> value,
32  bool isNew) = 0;
33 
44  virtual void ValueChangedEx(ITable* source,
45  llvm::StringRef key,
46  std::shared_ptr<nt::Value> value,
47  unsigned int flags);
48 };
49 
50 #endif /* ITABLELISTENER_H_ */
A table whose values can be read and written to.
Definition: ITable.h:43
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
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:39