WPILibC++
2020.3.2
TableEntryListener.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2017-2018 FIRST. 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 NTCORE_NETWORKTABLES_TABLEENTRYLISTENER_H_
9
#define NTCORE_NETWORKTABLES_TABLEENTRYLISTENER_H_
10
11
#include <functional>
12
#include <memory>
13
14
#include <wpi/StringRef.h>
15
16
namespace
nt
{
17
18
class
NetworkTable;
19
class
NetworkTableEntry;
20
class
Value;
21
22
using
wpi::StringRef
;
23
38
typedef
std::function<void(NetworkTable* table, StringRef name,
39
NetworkTableEntry entry,
40
std::shared_ptr<Value> value,
int
flags)>
41
TableEntryListener
;
42
43
}
// namespace nt
44
45
#endif // NTCORE_NETWORKTABLES_TABLEENTRYLISTENER_H_
nt::TableEntryListener
std::function< void(NetworkTable *table, StringRef name, NetworkTableEntry entry, std::shared_ptr< Value > value, int flags)> TableEntryListener
A listener that listens to changes in values in a NetworkTable.
Definition:
TableEntryListener.h:41
wpi::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:49
nt
NetworkTables (ntcore) namespace.
Definition:
NetworkTableValue.h:27
ntcore
src
main
native
include
networktables
TableEntryListener.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16