WPILibC++
2020.3.2
TableListener.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_TABLELISTENER_H_
9
#define NTCORE_NETWORKTABLES_TABLELISTENER_H_
10
11
#include <functional>
12
#include <memory>
13
14
#include <wpi/StringRef.h>
15
16
namespace
nt
{
17
18
class
NetworkTable;
19
20
using
wpi::StringRef
;
21
33
typedef
std::function<void(NetworkTable* parent, StringRef name,
34
std::shared_ptr<NetworkTable> table)>
35
TableListener
;
36
37
}
// namespace nt
38
39
#endif // NTCORE_NETWORKTABLES_TABLELISTENER_H_
nt::TableListener
std::function< void(NetworkTable *parent, StringRef name, std::shared_ptr< NetworkTable > table)> TableListener
A listener that listens to new sub-tables in a NetworkTable.
Definition:
TableListener.h:35
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
TableListener.h
Generated on Fri Feb 21 2020 08:50:36 for WPILibC++ by
1.8.16